摘要: // poj 1061 青蛙的约会 拓展欧几里得模板// 注意进行exgcd时,保证a,b是正数,最后的答案如果是负数,要加上一个膜#include #include #include #include #include using namespace std;typedef long long l... 阅读全文
posted @ 2015-08-04 15:54 KingJourney 阅读(282) 评论(0) 推荐(0)
摘要: 1 // hdu 1686 KMP模板 2 3 // 没啥好说的,KMP裸题,这里是MP模板 4 5 #include 6 #include 7 #include 8 #include 9 10 using namespace std;11 12 const int MAX... 阅读全文
posted @ 2015-08-03 15:54 KingJourney 阅读(234) 评论(0) 推荐(0)