CCPC-Wannafly & Comet OJ 夏季欢乐赛(2019)三元组
min, max 什么的都是骗人的, 展开排序后发现随着i的增加, 它的右端点在减少, 所以可以采用双指针来做。
题目链接
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
const int N = 200005;
const int mod = 1e9+7;
struct tri
{
...
原创
2019-08-09 13:57:42 ·
141 阅读 ·
0 评论