3.2013/06/11_韩信点兵

三人一排a,五人一排b,七人一排c
int n=(70*a+21*b+15*c)%105;
if(!(n<10||n>100))
    printf("%d\n",n);
else
    printf("No answer\n");


http://baike.baidu.com/view/157384.htm?subLemmaId=157384&fromenter=%D6%D0%B9%FA%CA%A3%D3%E0%B6%A8%C0%ED


你可能感兴趣的:(中国剩余定理)