2012年3月20日

hdu 2815 baby_step c可为非素数

摘要: 解方程 a^x=b(mod c) c为可以为合数,参考AC大牛的http://hi.baidu.com/aekdycoin/blog/item/b317ca18bb24334942a9ad55.html 1 #include <iostream> 2 #include <stdio.h> 3 #include <cmath> 4 using namespace std; 5 typedef long long ll; 6 const int maxn=65535; 7 struct Hashh 8 { 9 int a,b,next; 10 }Hash[max 阅读全文

posted @ 2012-03-20 11:27 Inpeace7 阅读(227) 评论(0) 推荐(0) 编辑

导航