中国剩余定理:
代码:
#include <iostream> #include <cstdio> using namespace std; int main() { int a,b,c; while(scanf("%d %d %d",&a,&b,&c)!=EOF){ int s=70*a+21*b+15*c; s%=105; if(s<=100 && s>=10){ printf("%d ",s); }else{ printf("No anwser "); } } return 0; }