摘要: 看了一眼题,内行OS:不就是一个线段树板子题吗,随便过。 仔细读题:好像不太对劲。 分析了一段时间,可以主席树维护i的时间线,然后维护i + a[i]的最远距离就行了。 // Author: levil #include<bits/stdc++.h> using namespace std; typ 阅读全文
posted @ 2021-09-16 20:57 levill 阅读(42) 评论(0) 推荐(0) 编辑
摘要: A:暴力就行 // Author: levil #include<bits/stdc++.h> using namespace std; typedef long long LL; typedef unsigned long long ULL; typedef pair<int,int> pii; 阅读全文
posted @ 2021-09-16 11:16 levill 阅读(32) 评论(0) 推荐(0) 编辑