HDU 2096 小明A+B --- 水题

HDU 2096

/* HDU 2096 小明A+B --- 水题 */
#include <cstdio>

int main()
{
#ifdef _LOCAL
    freopen("D:\input.txt", "r", stdin);
#endif
    int a, b, c, n;
    scanf("%d", &n);
    while (n--){
        scanf("%d%d", &a, &b);
        a %= 100;
        b %= 100;
        c = a + b;
        c %= 100;
        printf("%d
", c);
    }

    return 0;
}
View Code
原文地址:https://www.cnblogs.com/tommychok/p/5156019.html