codeforce
49er
这个作者很懒,什么都没留下…
展开
-
Codeforces Round #601 (Div. 2)
A. Changing Volume 这道题都转化为从小到大求解。优先按大的按钮就可以。 #include<bits/stdc++.h> using namespace std; typedef long long LL; void solve() { LL a, b; cin >> a >> b; if(a > b) s...原创 2019-11-20 17:21:38 · 122 阅读 · 0 评论 -
codeforces round #595 D2. Too Many Segments
https://codeforces.com/contest/1249/problem/D2 这道题就是贪心选择最右的一个区间。重点是对区间操作的一些技巧。考试的时候考虑用线段树。其实完全没有必要。 #include<bits/stdc++.h> using namespace std; const int N = 2e5+10; vector<pair<int, ...原创 2019-10-23 14:44:03 · 157 阅读 · 1 评论