摘要: poj1061——扩展gcd水题青蛙的约会Time Limit:1000MSMemory Limit:10000KTotal Submissions:94176Accepted:17413Description两只青蛙在网上相识了,它们聊得很开心,于是觉得很有必要见一面。它们很高兴地发现它们住在同一... 阅读全文
posted @ 2015-03-27 23:00 __560 阅读(316) 评论(0) 推荐(0) 编辑
摘要: poj2115——拓展欧几里德求模线性同余方程的最小正整数解C LooooopsTime Limit:1000MSMemory Limit:65536KTotal Submissions:18926Accepted:4973DescriptionA Compiler Mystery: We are ... 阅读全文
posted @ 2015-03-27 20:38 __560 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 拓展欧几里德算法对贝祖等式:ax+by=gcd(a,b); 一定存在整数解,求x最小的整数解x,y (x,y可以是负数)#include#include#include#include#includeusing namespace std;const int maxn=1000100;const i... 阅读全文
posted @ 2015-03-27 19:21 __560 阅读(234) 评论(0) 推荐(0) 编辑