mirror of
				https://gitee.com/coder-xiaomo/leetcode-problemset
				synced 2025-11-04 11:43:12 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			479 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			479 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
<p>写一个函数,求两个整数之和,要求在函数体内不得使用 “+”、“-”、“*”、“/” 四则运算符号。</p>
 | 
						|
 | 
						|
<p> </p>
 | 
						|
 | 
						|
<p><strong>示例:</strong></p>
 | 
						|
 | 
						|
<pre><strong>输入:</strong> a = 1, b = 1
 | 
						|
<strong>输出:</strong> 2</pre>
 | 
						|
 | 
						|
<p> </p>
 | 
						|
 | 
						|
<p><strong>提示:</strong></p>
 | 
						|
 | 
						|
<ul>
 | 
						|
	<li><code>a</code>, <code>b</code> 均可能是负数或 0</li>
 | 
						|
	<li>结果不会溢出 32 位整数</li>
 | 
						|
</ul>
 |