版本比较
如何在P1001 A+B Problem中凑齐RE,TLE,AC,WA,MLE
正文
增加 3 行删除 3 行
21 行未改动2223242526272829303132333413 行未改动4849505152535455565 行未改动21 行未改动int main() {auto now = chrono::high_resolution_clock::now();auto micros = chrono::time_point_cast<chrono::microseconds>(now);long seed = micros.time_since_epoch().count();mt19937 gen(seed);uniform_int_distribution<> dis(0, 4);int random = dis(gen);int a, b;cin >> a >> b;if (random == 0) {13 行未改动cout << a + b << endl;}} else {int x = 0;int y = 1 / x;cout << y << endl;}return 0;5 行未改动21 行未改动2223242526272829303132333413 行未改动4849505152535455565 行未改动21 行未改动int main() {auto now = chrono::high_resolution_clock::now();auto micros = chrono::time_point_cast<chrono::microseconds>(now);long seed = micros.time_since_epoch().count();mt19937 gen(seed);uniform_int_distribution<> dis(0, 4);int random = dis(gen);int a, b;cin >> a >> b;if (random == 0) {13 行未改动cout << a + b << endl;}} else {int x = 0;int y = 1 / x;cout << y << endl;}return 0;5 行未改动