class Solution {
public:
/*
* @param a: The first integer
* @param b: The second integer
* @return: The sum of a and b
*/
int aplusb(int a, int b) {
// write your code here, try to do it without arithmetic operators.
a=0-a;
b=0-b;
return 0-a-b;
}
};
LintCode-剑指Offer-(1)A+B问题
最新推荐文章于 2020-07-24 19:09:31 发布