Codeforces Round 717 (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
1516 Codeforces Round 717 (Div. 2) FINISHED False 7200 112811099 April 21, 2021, 1:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 19660 ) B AGAGA XOOORRR PROGRAMMING bitmasks brute force dp greedy

B'Baby Ehab is known for his love for a certain operation. He has an array a of length n , and he decided to keep doing the following operation on it: Now he asks you if he can make all elements of the array equal. Since babies like to make your life harder, he requires that you leave at least 2 elements remaining. The first line contains an integer t ( 1 <= t <= 15 ) -- the number of test cases you need to solve. The first line of each test case contains an integers n ( 2 <= n <= 2000 ) -- the number of elements in the array a . The second line contains n space-separated integers a_1 , a_2 , ldots , a_{n} ( 0 <= a_i < 2^{30} ) -- the elements of the array a . If Baby Ehab can make all elements equal while leaving at least 2 elements standing, print "YES". Otherwise, print "NO". In the first sample, he can remove the first 2 elements, 0 and 2 , and replace them by 0 oplus 2=2 . The array will be [2,2] , so all the elements are equal. In the second sample, there 's no way to make all the elements equal. '...

Tutorials

Codeforces round #717 editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
113815101 Joker1010123 B April 21, 2021, 8:53 p.m. OK GNU C11 TESTS 18 31 0
113845878 manish_5746 B April 22, 2021, 4:59 a.m. OK GNU C11 TESTS 19 46 0
113830996 log2r B April 22, 2021, 3:41 a.m. OK GNU C++11 TESTS 19 15 0
113824293 fishcathu. B April 22, 2021, 1:07 a.m. OK GNU C++11 TESTS 18 15 0
113824274 acm_log B April 22, 2021, 1:06 a.m. OK GNU C++11 TESTS 18 15 204800
113822308 lcl12345 B April 22, 2021, 12:11 a.m. OK GNU C++11 TESTS 18 15 819200
113821939 Dreamfarer B April 22, 2021, 12:01 a.m. OK GNU C++11 TESTS 18 30 0
113802442 asiseno B April 21, 2021, 5:44 p.m. OK GNU C++11 TESTS 16 30 0
113830830 noone___ B April 22, 2021, 3:39 a.m. OK GNU C++11 TESTS 19 30 0
113830655 log2r B April 22, 2021, 3:36 a.m. OK GNU C++11 TESTS 19 30 0
113822832 W_34 B April 22, 2021, 12:25 a.m. OK GNU C++11 TESTS 18 30 0
113820717 zhangteer B April 21, 2021, 11:25 p.m. OK GNU C++11 TESTS 18 30 0
113799177 NomanChowdhuryMunna B April 21, 2021, 5:05 p.m. OK GNU C++14 TESTS 16 15 0
113826926 C0mmuter B April 22, 2021, 2:23 a.m. OK GNU C++14 TESTS 19 15 307200
113805026 No_Struggle_No_Progress B April 21, 2021, 6:18 p.m. OK GNU C++14 TESTS 16 15 3481600
113809334 apmall B April 21, 2021, 7:16 p.m. OK GNU C++14 TESTS 18 30 0
113799308 LekizRai B April 21, 2021, 5:06 p.m. OK GNU C++14 TESTS 16 30 0
113846909 Spaggetti B April 22, 2021, 5:16 a.m. OK GNU C++14 TESTS 19 30 0
113832294 VFX B April 22, 2021, 4:03 a.m. OK GNU C++14 TESTS 19 30 0
113831426 code_breaker21 B April 22, 2021, 3:49 a.m. OK GNU C++14 TESTS 19 30 0
113821049 _Ruri_ B April 21, 2021, 11:34 p.m. OK GNU C++14 TESTS 18 30 0
113804164 Sahu_49 B April 21, 2021, 6:07 p.m. OK GNU C++14 TESTS 16 30 0
113792140 YamanAbdullah B April 21, 2021, 4:08 p.m. OK GNU C++17 TESTS 16 15 0
113797928 Sportsman B April 21, 2021, 4:52 p.m. OK GNU C++17 TESTS 16 15 0
113844018 Blitztage B April 22, 2021, 4:28 a.m. OK GNU C++17 TESTS 19 15 102400
113801384 barnwal11 B April 21, 2021, 5:30 p.m. OK GNU C++17 TESTS 16 15 102400
113793078 rajdeep8501 B April 21, 2021, 4:13 p.m. OK GNU C++17 TESTS 16 15 102400
113845391 akshat_coder12 B April 22, 2021, 4:51 a.m. OK GNU C++17 TESTS 19 30 0
113835290 washuu B April 22, 2021, 4:21 a.m. OK GNU C++17 TESTS 19 30 0
113845305 Atondro_Wahid B April 22, 2021, 4:50 a.m. OK GNU C++17 TESTS 19 30 0
113830644 wyzhf B April 22, 2021, 3:36 a.m. OK GNU C++17 TESTS 19 30 0
113848023 suren_h B April 22, 2021, 5:33 a.m. OK GNU C++17 TESTS 19 30 0
113824742 you_dont_know_me B April 22, 2021, 1:21 a.m. OK GNU C++17 (64) TESTS 18 15 0
113801597 _mystery_ B April 21, 2021, 5:33 p.m. OK GNU C++17 (64) TESTS 16 15 0
113807011 danielvitor23 B April 21, 2021, 6:44 p.m. OK GNU C++17 (64) TESTS 16 15 0
113815088 smax B April 21, 2021, 8:53 p.m. OK GNU C++17 (64) TESTS 18 30 0
113803579 BitSane B April 21, 2021, 5:59 p.m. OK GNU C++17 (64) TESTS 16 30 0
113850105 Avash_Mitra B April 22, 2021, 6:01 a.m. OK GNU C++17 (64) TESTS 19 30 0
113848793 RS45 B April 22, 2021, 5:43 a.m. OK GNU C++17 (64) TESTS 19 30 0
113829090 __DESTROYER__ B April 22, 2021, 3:08 a.m. OK GNU C++17 (64) TESTS 19 30 0
113825402 28CM31E122228E2H8H230ML B April 22, 2021, 1:42 a.m. OK GNU C++17 (64) TESTS 19 30 0
113820530 Anisur_rahaman B April 21, 2021, 11:19 p.m. OK GNU C++17 (64) TESTS 18 30 0
113828230 SorryNaCN B April 22, 2021, 2:52 a.m. OK Go TESTS 19 46 102400
113835413 0x3F B April 22, 2021, 4:24 a.m. OK Go TESTS 19 857 102400
113792868 0x3F B April 21, 2021, 4:12 p.m. OK Go TESTS 16 920 102400
113846057 soumit915 B April 22, 2021, 5:02 a.m. OK Java 11 TESTS 19 171 0
113844369 coderrohan14 B April 22, 2021, 4:34 a.m. OK Java 11 TESTS 19 171 0
113793331 coder0687 B April 21, 2021, 4:15 p.m. OK Java 11 TESTS 16 186 0
113796426 mrRobot B April 21, 2021, 4:38 p.m. OK Java 11 TESTS 16 186 0
113805683 Solemon B April 21, 2021, 6:28 p.m. OK Java 11 TESTS 16 186 0
113821025 procrastinate7 B April 21, 2021, 11:34 p.m. OK Java 11 TESTS 18 187 0
113846118 soumit915 B April 22, 2021, 5:02 a.m. OK Java 11 TESTS 19 187 0
113803156 sharnit B April 21, 2021, 5:53 p.m. OK Java 11 TESTS 16 187 0
113801987 godfather9 B April 21, 2021, 5:38 p.m. OK Java 11 TESTS 16 187 0
113796978 Is2ac B April 21, 2021, 4:43 p.m. OK Java 11 TESTS 16 187 0
113846452 Aman_dixit B April 22, 2021, 5:08 a.m. OK Java 8 TESTS 19 109 0
113844218 thrilokponnuru714 B April 22, 2021, 4:32 a.m. OK Java 8 TESTS 19 109 0
113816716 Abdallah_Ragab00 B April 21, 2021, 9:28 p.m. OK Java 8 TESTS 18 109 0
113828012 shubhamsb25 B April 22, 2021, 2:48 a.m. OK Java 8 TESTS 19 124 0
113809144 Dstoical B April 21, 2021, 7:13 p.m. OK Java 8 TESTS 18 124 0
113791712 gagan_6730 B April 21, 2021, 4:06 p.m. OK Java 8 TESTS 16 124 0
113799888 deepaksach B April 21, 2021, 5:13 p.m. OK Java 8 TESTS 16 124 0
113806286 kkkkush B April 21, 2021, 6:35 p.m. OK Java 8 TESTS 16 140 0
113830417 Tourist_ka_baap777 B April 22, 2021, 3:32 a.m. OK Java 8 TESTS 19 140 0
113829565 coder_terror B April 22, 2021, 3:16 a.m. OK Java 8 TESTS 19 140 0
113802626 koper B April 21, 2021, 5:46 p.m. OK Kotlin TESTS 16 155 1740800
113790939 PavelChadnov B April 21, 2021, 4:03 p.m. OK Kotlin TESTS 16 171 0
113808581 SevagD B April 21, 2021, 7:05 p.m. OK MS C++ TESTS 18 218 35020800
113813123 AmalSN B April 21, 2021, 8:16 p.m. OK MS C++ 2017 TESTS 18 31 307200
113791798 aleksikangas B April 21, 2021, 4:07 p.m. OK MS C++ 2017 TESTS 16 61 0
113808105 yapril B April 21, 2021, 6:59 p.m. OK MS C++ 2017 TESTS 18 61 0
113798136 Ke1 B April 21, 2021, 4:54 p.m. OK MS C++ 2017 TESTS 16 61 0
113795116 NoobMaster12 B April 21, 2021, 4:27 p.m. OK MS C++ 2017 TESTS 16 61 716800
113798158 Ke1 B April 21, 2021, 4:54 p.m. OK MS C++ 2017 TESTS 16 62 0
113825025 _Rimjhim_36 B April 22, 2021, 1:30 a.m. OK MS C++ 2017 TESTS 19 62 0
113824820 Harshita_0304 B April 22, 2021, 1:23 a.m. OK MS C++ 2017 TESTS 18 62 0
113827233 202003013036 B April 22, 2021, 2:30 a.m. OK MS C++ 2017 TESTS 19 62 307200
113835471 Archie98 B April 22, 2021, 4:25 a.m. OK MS C++ 2017 TESTS 19 62 307200
113810860 ansergeyg B April 21, 2021, 7:38 p.m. OK .NET Core C# TESTS 18 124 3276800
113822037 CLown1331 B April 22, 2021, 12:04 a.m. OK .NET Core C# TESTS 18 451 19865600
113793781 CLown1331 B April 21, 2021, 4:17 p.m. OK .NET Core C# TESTS 16 467 19865600
113821976 CLown1331 B April 22, 2021, 12:02 a.m. OK .NET Core C# TESTS 18 483 20172800
113810781 tennisru B April 21, 2021, 7:37 p.m. OK Node.js TESTS 18 92 2560000
113790624 sky B April 21, 2021, 4:02 p.m. OK Node.js TESTS 16 93 2662400
113795243 wyxfwxh250821 B April 21, 2021, 4:28 p.m. OK PyPy 2 TESTS 16 155 8601600
113794324 wyxfwxh250821 B April 21, 2021, 4:21 p.m. OK PyPy 2 TESTS 16 156 8601600
113791805 haathi B April 21, 2021, 4:07 p.m. OK PyPy 2 TESTS 16 233 2662400
113794232 lebron87 B April 21, 2021, 4:20 p.m. OK PyPy 2 TESTS 16 233 9216000
113791763 haathi B April 21, 2021, 4:06 p.m. OK PyPy 2 TESTS 16 249 2662400
113804302 nitish420 B April 21, 2021, 6:09 p.m. OK PyPy 3 TESTS 16 108 2355200
113820429 patron666 B April 21, 2021, 11:16 p.m. OK PyPy 3 TESTS 18 109 3584000
113791388 empr B April 21, 2021, 4:05 p.m. OK PyPy 3 TESTS 16 124 2457600
113791297 reddevil100 B April 21, 2021, 4:04 p.m. OK PyPy 3 TESTS 16 124 2867200
113810873 light_yagami52 B April 21, 2021, 7:38 p.m. OK PyPy 3 TESTS 18 124 3072000
113795802 Igrmi B April 21, 2021, 4:32 p.m. OK PyPy 3 TESTS 16 124 3379200
113845170 ABhi_gyan B April 22, 2021, 4:48 a.m. OK PyPy 3 TESTS 19 124 3584000
113848966 varsha765.vc B April 22, 2021, 5:46 a.m. OK PyPy 3 TESTS 19 124 3584000
113828843 jacksparrow_9604 B April 22, 2021, 3:03 a.m. OK PyPy 3 TESTS 19 124 3584000
113821546 vishwas_007 B April 21, 2021, 11:49 p.m. OK PyPy 3 TESTS 18 124 3584000
113803676 newbie00 B April 21, 2021, 6 p.m. OK Python 3 TESTS 16 62 409600
113832342 hakish1234 B April 22, 2021, 4:04 a.m. OK Python 3 TESTS 19 62 614400
113804771 farrellbyu B April 21, 2021, 6:14 p.m. OK Python 3 TESTS 16 62 614400
113829898 h8191 B April 22, 2021, 3:22 a.m. OK Python 3 TESTS 19 77 307200
113804567 JAMES-CODER B April 21, 2021, 6:12 p.m. OK Python 3 TESTS 16 77 409600
113806710 rushi_30 B April 21, 2021, 6:41 p.m. OK Python 3 TESTS 16 77 409600
113806726 lolloz98 B April 21, 2021, 6:41 p.m. OK Python 3 TESTS 16 77 409600
113819867 sudden.spark B April 21, 2021, 10:59 p.m. OK Python 3 TESTS 18 77 409600
113814458 Harsh_Xerus B April 21, 2021, 8:40 p.m. OK Python 3 TESTS 18 77 409600
113810541 coder_11 B April 21, 2021, 7:33 p.m. OK Python 3 TESTS 18 77 409600
113795682 toomer B April 21, 2021, 4:31 p.m. OK Rust TESTS 16 31 1024000

remove filters

Back to search problems