【杭电】[2096]小明A+B

题目描述
输入输出

当时感觉挺有意思的一题
也没用多少劲就写出来的
后来知道这就是传说中的
同 余 定 理

#include<stdio.h>
int main() {
    int i,j,a,b;
    scanf("%d",&j);
    for(i=0; i<j; i++) {
        scanf("%d %d",&a,&b);
        a=a%100;
        b=b%100;
        printf("%d\n",(a+b)%100);
    }
    return 0;
}

【杭电】[2096]小明A+B

原文地址:https://www.cnblogs.com/BoilTask/p/12570157.html