2013年7月6日
摘要: 题目链接。分析:数论了解的还不算太多,解的时候,碰到了不小的麻烦。设答案为x,n = (1#include #include #include #include #include #include #include #include #include using namespace std;typedef long long LL;void gcd(LL a, LL b, LL &d, LL &x, LL &y) { if(!b) { d = a; x = 1; y = 0; } else { gcd(b, a%b, d, y, x); y-= x*(a/b); }}i 阅读全文
posted @ 2013-07-06 15:37 Still_Raining 阅读(758) 评论(0) 推荐(0)