摘要: 简介:2013 ACM ICPCSoutheast USA Regional Programming Contest原地址:https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&category=62... 阅读全文
posted @ 2014-03-18 19:39 little_w 阅读(132) 评论(0) 推荐(0)
摘要: (主要是各基本知识点的例题,查缺补漏,希望以后比赛不要有本来应该掌握的知识点,却不知道的情况)1、一元线性同余方程组的一般性解法(拓展gcd、剩余定理) 1 /*poj2891*解一次线性同余方程组/ 2 /x%a[i]==r[i]*/ 3 /*通解*/ 4 #include 5 #include 6 #include 7 #define maxn 10000+5 8 #define LL long long 9 using namespace std;10 LL r[maxn],m[maxn];11 12 void Ex_gcd(LL a,LL b,LL &d,LL &x,L 阅读全文
posted @ 2014-03-18 09:57 little_w 阅读(298) 评论(0) 推荐(0)