mirror of
				https://gitee.com/coder-xiaomo/leetcode-problemset
				synced 2025-11-04 11:43:12 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			640 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			640 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
给你一个正整数 <code>n</code> ,返回 <code>2</code><em> </em>和<em> </em><code>n</code> 的最小公倍数(正整数)。
 | 
						||
<p> </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> </p>
 | 
						||
 | 
						||
<p><strong>提示:</strong></p>
 | 
						||
 | 
						||
<ul>
 | 
						||
	<li><code>1 <= n <= 150</code></li>
 | 
						||
</ul>
 |