题解 | 两数求和
两数求和
https://www.nowcoder.com/practice/f1b704af4f654be285552bea53ce6534
#include <iostream>
using namespace std;
int main() {
// write your code here......
int a,b;
int c =0;
while(cin>>a>>b)
{
if(a>1000 || b>1000 || a<-1000 || b<-1000 )
{
return 0;
}
c=a+b;
cout << c << endl;
}
return 0;
}


查看1道真题和解析