摘要: LL getInv(LL x) { LL ret = 1; x %= mod; for (int a = mod - 2; a; a /= 2, x = x * x % mod) if (a % 2 == 1) ret = ret * x % m... 阅读全文
posted @ 2014-07-23 20:29 _雨 阅读(217) 评论(0) 推荐(0) 编辑
摘要: A hdu4861打表找规律 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 #define eps 1e-4 9 #define zero(x) ((fabs(x... 阅读全文
posted @ 2014-07-23 17:12 _雨 阅读(146) 评论(0) 推荐(0) 编辑