Codeforces Round 789 (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
1678 Codeforces Round 789 (Div. 2) FINISHED False 7200 85245862 May 8, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 18334 ) A Tokitsukaze and All Zero Sequence PROGRAMMING implementation

B'Tokitsukaze has a sequence a of length n . For each operation, she selects two numbers a_i and a_j ( i ne j ; 1 <= q i,j <= q n ). Tokitsukaze wants to know the minimum number of operations to change all numbers in the sequence to 0 . It can be proved that the answer always exists. The first line contains a single positive integer t ( 1 <= q t <= q 1000 ) -- the number of test cases. For each test case, the first line contains a single integer n ( 2 <= q n <= q 100 ) -- the length of the sequence a . The second line contains n integers a_1, a_2, ldots, a_n ( 0 <= q a_i <= q 100 ) -- the sequence a . For each test case, print a single integer -- the minimum number of operations to change all numbers in the sequence to 0 . In the first test case, one of the possible ways to change all numbers in the sequence to 0 : In the 1 -st operation, a_1 < a_2 , after the operation, a_2 = a_1 = 1 . Now the sequence a is [1,1,3] . In the 2 -nd operation, a_1 = a_2 = 1 , after the operation, a_1 = 0 . Now the sequence a is [0,1,3] . In the 3 -rd operation, a_1 < a_2 , after the operation, a_2 = 0 . Now the sequence a is [0,0,3] . In the 4 -th operation, a_2 < a_3 , after the operation, a_3 = 0 . Now the sequence a is [0,0,0] . So the minimum number of operations is 4 . '...

Tutorials

