Codeforces Round 933 (Div. 3)

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
1941 Codeforces Round 933 (Div. 3) FINISHED False 8100 21655499 March 11, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 30000 ) B Rudolf and 121 PROGRAMMING greedy math

B'Rudolf has an array a of n integers, the elements are numbered from 1 to n . In one operation, he can choose an index i ( 2 <= i <= n - 1 ) and assign: Rudolf can apply this operation any number of times. Any index i can be used zero or more times. Can he make all the elements of the array equal to zero using this operation? The first line of the input contains a single integer t ( 1 <= t <= 10^4 ) -- the number of test cases in the test. The first line of each case contains a single integer n ( 3 <= n <= 2 cdot 10^5 ) -- the number of elements in the array. The second line of each case contains n integers a_1, a_2, ... , a_n ( 0 <= a_j <= 10^9 ) -- the elements of the array. It is guaranteed that the sum of the values of n over all test cases does not exceed 2 cdot 10^5 . For each test case, output "YES" if it is possible to make all the elements of the array zero using the described operations. Otherwise, output "NO". You can output each letter in any case (lowercase or uppercase). For example, the strings "yEs", "yes", "Yes", and "YES" will be accepted as a positive answer. In the first example, the original array is [1, 3, 5, 5, 2] , to make all its elements zero, Rudolf can act as follows: '...

Tutorials

