摘要: 题目: Oh those picky N (1 <= N <= 50,000) cows! They are so picky that each one will only be milked over some precise time interval A..B (1 <= A <= B <= 阅读全文
posted @ 2017-02-01 21:23 Robin! 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 using namespace std; 3 int MOD; 4 5 int fast_pow_mod(int a, int b) { 6 int res = 1; 7 while(b) { 8 if (b & 1) res = res * a % MOD; 9 a = a * a % MOD; 10... 阅读全文
posted @ 2017-02-01 01:54 Robin! 阅读(851) 评论(0) 推荐(0) 编辑