博客园 首页 私信博主 显示目录 隐藏目录 管理 动画
该文被密码保护。 阅读全文
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 阅读(184) 评论(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 阅读(137) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2018-09-10 09:06 Allorkiya 阅读(3) 评论(0) 推荐(0) 编辑