2014年9月10日

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4704求(2^n)%mod的方法#include #include #include #include #include #include using namespace std ;//(2^n)%mod=(2^(... 阅读全文
posted @ 2014-09-10 20:25 LegendaryAC 阅读(178) 评论(0) 推荐(0) 编辑
 
摘要: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5343网络赛这水题没写过太伤了,赛后写了下1A。当时钻牛角尖一定要用k次bfs,其实一次就够了,把扩展到的节点插入set中,复杂度nlogn#include #include #i... 阅读全文
posted @ 2014-09-10 10:44 LegendaryAC 阅读(175) 评论(0) 推荐(0) 编辑