POJ1006 - Biorhythms(中国剩余定理)
摘要:
题目大意 略。。。有中文。。。 题解 就是解同余方程组 x≡(p-d)(mod 23) x≡(e-d)(mod 28) x≡(i-d)(mod 33) 最简单的中国剩余定理应用。。。。 代码: #include#includeusing namespace std;void gcd(int a,int b,int &d,int &x,int &y){ if(!b) { d... 阅读全文
posted @ 2013-08-01 15:59 仗剑奔走天涯 阅读(202) 评论(0) 推荐(0) 编辑