Codeforces Round 670 (Div. 2)

Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.

ContestId
Name
Phase
Frozen
Duration (Seconds)
Relative Time
Start Time
1406 Codeforces Round 670 (Div. 2) FINISHED False 7200 137261663 Sept. 12, 2020, 1:45 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3556 ) D Three Sequences PROGRAMMING binary search data structures greedy math

B'You are given a sequence of n integers a_1, a_2, ldots, a_n . You have to construct two sequences of integers b and c with length n that satisfy: You have to minimize max(b_i,c_i) . In other words, you have to minimize the maximum number in sequences b and c . Also there will be q changes, the i -th change is described by three integers l,r,x . You should add x to a_l,a_{l+1}, ldots, a_r . You have to find the minimum possible value of max(b_i,c_i) for the initial sequence and for sequence after each change. The first line contains an integer n ( 1 <= q n <= q 10^5 ). The secound line contains n integers a_1,a_2, ldots,a_n ( 1 <= q i <= q n , -10^9 <= q a_i <= q 10^9 ). The third line contains an integer q ( 1 <= q q <= q 10^5 ). Each of the next q lines contains three integers l,r,x ( 1 <= q l <= q r <= q n,-10^9 <= q x <= q 10^9 ), desribing the next change. Print q+1 lines. On the i -th ( 1 <= q i <= q q+1 ) line, print the answer to the problem for the sequence after i-1 changes. In the first test: '...

Tutorials

