1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-11 02:58:13 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode-cn/problem (Chinese)/最小偶倍数 [smallest-even-multiple].html
2022-09-19 22:42:50 +08:00

25 lines
664 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

给你一个正整数 <code>n</code> ,返回 <code>2</code><em> </em><em> </em><code>n</code> 的最小公倍数(正整数)。
<p>&nbsp;</p>
<p><strong>示例 1</strong></p>
<pre><strong>输入:</strong>n = 5
<strong>输出:</strong>10
<strong>解释:</strong>5 和 2 的最小公倍数是 10 。
</pre>
<p><strong>示例 2</strong></p>
<pre><strong>输入:</strong>n = 6
<strong>输出:</strong>6
<strong>解释:</strong>6 和 2 的最小公倍数是 6 。注意数字会是它自身的倍数。
</pre>
<p>&nbsp;</p>
<p><strong>提示:</strong></p>
<ul>
<li><code>1 &lt;= n &lt;= 150</code></li>
</ul>