摘要: #include #define setIO(s) freopen(s".in","r",stdin) #define ll long long #define maxn 10000005 using namespace std; const long long mod=1000000007; mapgetf; int cnt; int vis[maxn]; int ... 阅读全文
posted @ 2019-07-10 17:16 EM-LGH 阅读(126) 评论(0) 推荐(0) 编辑
摘要: #include #define ll long long #define maxn 1000005 #define N 1000003 using namespace std; const ll mod=1000000007; namespace IO { inline void setIO(string s) { string in=s+".in"... 阅读全文
posted @ 2019-07-10 16:20 EM-LGH 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Description 给下N,M,K.求 Input 给下N,M,K.求 Input 输入有多组数据,输入数据的第一行两个正整数T,K,代表有T组数据,K的意义如上所示,下面第二行到第T+1行,每行为两个正整数N,M,其意义如上式所示。 输入有多组数据,输入数据的第一行两个正整数T,K,代表有T组 阅读全文
posted @ 2019-07-10 14:21 EM-LGH 阅读(187) 评论(0) 推荐(0) 编辑