英伟达笔试题——不用减号实现减法!如何做?求高手解答~[解决办法]例:a-b,对b取反再+1,原理类似于补码
int main(){ int a, b; while(cin>>a>>b) { b = ~b + 1; cout<<a+b<<endl; } return 0;}