westmylovewestmylove.blog.chinaunix.net
westmylove
全部博文(9)
2010年(6)
2009年(3)
willaty
litost_c
in_air
weltion
small_ma
dinghaos
lantian5
mousexqs
cxtx00
分类: C/C++
2010-05-30 23:59:39
int modular_exponent(int a,int b,int n){ int ret = 1; for ( ; b; b>>=1,a=a*a%n ) { if ( b&1 ) ret = ret*a %n; } return ret;}
*************************************************************
回去搞本数论研究下去。
上一篇:进制转换
下一篇:Inside CRT: Debug Heap Management
登录 注册