Codeforces Round 789 Chinese Tutorial.pdf

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
156336517 raudel25 A May 8, 2022, 3:57 p.m. OK C# 10 TESTS 10 62 3379200
156355425 thb.014 A May 8, 2022, 6:07 p.m. OK GNU C11 TESTS 10 31 0
156371177 Labib.BD A May 9, 2022, 12:38 a.m. OK GNU C11 TESTS 10 31 0
156379703 zsa.sauran A May 9, 2022, 4:10 a.m. OK GNU C11 TESTS 10 31 0
156381315 eliot_ A May 9, 2022, 4:49 a.m. OK GNU C11 TESTS 10 31 0
156337099 Abhishek_Tewatia A May 8, 2022, 3:58 p.m. OK GNU C11 TESTS 10 46 0
156337556 arky_13 A May 8, 2022, 4 p.m. OK GNU C11 TESTS 10 46 0
156356176 Polash_Islam A May 8, 2022, 6:16 p.m. OK GNU C++14 TESTS 10 15 0
156370126 PPPBW A May 8, 2022, 11:58 p.m. OK GNU C++14 TESTS 10 15 0
156357038 prerit_2002 A May 8, 2022, 6:28 p.m. OK GNU C++14 TESTS 10 15 0
156360453 BlackPanther112358 A May 8, 2022, 7:22 p.m. OK GNU C++14 TESTS 10 15 102400
156353279 ABoora A May 8, 2022, 5:42 p.m. OK GNU C++14 TESTS 10 15 204800
156352969 youssef7ussien A May 8, 2022, 5:38 p.m. OK GNU C++14 TESTS 10 15 204800
156361102 tushirsahu30 A May 8, 2022, 7:33 p.m. OK GNU C++14 TESTS 10 15 204800
156363815 fawaztq A May 8, 2022, 8:28 p.m. OK GNU C++14 TESTS 10 30 0
156383418 usx21145304 A May 9, 2022, 5:32 a.m. OK GNU C++14 TESTS 10 30 0
156382545 khushb00 A May 9, 2022, 5:15 a.m. OK GNU C++14 TESTS 10 30 0
156343576 ziad_Elabd A May 8, 2022, 4:20 p.m. OK GNU C++17 TESTS 10 15 0
156337427 marwaa123 A May 8, 2022, 4 p.m. OK GNU C++17 TESTS 10 15 0
156378725 csasd555666 A May 9, 2022, 3:48 a.m. OK GNU C++17 TESTS 10 15 0
156380588 itsmanan13 A May 9, 2022, 4:33 a.m. OK GNU C++17 TESTS 10 15 0
156361246 Esraa_Elbeltagy A May 8, 2022, 7:35 p.m. OK GNU C++17 TESTS 10 15 0
156361093 ziad_Elabd A May 8, 2022, 7:33 p.m. OK GNU C++17 TESTS 10 15 0
156352898 Jiren__ A May 8, 2022, 5:38 p.m. OK GNU C++17 TESTS 10 15 0
156377996 kobeforces A May 9, 2022, 3:29 a.m. OK GNU C++17 TESTS 10 15 0
156372204 AliGhaleb A May 9, 2022, 1:15 a.m. OK GNU C++17 TESTS 10 15 102400
156372603 OmarRwiheb A May 9, 2022, 1:27 a.m. OK GNU C++17 TESTS 10 15 102400
156374596 xiece666 A May 9, 2022, 2:24 a.m. OK GNU C++17 (64) TESTS 10 0 1024000
156370477 HSLComeon A May 9, 2022, 12:12 a.m. OK GNU C++17 (64) TESTS 10 15 0
156380267 BucketPotato A May 9, 2022, 4:25 a.m. OK GNU C++17 (64) TESTS 10 15 0
156377782 XHYU61 A May 9, 2022, 3:24 a.m. OK GNU C++17 (64) TESTS 10 15 0
156375601 Zorro07 A May 9, 2022, 2:31 a.m. OK GNU C++17 (64) TESTS 10 15 0
156370962 tommyjiang A May 9, 2022, 12:29 a.m. OK GNU C++17 (64) TESTS 10 15 0
156361737 Ayalla A May 8, 2022, 7:45 p.m. OK GNU C++17 (64) TESTS 10 15 0
156361386 The_Conqueror_31.7 A May 8, 2022, 7:38 p.m. OK GNU C++17 (64) TESTS 10 15 0
156360055 abz-codes A May 8, 2022, 7:15 p.m. OK GNU C++17 (64) TESTS 10 15 0
156359476 par4dox A May 8, 2022, 7:06 p.m. OK GNU C++17 (64) TESTS 10 15 0
156378483 KoolDan A May 9, 2022, 3:42 a.m. OK GNU C++20 (64) TESTS 10 15 0
156377908 Mr43 A May 9, 2022, 3:27 a.m. OK GNU C++20 (64) TESTS 10 15 0
156377425 Shravan0pandey A May 9, 2022, 3:16 a.m. OK GNU C++20 (64) TESTS 10 15 0
156377364 KalyReds A May 9, 2022, 3:14 a.m. OK GNU C++20 (64) TESTS 10 15 0
156378585 NatanVek A May 9, 2022, 3:44 a.m. OK GNU C++20 (64) TESTS 10 15 0
156378777 mnzb2000 A May 9, 2022, 3:49 a.m. OK GNU C++20 (64) TESTS 10 15 0
156381249 Ivan_len A May 9, 2022, 4:47 a.m. OK GNU C++20 (64) TESTS 10 15 0
156381288 Nakamiya A May 9, 2022, 4:48 a.m. OK GNU C++20 (64) TESTS 10 15 0
156383096 pseong A May 9, 2022, 5:26 a.m. OK GNU C++20 (64) TESTS 10 15 0
156383364 sumyabazar93 A May 9, 2022, 5:31 a.m. OK GNU C++20 (64) TESTS 10 15 0
156373676 zelknow26 A May 9, 2022, 1:59 a.m. OK Go TESTS 10 62 3686400
156357386 Satyaa A May 8, 2022, 6:33 p.m. OK Java 11 TESTS 10 171 0
156352183 garg_lucifer A May 8, 2022, 5:31 p.m. OK Java 11 TESTS 10 186 0
156381776 krishnagskr983 A May 9, 2022, 4:59 a.m. OK Java 11 TESTS 10 187 0
156374603 Amir_Coderest A May 9, 2022, 2:24 a.m. OK Java 11 TESTS 10 187 0
156371008 Best_Problem_Solver A May 9, 2022, 12:31 a.m. OK Java 11 TESTS 10 187 0
156378595 goyalneha2607 A May 9, 2022, 3:45 a.m. OK Java 11 TESTS 10 202 0
156355610 flyroko A May 8, 2022, 6:09 p.m. OK Java 11 TESTS 10 202 0
156355119 Sonam_Chhewang A May 8, 2022, 6:03 p.m. OK Java 11 TESTS 10 202 0
156354289 vijender_8601 A May 8, 2022, 5:53 p.m. OK Java 11 TESTS 10 202 0
156338622 rwee1001 A May 8, 2022, 4:03 p.m. OK Java 11 TESTS 10 202 0
156382405 swarup_312 A May 9, 2022, 5:13 a.m. OK Java 8 TESTS 10 93 0
156352072 malekelkassas A May 8, 2022, 5:30 p.m. OK Java 8 TESTS 10 93 0
156374060 sharpen A May 9, 2022, 2:09 a.m. OK Java 8 TESTS 10 109 0
156362215 darshan287 A May 8, 2022, 7:53 p.m. OK Java 8 TESTS 10 109 0
156361797 ak_ankit A May 8, 2022, 7:46 p.m. OK Java 8 TESTS 10 109 0
156360835 ahmedTarek28 A May 8, 2022, 7:29 p.m. OK Java 8 TESTS 10 109 0
156352378 UniversalAdmin A May 8, 2022, 5:33 p.m. OK Java 8 TESTS 10 109 0
156352026 Unrated_Pritam A May 8, 2022, 5:30 p.m. OK Java 8 TESTS 10 109 0
156383284 Jakhongir55 A May 9, 2022, 5:29 a.m. OK Java 8 TESTS 10 124 0
156379676 prakhar_30 A May 9, 2022, 4:10 a.m. OK Java 8 TESTS 10 124 0
156347542 sid9406 A May 8, 2022, 4:32 p.m. OK Kotlin 1.4 TESTS 10 171 204800
156365123 thegeman A May 8, 2022, 9 p.m. OK Kotlin 1.6 TESTS 10 202 0
156384006 codeXiong A May 9, 2022, 5:43 a.m. OK MS C++ 2017 TESTS 10 31 0
156363399 Damirca A May 8, 2022, 8:18 p.m. OK MS C++ 2017 TESTS 10 62 0
156338957 Shrouk_ragap20 A May 8, 2022, 4:05 p.m. OK MS C++ 2017 TESTS 10 62 0
156354347 1_shivam A May 8, 2022, 5:54 p.m. OK MS C++ 2017 TESTS 10 78 0
156346394 Humas_Furquan A May 8, 2022, 4:29 p.m. OK MS C++ 2017 TESTS 10 78 0
156335578 wundersmith A May 8, 2022, 3:53 p.m. OK MS C++ 2017 TESTS 10 78 0
156363540 mandinga A May 8, 2022, 8:22 p.m. OK MS C++ 2017 TESTS 10 93 0
156359415 setuid0 A May 8, 2022, 7:05 p.m. OK MS C++ 2017 TESTS 10 93 0
156350998 1_2_3_4_5_9 A May 8, 2022, 5:23 p.m. OK PyPy 2 TESTS 10 155 2150400
156372524 FrozenKandy A May 9, 2022, 1:25 a.m. OK PyPy 3 TESTS 10 124 2048000
156355715 Anti-Neutrino A May 8, 2022, 6:10 p.m. OK PyPy 3 TESTS 10 186 6451200
156356122 jd_254 A May 8, 2022, 6:16 p.m. OK PyPy 3 TESTS 10 187 6553600
156363352 sohilkhanduja A May 8, 2022, 8:17 p.m. OK PyPy 3 TESTS 10 202 7065600
156363411 sohilkhanduja A May 8, 2022, 8:19 p.m. OK PyPy 3 TESTS 10 202 7270400
156357049 mohanned_war A May 8, 2022, 6:28 p.m. OK PyPy 3 TESTS 10 249 6041600
156345718 surendra_95 A May 8, 2022, 4:27 p.m. OK PyPy 3 TESTS 10 685 6963200
156356294 notTehlka A May 8, 2022, 6:18 p.m. OK PyPy 3-64 TESTS 10 93 3891200
156384550 sakshatmali A May 9, 2022, 5:54 a.m. OK PyPy 3-64 TESTS 10 93 4403200
156368820 riroan A May 8, 2022, 11:04 p.m. OK PyPy 3-64 TESTS 10 109 6246400
156335662 sjNxksbzj A May 8, 2022, 3:54 p.m. OK PyPy 3-64 TESTS 10 139 5017600
156373984 sp_Piyush A May 9, 2022, 2:07 a.m. OK PyPy 3-64 TESTS 10 155 10137600
156353525 egor.loparev A May 8, 2022, 5:45 p.m. OK PyPy 3-64 TESTS 10 170 10649600
156354526 Su_123 A May 8, 2022, 5:56 p.m. OK PyPy 3-64 TESTS 10 171 9625600
156362026 Shai-hulud A May 8, 2022, 7:50 p.m. OK PyPy 3-64 TESTS 10 171 10137600
156359498 plevande A May 8, 2022, 7:06 p.m. OK PyPy 3-64 TESTS 10 186 9625600
156361431 G1ebS A May 8, 2022, 7:39 p.m. OK PyPy 3-64 TESTS 10 186 9932800
156363788 igotyou_cheater A May 8, 2022, 8:27 p.m. OK Python 3 TESTS 10 46 204800
156351392 eugalt A May 8, 2022, 5:25 p.m. OK Python 3 TESTS 10 46 204800
156378983 kakashi_copy_ninja A May 9, 2022, 3:54 a.m. OK Python 3 TESTS 10 61 0
156361952 gustavoo A May 8, 2022, 7:49 p.m. OK Python 3 TESTS 10 61 0
156350991 s1yegor A May 8, 2022, 5:23 p.m. OK Python 3 TESTS 10 61 409600
156382266 pennymagic156 A May 9, 2022, 5:10 a.m. OK Python 3 TESTS 10 62 0
156367710 Shanko A May 8, 2022, 10:21 p.m. OK Python 3 TESTS 10 62 0
156352251 1e9abhi1e10 A May 8, 2022, 5:32 p.m. OK Python 3 TESTS 10 62 0
156340564 monodromy A May 8, 2022, 4:10 p.m. OK Python 3 TESTS 10 62 0
156381752 chandkommanaboyina A May 9, 2022, 4:59 a.m. OK Python 3 TESTS 10 77 0
156370725 Spheniscine A May 9, 2022, 12:21 a.m. OK Rust 2021 TESTS 10 15 102400

remove filters

Back to search problems