版本比较
ABC #294
正文
增加 5 行删除 5 行
60 行未改动61626364656667686955 行未改动12512612712812913013113213313413513613713813914014114214314414514614714814918 行未改动60 行未改动} else if(opt == 2) {cin >> x; s2.erase(x);} else {cout << *s2.begin() << "\n";//s2.erase(s2.begin());}}}55 行未改动//while(j <= m and A[i] + B[j] > -eps) j ++;for(; j <= m and A[i] + B[j] > -eps; j ++) ;ans += j - 1;}//// for(int i = 1; i <= n; i ++) {// cout << fixed << setprecision(12) << A[i] << " ";// } puts("");// for(int i = 1; i <= m; i ++) {// cout << fixed << setprecision(12) << B[i] << " ";// } puts("");// for(int i = 1, j = 0; i <= n and j <= m; i ++) {// while(B[j + 1] + A[i] <= eps and j + 1 <= m) j ++;// //cout << j << "\n";// ans += j;// }//cout << ans << "\n";return ans;}int main() {cin >> n >> m >> k;for (int i = 1; i <= n; i++) cin >> a[i] >> b[i];for (int i = 1; i <= m; i++) cin >> c[i] >> d[i];ldb l = 0, r = 1, mid;18 行未改动60 行未改动61626364656667686955 行未改动12512612712812913013113213313413513613713813914014114214314414514614714814918 行未改动60 行未改动} else if(opt == 2) {cin >> x; s2.erase(x);} else {cout << *s2.begin() << "\n";//s2.erase(s2.begin());}}}55 行未改动//while(j <= m and A[i] + B[j] > -eps) j ++;for(; j <= m and A[i] + B[j] > -eps; j ++) ;ans += j - 1;}//// for(int i = 1; i <= n; i ++) {// cout << fixed << setprecision(12) << A[i] << " ";// } puts("");// for(int i = 1; i <= m; i ++) {// cout << fixed << setprecision(12) << B[i] << " ";// } puts("");// for(int i = 1, j = 0; i <= n and j <= m; i ++) {// while(B[j + 1] + A[i] <= eps and j + 1 <= m) j ++;// //cout << j << "\n";// ans += j;// }//cout << ans << "\n";return ans;}int main() {cin >> n >> m >> k;for (int i = 1; i <= n; i++) cin >> a[i] >> b[i];for (int i = 1; i <= m; i++) cin >> c[i] >> d[i];ldb l = 0, r = 1, mid;18 行未改动