标签:others 题目 等于 main include 相等 out ret 测试
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 43915 Accepted Submission(s): 20731
题目还是很简单的,就是把每个数%100后加起来的数再取余100,这就可以得到结果了。
附上代码:
#include <iostream> #include<math.h> #include <iomanip> #include<cstdio> #include<string> #include<map> #include<vector> #include<list> #include<algorithm> #include<stdlib.h> #include<iterator> #include<sstream> #include<string.h> using namespace std; int main() { int n; cin>>n; while(n--) { int a,b; cin>>a>>b; int res1; res1=a%100+b%100; int res; res=res1%100; cout<<res<<endl; } return 0; }
标签:others 题目 等于 main include 相等 out ret 测试
原文地址:http://www.cnblogs.com/William-xh/p/6964314.html