[HDU 2096] 小明A+B

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2096

 1 #include<iostream>
 2 #include<cstdio>
 3 #include<cmath>
 4 #include<algorithm>
 5 using namespace std;
 6 
 7 int main()
 8 {
 9     int a,b;
10     int sum;
11     int t;
12     scanf("%d",&t);
13     while(t--)
14     {
15         scanf("%d%d",&a,&b);
16         a = a%100;
17         b = b%100;
18         sum = a+b;
19         sum = sum%100;
20         printf("%d\n",sum);
21     }
22     return 0;
23 }

 

posted @ 2019-01-02 15:29  Youpeng  阅读(245)  评论(0编辑  收藏  举报