摘要: sol:每次加进一个新元素就找到左边最远的满足条件的元素,然后累计组合数 #include <bits/stdc++.h> using namespace std; #define int long long typedef int ll; inline ll read() { ll s=0; bo 阅读全文
posted @ 2021-10-25 23:02 yccdu 阅读(9) 评论(0) 推荐(0) 编辑
摘要: sol:简单题,复习一下upper_bound #include <bits/stdc++.h> using namespace std; typedef int ll; inline ll read() { ll s=0; bool f=0; char ch=' '; while(!isdigit 阅读全文
posted @ 2021-10-25 00:31 yccdu 阅读(10) 评论(0) 推荐(0) 编辑
摘要: div2B 贪心随便爆一遍就ok了 #include <bits/stdc++.h> using namespace std; typedef int ll; inline ll read() { ll s=0; bool f=0; char ch=' '; while(!isdigit(ch)) 阅读全文
posted @ 2021-10-25 00:12 yccdu 阅读(10) 评论(0) 推荐(0) 编辑