该文被密码保护。 阅读全文
posted @ 2018-09-10 19:12
Allorkiya
阅读(1)
评论(0)
推荐(0)
摘要:
思路: 求交集最大老套路,排序之后用堆维护即可。 c++ include using namespace std; const int mod = 1e9+7; const int maxn = 1000010; inline int read() { int q=0,f=1;char ch = g 阅读全文
posted @ 2018-09-10 11:55
Allorkiya
阅读(198)
评论(0)
推荐(0)
摘要:
思路: 头皮发麻的操作... 理解一下题意会发现:排名为$i$的前缀正好是第$i$个前缀。 所以问题就变成了求$1 len$的平方和,注意取模即可。 c++ include using namespace std; int n; const int mod = 1e9+7; long long an 阅读全文
posted @ 2018-09-10 11:40
Allorkiya
阅读(148)
评论(0)
推荐(0)
该文被密码保护。 阅读全文
posted @ 2018-09-10 09:06
Allorkiya
阅读(3)
评论(0)
推荐(0)