127018

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
250840469 Mohamed_Shosha B March 11, 2024, 7:56 p.m. OK C# 10 TESTS 5 77 26112000
250866076 chenxu2001 B March 12, 2024, 2:18 a.m. OK C# 10 TESTS 5 78 26009600
250883559 d1041231071 B March 12, 2024, 5:46 a.m. OK C++14 (GCC 6-32) TESTS 5 46 819200
250872800 dabananda B March 12, 2024, 3:51 a.m. OK C++14 (GCC 6-32) TESTS 5 46 819200
250832555 again300 B March 11, 2024, 6:43 p.m. OK C++14 (GCC 6-32) TESTS 5 46 819200
250834787 _Always.. B March 11, 2024, 7:02 p.m. OK C++14 (GCC 6-32) TESTS 5 46 1638400
250884773 Linshixing B March 12, 2024, 5:56 a.m. OK C++14 (GCC 6-32) TESTS 5 46 1638400
250878536 tiaokeng B March 12, 2024, 5 a.m. OK C++14 (GCC 6-32) TESTS 5 46 3993600
250823253 1e3bonzakura B March 11, 2024, 5:36 p.m. OK C++14 (GCC 6-32) TESTS 5 61 1638400
250864172 Mohmed-gado B March 12, 2024, 1:44 a.m. OK C++14 (GCC 6-32) TESTS 5 61 1638400
250839488 Shawky_XR B March 11, 2024, 7:46 p.m. OK C++14 (GCC 6-32) TESTS 5 61 1638400
250865658 khongphaidpduy B March 12, 2024, 2:11 a.m. OK C++14 (GCC 6-32) TESTS 5 61 3174400
250885286 Square_Square B March 12, 2024, 6:01 a.m. OK C++17 (GCC 7-32) TESTS 5 15 1740800
250853198 RaghuRam1233 B March 11, 2024, 10:20 p.m. OK C++17 (GCC 7-32) TESTS 5 46 716800
250867248 go_run_code B March 12, 2024, 2:36 a.m. OK C++17 (GCC 7-32) TESTS 5 46 819200
250874725 NaSzG B March 12, 2024, 4:15 a.m. OK C++17 (GCC 7-32) TESTS 5 46 819200
250872826 serenipity B March 12, 2024, 3:51 a.m. OK C++17 (GCC 7-32) TESTS 5 46 819200
250872484 Majedh B March 12, 2024, 3:46 a.m. OK C++17 (GCC 7-32) TESTS 5 46 819200
250871060 YakultGo B March 12, 2024, 3:29 a.m. OK C++17 (GCC 7-32) TESTS 5 46 819200
250866808 lusunn111 B March 12, 2024, 2:30 a.m. OK C++17 (GCC 7-32) TESTS 5 46 819200
250859437 zubair3.1416 B March 12, 2024, 12:20 a.m. OK C++17 (GCC 7-32) TESTS 5 46 819200
250857115 HappyCodingLife. B March 11, 2024, 11:34 p.m. OK C++17 (GCC 7-32) TESTS 5 46 819200
250854766 bluemegane B March 11, 2024, 10:49 p.m. OK C# 8 TESTS 5 124 27340800
250854664 bluemegane B March 11, 2024, 10:47 p.m. OK C# 8 TESTS 5 186 27648000
250843029 rishabh_sankla B March 11, 2024, 8:18 p.m. OK GNU C11 TESTS 5 62 1024000
250828237 MooNaz B March 11, 2024, 6:10 p.m. OK GNU C11 TESTS 5 62 1024000
250885079 qweasd16 B March 12, 2024, 5:59 a.m. OK GNU C11 TESTS 5 77 819200
250846687 uchiha_itachi_1308 B March 11, 2024, 8:55 p.m. OK GNU C11 TESTS 5 77 819200
250837902 DEVARSH_007 B March 11, 2024, 7:31 p.m. OK GNU C11 TESTS 5 93 1024000
250849426 rejwoan145 B March 11, 2024, 9:26 p.m. OK GNU C11 TESTS 5 93 36249600
250885032 binhuq B March 12, 2024, 5:58 a.m. OK Go TESTS 5 31 8499200
250879094 binhuq B March 12, 2024, 5:06 a.m. OK Go TESTS 5 31 8499200
250877041 binhuq B March 12, 2024, 4:44 a.m. OK Go TESTS 5 46 4710400
250829645 nguyenquocthao00 B March 11, 2024, 6:20 p.m. OK Go TESTS 5 77 13824000
250879371 ramitg254 B March 12, 2024, 5:09 a.m. OK Java 21 TESTS 5 249 204800
250832839 Pratham2908 B March 11, 2024, 6:45 p.m. OK Java 21 TESTS 5 249 3584000
250844706 Amrkollohm B March 11, 2024, 8:34 p.m. OK Java 21 TESTS 5 265 3379200
250837165 jayantKS29 B March 11, 2024, 7:24 p.m. OK Java 21 TESTS 5 295 4096000
250872660 Renull B March 12, 2024, 3:49 a.m. OK Java 21 TESTS 5 296 2969600
250830637 saiganeshdarni B March 11, 2024, 6:28 p.m. OK Java 21 TESTS 5 311 20787200
250866606 _ShenHua_ B March 12, 2024, 2:27 a.m. OK Java 21 TESTS 5 327 0
250873093 fightingxjz B March 12, 2024, 3:55 a.m. OK Java 21 TESTS 5 327 3584000
250848780 krish0596 B March 11, 2024, 9:18 p.m. OK Java 21 TESTS 5 327 3686400
250832651 aishwarykesarwani B March 11, 2024, 6:43 p.m. OK Java 21 TESTS 5 342 3788800
250877264 Mr.Numerator_007 B March 12, 2024, 4:46 a.m. OK Java 8 TESTS 5 109 0
250877231 TheBoogeyman_429 B March 12, 2024, 4:46 a.m. OK Java 8 TESTS 5 109 0
250832729 Sumitsingh7 B March 11, 2024, 6:44 p.m. OK Java 8 TESTS 5 124 5939200
250878659 Sweetdevil144 B March 12, 2024, 5:01 a.m. OK Java 8 TESTS 5 139 11161600
250871463 pswaao B March 12, 2024, 3:34 a.m. OK Java 8 TESTS 5 155 11059200
250824088 NerfThis B March 11, 2024, 5:41 p.m. OK Java 8 TESTS 5 155 11468800
250881499 ycnetsisnoc B March 12, 2024, 5:30 a.m. OK Java 8 TESTS 5 171 0
250825228 Q_R_Y B March 11, 2024, 5:49 p.m. OK Java 8 TESTS 5 171 0
250829955 rdx14 B March 11, 2024, 6:23 p.m. OK Java 8 TESTS 5 171 11059200
250867735 51Hz B March 12, 2024, 2:43 a.m. OK Java 8 TESTS 5 171 15564800
250829094 bio-duplex B March 11, 2024, 6:17 p.m. OK Kotlin 1.9 TESTS 5 280 16486400
250860367 crapcode B March 12, 2024, 12:39 a.m. OK PHP TESTS 5 78 31539200
250848860 joaozao B March 11, 2024, 9:19 p.m. OK PyPy 3 TESTS 5 295 18022400
250874848 momenelmesady4803 B March 12, 2024, 4:16 a.m. OK PyPy 3 TESTS 5 483 21094400
250832790 white_wolf19 B March 11, 2024, 6:44 p.m. OK PyPy 3 TESTS 5 498 19251200
250862256 akshita_mishra B March 12, 2024, 1:10 a.m. OK PyPy 3 TESTS 5 514 19148800
250848792 joaozao B March 11, 2024, 9:18 p.m. OK PyPy 3 TESTS 5 514 19148800
250861388 ashays B March 12, 2024, 12:56 a.m. OK PyPy 3 TESTS 5 514 21299200
250862800 akshita_mishra B March 12, 2024, 1:19 a.m. OK PyPy 3 TESTS 5 592 18329600
250851751 voicon B March 11, 2024, 9:56 p.m. OK PyPy 3-64 TESTS 5 108 31641600
250826796 strashila B March 11, 2024, 5:59 p.m. OK PyPy 3-64 TESTS 5 108 31744000
250834971 gardengnome B March 11, 2024, 7:04 p.m. OK PyPy 3-64 TESTS 5 109 27545600
250881473 Azimjonm2333 B March 12, 2024, 5:30 a.m. OK PyPy 3-64 TESTS 5 139 25804800
250844642 amongsus B March 11, 2024, 8:34 p.m. OK PyPy 3-64 TESTS 5 140 29184000
250861242 jvatsal0709 B March 12, 2024, 12:53 a.m. OK PyPy 3-64 TESTS 5 140 31641600
250854896 cybsbbb B March 11, 2024, 10:51 p.m. OK PyPy 3-64 TESTS 5 155 27443200
250852391 kinglykang B March 11, 2024, 10:06 p.m. OK PyPy 3-64 TESTS 5 155 27545600
250854121 DeepJ B March 11, 2024, 10:37 p.m. OK PyPy 3-64 TESTS 5 155 28774400
250839752 Namika B March 11, 2024, 7:49 p.m. OK PyPy 3-64 TESTS 5 155 28876800
250826798 mohaiminul_islam B March 11, 2024, 5:59 p.m. OK Python 3 TESTS 5 139 28672000
250826936 Aniket_001 B March 11, 2024, 6:01 p.m. OK Python 3 TESTS 5 140 28672000
250826697 eugalt B March 11, 2024, 5:59 p.m. OK Python 3 TESTS 5 140 28672000
250857192 Mahmoud__Ashraf B March 11, 2024, 11:35 p.m. OK Python 3 TESTS 5 155 26316800
250852683 Om_Singh_ B March 11, 2024, 10:11 p.m. OK Python 3 TESTS 5 155 26828800
250826828 eugalt B March 11, 2024, 6 p.m. OK Python 3 TESTS 5 155 28672000
250862883 tarunvyshnav B March 12, 2024, 1:21 a.m. OK Python 3 TESTS 5 170 26828800
250857059 Mahmoud__Ashraf B March 11, 2024, 11:33 p.m. OK Python 3 TESTS 5 171 26316800
250849423 tien_joel B March 11, 2024, 9:26 p.m. OK Python 3 TESTS 5 171 26828800
250845745 ali-buni B March 11, 2024, 8:45 p.m. OK Python 3 TESTS 5 171 26828800
250821562 0x81 B March 11, 2024, 5:27 p.m. OK Ruby 3 TESTS 5 717 23552000
250876860 vstiff B March 12, 2024, 4:41 a.m. OK Rust 2021 TESTS 5 30 6963200

remove filters

Back to search problems