09 2015 档案

Best Solver 数论
摘要:Best Solver题目抽象:y = (5 + 2 √6)^(1 + 2 ^ x). 给出整数x和m.求 [y] % m的值。 integerx(0≤x 2 using namespace std; 3 typedef long long LL; 4 5 c... 阅读全文

posted @ 2015-09-22 21:07 hutaishi 阅读(251) 评论(0) 推荐(0)

cf 319 div 2 Modulo Sum 数论+DP
摘要:Modulo Sum题目抽象:给你你一个整数数组,能否从中取出一些树,使得他们的和能被m整除。分析:见代码注释。 1 #include 2 #include 3 using namespace std; 4 const int MS = 1000005; 5 ... 阅读全文

posted @ 2015-09-11 22:05 hutaishi 阅读(171) 评论(0) 推荐(0)

导航