mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-13 19:31:42 +08:00
add leetcode problem-cn part6
This commit is contained in:
25
算法题(国内版)/problem (Chinese)/两整数之和 [sum-of-two-integers].html
Normal file
25
算法题(国内版)/problem (Chinese)/两整数之和 [sum-of-two-integers].html
Normal file
@@ -0,0 +1,25 @@
|
||||
<p>给你两个整数 <code>a</code> 和 <code>b</code> ,<strong>不使用 </strong>运算符 <code>+</code> 和 <code>-</code> ,计算并返回两整数之和。</p>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<p><strong>示例 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>输入:</strong>a = 1, b = 2
|
||||
<strong>输出:</strong>3
|
||||
</pre>
|
||||
|
||||
<p><strong>示例 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>输入:</strong>a = 2, b = 3
|
||||
<strong>输出:</strong>5
|
||||
</pre>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<p><strong>提示:</strong></p>
|
||||
|
||||
<ul>
|
||||
<li><code>-1000 <= a, b <= 1000</code></li>
|
||||
</ul>
|
Reference in New Issue
Block a user