天天看點

[HDU 2096] 小明A+B [HDU 2096] 小明A+B

大家好,又見面了,我是你們的朋友全棧君。

[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

釋出者:全棧程式員棧長,轉載請注明出處:https://javaforall.cn/149178.html原文連結:https://javaforall.cn