这个题很神奇啊,第一次提交在test函数里写了一个若x大于等于100才做求余,而直接写求余就没问题。
#include <stdio.h>
int test(int x){
return x%100;
}
int main() {
int t;
scanf("%d\n",&t);
for(int i=0;i<t;i++){
int a,b;
scanf("%d %d",&a,&b);
a = test(a);
b = test(b);
printf("%d\n", test(a+b));
}
return 0;
}