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\n", c);
    }

    return 0;
}
View Code

 

posted @ 2016-01-24 21:32  tan90丶  阅读(178)  评论(0编辑  收藏  举报