Codeforces Round #670 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
92653628 Gassa D Sept. 12, 2020, 5:34 p.m. OK D TESTS 35 187 13516800
92652589 Gassa D Sept. 12, 2020, 5:22 p.m. OK D TESTS 34 187 13516800
92684116 siumai D Sept. 13, 2020, 5:43 a.m. OK GNU C11 TESTS 35 514 8908800
92674268 luogu_bot5 D Sept. 13, 2020, 2 a.m. OK GNU C++11 TESTS 35 77 819200
92677417 gyh20 D Sept. 13, 2020, 3:26 a.m. OK GNU C++11 TESTS 35 78 614400
92671763 tianbu D Sept. 13, 2020, 12:31 a.m. OK GNU C++11 TESTS 35 78 614400
92681547 Try_Again_Plz D Sept. 13, 2020, 5:02 a.m. OK GNU C++11 TESTS 35 78 614400
92675508 Cswtt311 D Sept. 13, 2020, 2:37 a.m. OK GNU C++11 TESTS 35 78 819200
92676031 QwQcOrZ D Sept. 13, 2020, 2:49 a.m. OK GNU C++11 TESTS 35 78 819200
92673518 Daniel_Jiang D Sept. 13, 2020, 1:36 a.m. OK GNU C++11 TESTS 35 78 1638400
92671827 TYGZ D Sept. 13, 2020, 12:34 a.m. OK GNU C++11 TESTS 35 78 1638400
92679890 cghtxdy D Sept. 13, 2020, 4:28 a.m. OK GNU C++11 TESTS 35 78 1638400
92682503 _Backl1ght D Sept. 13, 2020, 5:18 a.m. OK GNU C++11 TESTS 35 78 2662400
92679957 MashiroSky D Sept. 13, 2020, 4:29 a.m. OK GNU C++14 TESTS 35 140 1638400
92673345 rng.58 D Sept. 13, 2020, 1:31 a.m. OK GNU C++14 TESTS 35 155 1228800
92672415 nkxjlym D Sept. 13, 2020, 12:59 a.m. OK GNU C++14 TESTS 35 155 1228800
92675701 Mackerel_Pike D Sept. 13, 2020, 2:41 a.m. OK GNU C++14 TESTS 35 155 1228800
92679766 742949301 D Sept. 13, 2020, 4:25 a.m. OK GNU C++14 TESTS 35 155 1638400
92648688 S_test D Sept. 12, 2020, 4:43 p.m. OK GNU C++14 TESTS 34 155 2048000
92643400 Luzivanlt D Sept. 12, 2020, 4:11 p.m. OK GNU C++14 TESTS 34 155 3174400
92640237 mathking1021 D Sept. 12, 2020, 3:42 p.m. OK GNU C++14 TESTS 34 156 1638400
92675652 15158022064 D Sept. 13, 2020, 2:40 a.m. OK GNU C++14 TESTS 35 156 4812800
92680600 saurav1717 D Sept. 13, 2020, 4:43 a.m. OK GNU C++14 TESTS 35 171 819200
92674669 _andyli D Sept. 13, 2020, 2:13 a.m. OK GNU C++17 TESTS 35 77 5427200
92657062 vktennis D Sept. 12, 2020, 6:15 p.m. OK GNU C++17 TESTS 35 139 7577600
92643341 tarattata1 D Sept. 12, 2020, 4:11 p.m. OK GNU C++17 TESTS 34 140 819200
92663762 Saq D Sept. 12, 2020, 8 p.m. OK GNU C++17 TESTS 35 140 819200
92674649 t3018210153 D Sept. 13, 2020, 2:13 a.m. OK GNU C++17 TESTS 35 140 1228800
92675748 Fan_Hua D Sept. 13, 2020, 2:42 a.m. OK GNU C++17 TESTS 35 140 1638400
92675101 starve_to_death D Sept. 13, 2020, 2:26 a.m. OK GNU C++17 TESTS 35 140 3174400
92666815 Ruki D Sept. 12, 2020, 9:10 p.m. OK GNU C++17 TESTS 35 155 819200
92679433 2n8asm D Sept. 13, 2020, 4:17 a.m. OK GNU C++17 TESTS 35 155 819200
92680393 slowyfine D Sept. 13, 2020, 4:39 a.m. OK GNU C++17 TESTS 35 155 1638400
92681500 LayCurse D Sept. 13, 2020, 5:01 a.m. OK GNU C++17 (64) TESTS 35 46 3686400
92645057 Kuroni D Sept. 12, 2020, 4:19 p.m. OK GNU C++17 (64) TESTS 34 109 819200
92669531 neal D Sept. 12, 2020, 10:41 p.m. OK GNU C++17 (64) TESTS 35 109 1228800
92676187 thtsshz_bgwrswh D Sept. 13, 2020, 2:54 a.m. OK GNU C++17 (64) TESTS 35 109 1536000
92670949 Svlad_Cjelli D Sept. 12, 2020, 11:52 p.m. OK GNU C++17 (64) TESTS 35 109 1638400
92669999 Clu3l3ss D Sept. 12, 2020, 11:02 p.m. OK GNU C++17 (64) TESTS 35 109 1638400
92674005 heyuhhh D Sept. 13, 2020, 1:52 a.m. OK GNU C++17 (64) TESTS 35 109 1638400
92661855 Redemptioner D Sept. 12, 2020, 7:26 p.m. OK GNU C++17 (64) TESTS 35 109 1638400
92665363 smax D Sept. 12, 2020, 8:32 p.m. OK GNU C++17 (64) TESTS 35 109 1638400
92650426 nvmdava D Sept. 12, 2020, 4:59 p.m. OK GNU C++17 (64) TESTS 34 109 3276800
92665870 meooow D Sept. 12, 2020, 8:45 p.m. OK Go TESTS 35 312 4608000
92664377 meooow D Sept. 12, 2020, 8:11 p.m. OK Go TESTS 35 639 17510400
92669360 blackBird D Sept. 12, 2020, 10:35 p.m. OK Java 11 TESTS 35 312 0
92665087 mphillotry D Sept. 12, 2020, 8:27 p.m. OK Java 11 TESTS 35 342 0
92660329 qlf9 D Sept. 12, 2020, 7:01 p.m. OK Java 11 TESTS 35 342 0
92673938 CCS_Covenant D Sept. 13, 2020, 1:50 a.m. OK Java 11 TESTS 35 764 2252800
92670935 5612 D Sept. 12, 2020, 11:51 p.m. OK Java 11 TESTS 35 1341 102400
92657867 a.wang D Sept. 12, 2020, 6:26 p.m. OK Java 8 TESTS 35 171 0
92640681 naam_me_kya_rakha_he D Sept. 12, 2020, 3:43 p.m. OK Java 8 TESTS 34 202 0
92672155 pprabh2007 D Sept. 13, 2020, 12:50 a.m. OK Java 8 TESTS 35 295 4198400
92650962 flyman3046 D Sept. 12, 2020, 5:05 p.m. OK Java 8 TESTS 34 405 3379200
92645699 plusplus6408 D Sept. 12, 2020, 4:22 p.m. OK Java 8 TESTS 34 639 3891200
92658706 hemant_dhanuka D Sept. 12, 2020, 6:37 p.m. OK Java 8 TESTS 35 1263 0
92682407 sid9406 D Sept. 13, 2020, 5:17 a.m. OK Kotlin TESTS 35 218 0
92647547 yakamoto D Sept. 12, 2020, 4:34 p.m. OK Kotlin TESTS 34 389 4198400
92664019 koper D Sept. 12, 2020, 8:04 p.m. OK Kotlin TESTS 35 390 7987200
92652161 Musin D Sept. 12, 2020, 5:18 p.m. OK Kotlin TESTS 34 1933 24883200
92649070 orloffm D Sept. 12, 2020, 4:46 p.m. OK Mono C# TESTS 34 218 22528000
92656576 hibatibati D Sept. 12, 2020, 6:08 p.m. OK Mono C# TESTS 35 374 29388800
92677190 0Mordecai0 D Sept. 13, 2020, 3:20 a.m. OK MS C++ 2017 TESTS 35 405 1843200
92647229 vpike D Sept. 12, 2020, 4:32 p.m. OK MS C++ 2017 TESTS 34 608 7270400
92674056 caandmn D Sept. 13, 2020, 1:53 a.m. OK MS C++ 2017 TESTS 35 779 819200
92643588 EMBailey D Sept. 12, 2020, 4:12 p.m. OK MS C++ 2017 TESTS 34 780 819200
92643925 manhar D Sept. 12, 2020, 4:14 p.m. OK PyPy 3 TESTS 34 733 20480000
92681768 Nyaan D Sept. 13, 2020, 5:06 a.m. OK PyPy 3 TESTS 35 842 11776000
92681389 Nyaan D Sept. 13, 2020, 4:59 a.m. OK PyPy 3 TESTS 35 889 11571200
92681087 Nyaan D Sept. 13, 2020, 4:53 a.m. OK PyPy 3 TESTS 35 935 12390400
92643085 TheVan D Sept. 12, 2020, 4:10 p.m. OK PyPy 3 TESTS 34 966 21708800
92649010 kclee2172 D Sept. 12, 2020, 4:46 p.m. OK PyPy 3 TESTS 34 1028 18739200
92660727 Nifer D Sept. 12, 2020, 7:07 p.m. OK PyPy 3 TESTS 35 1044 13619200
92649330 Nyaan D Sept. 12, 2020, 4:49 p.m. OK PyPy 3 TESTS 34 1075 13312000
92646779 f2016082 D Sept. 12, 2020, 4:29 p.m. OK PyPy 3 TESTS 34 1122 13619200
92650054 so4649 D Sept. 12, 2020, 4:56 p.m. OK PyPy 3 TESTS 34 1216 13516800
92649677 8wings D Sept. 12, 2020, 4:52 p.m. OK Python 3 TESTS 34 764 9523200
92643364 mkawa2 D Sept. 12, 2020, 4:11 p.m. OK Python 3 TESTS 34 810 9728000
92655449 sh1194 D Sept. 12, 2020, 5:55 p.m. OK Python 3 TESTS 35 1419 9523200
92655498 sh1194 D Sept. 12, 2020, 5:55 p.m. OK Python 3 TESTS 35 1435 9216000
92655630 sh1194 D Sept. 12, 2020, 5:57 p.m. OK Python 3 TESTS 35 1466 9216000
92655852 madn D Sept. 12, 2020, 6 p.m. OK Python 3 TESTS 35 1497 9728000
92645085 8wings D Sept. 12, 2020, 4:19 p.m. OK Python 3 TESTS 34 1512 9728000
92643033 o2c D Sept. 12, 2020, 4:10 p.m. OK Rust TESTS 34 1154 3891200
92644307 o2c D Sept. 12, 2020, 4:15 p.m. OK Rust TESTS 34 1216 3891200
92641079 pandrei D Sept. 12, 2020, 3:44 p.m. OK Rust TESTS 34 1559 11264000

remove filters

Back to search problems