#include<bits/stdc++.h> using namespace std;
int judge(int x) { if(x>=100) return x%100; else return x; }
int main() { int A,B;
cin>>A>>B; int ans; ans=judge(judge(A)+judge(B)); cout<<ans; return 0;
}
这个判断方法都是一样的 加了个函数 方便一点
注册一个 TGU Online Judge 通用账户,您就可以在我们提供的所有在线评测服务上提交代码、参与讨论。
使用您的 TGU Online Judge 通用账户