版本比较
题解:CF2121H Ice Baby
正文
增加 3 行删除 3 行
22 行未改动232425262727282930315 行未改动3738394041414243444546474748495022 行未改动using namespace std;int n;multiset<int> dp;void solve() { cin>>n; cin>>n; dp.insert(0); for(int i = 1, l, r; i <= n; i++) { cin>>l>>r; auto pos = dp.upper_bound(r);5 行未改动}signed main() {#ifdef ddxrS freopen("sample.in", "r", stdin); freopen("sample.out", "w", stdout); freopen("sample.out", "w", stdout);#endif ios::sync_with_stdio(0); cin.tie(0), cout.tie(0); int t; cin>>t; while(t--) solve(); cerr<<clock() * 1.0 / CLOCKS_PER_SEC<<'\n'; cerr<<clock() * 1.0 / CLOCKS_PER_SEC<<'\n'; return 0;}```