摘要:
#include <iostream> #include <cstdio> #include <queue> #include <algorithm> #include <cmath> #include <cstring> #define inf 2147483647 #define N 2000010 #define mod 1000000007 #define p(a) putchar(a) 阅读全文
摘要:
http://codeforces.com/problemset/problem/803/F 阅读全文
摘要:
P2261 [CQOI2007]余数求和 做法就是分块k%i=k-(k/i)*i;对(k/i)分块,一个细节问题就是n,k谁大谁小的问题 阅读全文
摘要:
#include <iostream> #include <cstdio> #include <queue> #include <algorithm> #include <cmath> #include <cstring> #define inf 2147483647 #define N 1000010 #define p(a) putchar(a) #define For(i,a,b) for( 阅读全文