2015年9月23日

ural Cipher Message

摘要: Cipher Message Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Cipher Message Description Müller tried to catch Stierlitz red-han 阅读全文

posted @ 2015-09-23 23:52 逸阳 阅读(292) 评论(0) 推荐(0)

快速幂取模算法

摘要: 问题:求解ab%c1.首先看最原始的做法:1 int num=1;2 for(int i=1;i0){4 if(b%2==1){5 num=(num*a)%c; 6 }7 b/=2; //这一步将b->log2(b) 8 a=(a*a)%... 阅读全文

posted @ 2015-09-23 00:52 逸阳 阅读(1339) 评论(0) 推荐(0)

导航