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)/两整数之和 [sum-of-two-integers].html

26 lines
571 B
HTML
Raw Normal View History

2022-03-27 20:56:26 +08:00
<p>给你两个整数 <code>a</code><code>b</code> <strong>不使用 </strong>运算符&nbsp;<code>+</code>&nbsp;<code>-</code>&nbsp;​​​​​​​,计算并返回两整数之和。</p>
<p>&nbsp;</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>&nbsp;</p>
<p><strong>提示:</strong></p>
<ul>
<li><code>-1000 &lt;= a, b &lt;= 1000</code></li>
</ul>