- 博客(2)
- 资源 (10)
- 收藏
- 关注
原创 计算 高次幂相对某个模数的余( (a ^ n)mod p, n 很大 )
在做google codejam 2008 round 1A problem C 的 时候, 从别人代码里学到的 假如 要计算 (a ^ n) , n很大, 直接计算的话, 是个 O(n)的方法有 O(log (n))的方法,如下: 把n表示成2进制, n = n0 * 1 + n1 * 2 + n2 * 4 + ... + nk * (2^k)则 a^n =[
2009-09-10 13:27:00 1206 1
原创 google codejam 2009 Qualification Round Problem C code
#include #include #include using namespace std;const string b("welcome to code jam");//const string b("a");const int MAXLEN = 501; const int m = b.length();int n;string a;int cnt[MAXLEN][20];v
2009-09-04 13:21:00 483
windows resource kit tools for windows xp
2009-01-07
Windows resurce kit tools for winxp
2009-01-07
Microsoft Windows Internals, tools package
2009-01-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人