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 |
---|---|---|---|---|---|---|
1708 | Codeforces Round 808 (Div. 2) | FINISHED | False | 7200 | 79284263 | July 16, 2022, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 21898 ) | A | Difference Operations | PROGRAMMING | greedy math |
B'You are given an array a consisting of n positive integers. You are allowed to perform this operation any number of times (possibly, zero): Is it possible to make a_i=0 for all 2 <= i <= n ? The input consists of multiple test cases. The first line contains a single integer t ( 1 <= t <= 100 ) -- the number of test cases. The description of the test cases follows. The first line contains one integer n ( 2 <= n <= 100 ) -- the length of array a . The second line contains n integers a_1,a_2, ldots,a_n ( 1 <= a_i <= 10^9 ). For each test case, print "YES" (without quotes), if it is possible to change a_i to 0 for all 2 <= i <= n , and "NO" (without quotes) otherwise. You can print letters in any case (upper or lower). In the first test case, the initial array is [5,10] . You can perform 2 operations to reach the goal: In the second test case, the initial array is [1,2,3] . You can perform 4 operations to reach the goal: In the third test case, you can choose indices in the order 4 , 3 , 2 . '... |
104930 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
164533757 | SV_aniket_2 | A | July 16, 2022, 5:47 p.m. | OK | Clang++20 Diagnostics | TESTS | 26 | 62 | 0 | ||
164530079 | chaitanya__dua | A | July 16, 2022, 5:19 p.m. | OK | GNU C11 | TESTS | 26 | 15 | 0 | ||
164538469 | predawn | A | July 16, 2022, 6:34 p.m. | OK | GNU C11 | TESTS | 26 | 15 | 0 | ||
164546086 | Mani.ac | A | July 16, 2022, 8:20 p.m. | OK | GNU C11 | TESTS | 26 | 15 | 0 | ||
164571001 | meghanachitturi5678 | A | July 17, 2022, 4:36 a.m. | OK | GNU C11 | TESTS | 26 | 15 | 0 | ||
164537073 | eashovon | A | July 16, 2022, 6:18 p.m. | OK | GNU C11 | TESTS | 26 | 30 | 0 | ||
164533836 | abhishek2883 | A | July 16, 2022, 5:48 p.m. | OK | GNU C11 | TESTS | 26 | 30 | 0 | ||
164541752 | Yogender_2021505 | A | July 16, 2022, 7:15 p.m. | OK | GNU C11 | TESTS | 26 | 31 | 0 | ||
164574065 | nidhish_shukla | A | July 17, 2022, 5:25 a.m. | OK | GNU C++14 | TESTS | 26 | 15 | 0 | ||
164572890 | ankushgoel253 | A | July 17, 2022, 5:07 a.m. | OK | GNU C++14 | TESTS | 26 | 15 | 0 | ||
164572855 | amanverma6528240 | A | July 17, 2022, 5:07 a.m. | OK | GNU C++14 | TESTS | 26 | 15 | 0 | ||
164574239 | trust.the.process | A | July 17, 2022, 5:27 a.m. | OK | GNU C++14 | TESTS | 26 | 15 | 0 | ||
164575869 | adimak | A | July 17, 2022, 5:51 a.m. | OK | GNU C++14 | TESTS | 26 | 15 | 0 | ||
164575823 | coder_78 | A | July 17, 2022, 5:50 a.m. | OK | GNU C++14 | TESTS | 26 | 15 | 0 | ||
164575788 | ghanchi_laxman0709 | A | July 17, 2022, 5:50 a.m. | OK | GNU C++14 | TESTS | 26 | 15 | 0 | ||
164574968 | Gogolev | A | July 17, 2022, 5:38 a.m. | OK | GNU C++14 | TESTS | 26 | 15 | 0 | ||
164575311 | Akshay1323 | A | July 17, 2022, 5:43 a.m. | OK | GNU C++14 | TESTS | 26 | 15 | 0 | ||
164574586 | Kraken21 | A | July 17, 2022, 5:32 a.m. | OK | GNU C++14 | TESTS | 26 | 15 | 0 | ||
164575022 | baybreeze | A | July 17, 2022, 5:39 a.m. | OK | GNU C++17 | TESTS | 26 | 15 | 0 | ||
164574844 | Camillus | A | July 17, 2022, 5:35 a.m. | OK | GNU C++17 | TESTS | 26 | 15 | 0 | ||
164574835 | YuvrajSakshith | A | July 17, 2022, 5:35 a.m. | OK | GNU C++17 | TESTS | 26 | 15 | 0 | ||
164576148 | maayeesha_ | A | July 17, 2022, 5:54 a.m. | OK | GNU C++17 | TESTS | 26 | 15 | 0 | ||
164576029 | kunalmali | A | July 17, 2022, 5:53 a.m. | OK | GNU C++17 | TESTS | 26 | 15 | 0 | ||
164575944 | Asad5059 | A | July 17, 2022, 5:52 a.m. | OK | GNU C++17 | TESTS | 26 | 15 | 0 | ||
164575355 | 1VK8 | A | July 17, 2022, 5:43 a.m. | OK | GNU C++17 | TESTS | 26 | 15 | 0 | ||
164575234 | Biaz | A | July 17, 2022, 5:42 a.m. | OK | GNU C++17 | TESTS | 26 | 15 | 0 | ||
164576461 | bijoy_dewanjee | A | July 17, 2022, 5:58 a.m. | OK | GNU C++17 | TESTS | 26 | 15 | 0 | ||
164576417 | ahasanulhossain681 | A | July 17, 2022, 5:57 a.m. | OK | GNU C++17 | TESTS | 26 | 15 | 0 | ||
164575257 | bashkort | A | July 17, 2022, 5:42 a.m. | OK | GNU C++17 (64) | TESTS | 26 | 0 | 0 | ||
164570119 | sourav201-15-14220 | A | July 17, 2022, 4:20 a.m. | OK | GNU C++17 (64) | TESTS | 26 | 0 | 0 | ||
164552136 | Newaz10 | A | July 16, 2022, 10:29 p.m. | OK | GNU C++17 (64) | TESTS | 26 | 0 | 0 | ||
164544014 | Maram | A | July 16, 2022, 7:47 p.m. | OK | GNU C++17 (64) | TESTS | 26 | 0 | 0 | ||
164536641 | FGN06 | A | July 16, 2022, 6:14 p.m. | OK | GNU C++17 (64) | TESTS | 26 | 0 | 7987200 | ||
164571441 | _appreciate | A | July 17, 2022, 4:43 a.m. | OK | GNU C++17 (64) | TESTS | 26 | 15 | 0 | ||
164576425 | aliasgar_45 | A | July 17, 2022, 5:58 a.m. | OK | GNU C++17 (64) | TESTS | 26 | 15 | 0 | ||
164574378 | VeNoM002 | A | July 17, 2022, 5:29 a.m. | OK | GNU C++17 (64) | TESTS | 26 | 15 | 0 | ||
164571475 | noob_coder_29 | A | July 17, 2022, 4:43 a.m. | OK | GNU C++17 (64) | TESTS | 26 | 15 | 0 | ||
164570310 | SakiBee | A | July 17, 2022, 4:23 a.m. | OK | GNU C++17 (64) | TESTS | 26 | 15 | 0 | ||
164553718 | TGH_yang_xiao | A | July 16, 2022, 11:21 p.m. | OK | GNU C++20 (64) | TESTS | 26 | 0 | 0 | ||
164547381 | joeyMegaTurner | A | July 16, 2022, 8:42 p.m. | OK | GNU C++20 (64) | TESTS | 26 | 0 | 0 | ||
164546211 | hrai_20 | A | July 16, 2022, 8:22 p.m. | OK | GNU C++20 (64) | TESTS | 26 | 0 | 0 | ||
164558719 | zeus_77 | A | July 17, 2022, 1:26 a.m. | OK | GNU C++20 (64) | TESTS | 26 | 0 | 0 | ||
164559852 | yoyobunt | A | July 17, 2022, 1:45 a.m. | OK | GNU C++20 (64) | TESTS | 26 | 0 | 0 | ||
164560121 | A_king | A | July 17, 2022, 1:50 a.m. | OK | GNU C++20 (64) | TESTS | 26 | 0 | 0 | ||
164560839 | Rick_GT | A | July 17, 2022, 2:01 a.m. | OK | GNU C++20 (64) | TESTS | 26 | 0 | 0 | ||
164562131 | jaychentank | A | July 17, 2022, 2:19 a.m. | OK | GNU C++20 (64) | TESTS | 26 | 0 | 0 | ||
164562253 | Divyanshi66 | A | July 17, 2022, 2:21 a.m. | OK | GNU C++20 (64) | TESTS | 26 | 0 | 0 | ||
164568209 | Enigma_52 | A | July 17, 2022, 3:50 a.m. | OK | GNU C++20 (64) | TESTS | 26 | 0 | 0 | ||
164560574 | SadFriedRice | A | July 17, 2022, 1:57 a.m. | OK | Go | TESTS | 26 | 15 | 204800 | ||
164560906 | dagnaf | A | July 17, 2022, 2:02 a.m. | OK | Go | TESTS | 26 | 31 | 204800 | ||
164529353 | philrandom | A | July 16, 2022, 5:15 p.m. | OK | Haskell | TESTS | 26 | 46 | 0 | ||
164537243 | Sarvjeet619 | A | July 16, 2022, 6:20 p.m. | OK | Java 11 | TESTS | 26 | 170 | 0 | ||
164572212 | nbhakar | A | July 17, 2022, 4:56 a.m. | OK | Java 11 | TESTS | 26 | 171 | 0 | ||
164551960 | TheNyahPatriarch | A | July 16, 2022, 10:25 p.m. | OK | Java 11 | TESTS | 26 | 171 | 0 | ||
164540053 | newguy1 | A | July 16, 2022, 6:53 p.m. | OK | Java 11 | TESTS | 26 | 171 | 0 | ||
164537004 | deepaksach | A | July 16, 2022, 6:17 p.m. | OK | Java 11 | TESTS | 26 | 171 | 0 | ||
164535003 | rajneesh.osho | A | July 16, 2022, 5:58 p.m. | OK | Java 11 | TESTS | 26 | 171 | 0 | ||
164532308 | g_square | A | July 16, 2022, 5:35 p.m. | OK | Java 11 | TESTS | 26 | 171 | 0 | ||
164535245 | Karakurik | A | July 16, 2022, 6 p.m. | OK | Java 11 | TESTS | 26 | 186 | 0 | ||
164533572 | gurkaran_s | A | July 16, 2022, 5:46 p.m. | OK | Java 11 | TESTS | 26 | 187 | 0 | ||
164532524 | deepakjoshi6102 | A | July 16, 2022, 5:37 p.m. | OK | Java 11 | TESTS | 26 | 187 | 0 | ||
164549323 | tonyn10 | A | July 16, 2022, 9:22 p.m. | OK | Java 17 | TESTS | 26 | 187 | 409600 | ||
164557128 | armawhi | A | July 17, 2022, 12:58 a.m. | OK | Java 17 | TESTS | 26 | 202 | 102400 | ||
164556791 | 17821147 | A | July 17, 2022, 12:50 a.m. | OK | Java 17 | TESTS | 26 | 202 | 409600 | ||
164537944 | jlalba | A | July 16, 2022, 6:28 p.m. | OK | Java 17 | TESTS | 26 | 217 | 512000 | ||
164518089 | K9ASMODEUS | A | July 16, 2022, 4:14 p.m. | OK | Java 17 | TESTS | 26 | 233 | 1024000 | ||
164522979 | anshul_singh15 | A | July 16, 2022, 4:26 p.m. | OK | Java 17 | TESTS | 26 | 249 | 716800 | ||
164543640 | ItsZaki | A | July 16, 2022, 7:41 p.m. | OK | Java 17 | TESTS | 26 | 280 | 716800 | ||
164546825 | Loomak | A | July 16, 2022, 8:32 p.m. | OK | Java 8 | TESTS | 26 | 93 | 0 | ||
164543004 | malekelkassas | A | July 16, 2022, 7:32 p.m. | OK | Java 8 | TESTS | 26 | 93 | 0 | ||
164539676 | AhmedEl-Gohary | A | July 16, 2022, 6:48 p.m. | OK | Java 8 | TESTS | 26 | 93 | 0 | ||
164539407 | ahmedtawfik | A | July 16, 2022, 6:45 p.m. | OK | Java 8 | TESTS | 26 | 93 | 0 | ||
164532592 | Mohamed_A7med | A | July 16, 2022, 5:37 p.m. | OK | Java 8 | TESTS | 26 | 93 | 0 | ||
164536350 | gagan_6730 | A | July 16, 2022, 6:11 p.m. | OK | Java 8 | TESTS | 26 | 109 | 0 | ||
164551482 | OmarKenawi | A | July 16, 2022, 10:14 p.m. | OK | Java 8 | TESTS | 26 | 109 | 0 | ||
164538680 | less_ordinary | A | July 16, 2022, 6:36 p.m. | OK | Java 8 | TESTS | 26 | 109 | 0 | ||
164533835 | Sussykin | A | July 16, 2022, 5:48 p.m. | OK | Java 8 | TESTS | 26 | 109 | 0 | ||
164530788 | ggghg | A | July 16, 2022, 5:23 p.m. | OK | Java 8 | TESTS | 26 | 109 | 0 | ||
164568106 | junehop | A | July 17, 2022, 3:48 a.m. | OK | JavaScript | TESTS | 26 | 46 | 102400 | ||
164535375 | mariaskury | A | July 16, 2022, 6:01 p.m. | OK | JavaScript | TESTS | 26 | 46 | 204800 | ||
164567328 | qihnus | A | July 17, 2022, 3:35 a.m. | OK | Kotlin 1.6 | TESTS | 26 | 218 | 0 | ||
164525053 | top73only | A | July 16, 2022, 4:31 p.m. | OK | Kotlin 1.6 | TESTS | 26 | 264 | 0 | ||
164567168 | LostTemple | A | July 17, 2022, 3:33 a.m. | OK | Mono C# | TESTS | 26 | 46 | 1126400 | ||
164531300 | coderdivyansh | A | July 16, 2022, 5:27 p.m. | OK | MS C++ 2017 | TESTS | 26 | 15 | 0 | ||
164519534 | Nosov_Vovanus2022 | A | July 16, 2022, 4:17 p.m. | OK | MS C++ 2017 | TESTS | 26 | 15 | 0 | ||
164568967 | 1_shivam | A | July 17, 2022, 4:02 a.m. | OK | MS C++ 2017 | TESTS | 26 | 15 | 0 | ||
164537739 | whiteReboot | A | July 16, 2022, 6:25 p.m. | OK | MS C++ 2017 | TESTS | 26 | 15 | 0 | ||
164559374 | ShengCongYu | A | July 17, 2022, 1:37 a.m. | OK | MS C++ 2017 | TESTS | 26 | 31 | 0 | ||
164556400 | lyqhh88 | A | July 17, 2022, 12:41 a.m. | OK | MS C++ 2017 | TESTS | 26 | 31 | 0 | ||
164555447 | Ir0nic_Joker | A | July 17, 2022, 12:14 a.m. | OK | MS C++ 2017 | TESTS | 26 | 31 | 0 | ||
164572559 | fan_of_tourist | A | July 17, 2022, 5:02 a.m. | OK | PyPy 2 | TESTS | 26 | 124 | 614400 | ||
164529016 | 1_2_3_4_5_9 | A | July 16, 2022, 5:14 p.m. | OK | PyPy 2 | TESTS | 26 | 140 | 5939200 | ||
164538288 | abrma | A | July 16, 2022, 6:31 p.m. | OK | PyPy 3 | TESTS | 26 | 93 | 1740800 | ||
164529252 | zxcuser2 | A | July 16, 2022, 5:15 p.m. | OK | PyPy 3 | TESTS | 26 | 93 | 1740800 | ||
164573172 | EmilyBloom | A | July 17, 2022, 5:12 a.m. | OK | PyPy 3 | TESTS | 26 | 93 | 1945600 | ||
164537382 | hr2565 | A | July 16, 2022, 6:21 p.m. | OK | PyPy 3 | TESTS | 26 | 93 | 2048000 | ||
164518793 | Yash_Maniya | A | July 16, 2022, 4:15 p.m. | OK | PyPy 3 | TESTS | 26 | 109 | 1945600 | ||
164550898 | Sagittarius_Serpentarius | A | July 16, 2022, 9:59 p.m. | OK | PyPy 3-64 | TESTS | 26 | 46 | 1843200 | ||
164561623 | Youarenotgood | A | July 17, 2022, 2:12 a.m. | OK | PyPy 3-64 | TESTS | 26 | 62 | 1536000 | ||
164573639 | Yansou | A | July 17, 2022, 5:19 a.m. | OK | PyPy 3-64 | TESTS | 26 | 62 | 1638400 | ||
164531576 | garbageCode.LOL | A | July 16, 2022, 5:29 p.m. | OK | PyPy 3-64 | TESTS | 26 | 62 | 1638400 | ||
164531028 | sushantyerawar_2002 | A | July 16, 2022, 5:25 p.m. | OK | PyPy 3-64 | TESTS | 26 | 62 | 1638400 | ||
164529473 | Tconan | A | July 16, 2022, 5:16 p.m. | OK | PyPy 3-64 | TESTS | 26 | 62 | 1638400 | ||
164529282 | only_noob | A | July 16, 2022, 5:15 p.m. | OK | PyPy 3-64 | TESTS | 26 | 62 | 1638400 | ||
164529035 | xenonide | A | July 16, 2022, 5:14 p.m. | OK | PyPy 3-64 | TESTS | 26 | 62 | 1638400 | ||
164574819 | Perl32 | A | July 17, 2022, 5:35 a.m. | OK | PyPy 3-64 | TESTS | 26 | 62 | 1740800 | ||
164573316 | bridgekiller | A | July 17, 2022, 5:14 a.m. | OK | PyPy 3-64 | TESTS | 26 | 62 | 1740800 | ||
164576611 | Devansh11 | A | July 17, 2022, 6 a.m. | OK | Python 3 | TESTS | 26 | 46 | 0 | ||
164574567 | harryPotterI | A | July 17, 2022, 5:32 a.m. | OK | Python 3 | TESTS | 26 | 46 | 0 | ||
164569271 | CoolMaoku | A | July 17, 2022, 4:06 a.m. | OK | Python 3 | TESTS | 26 | 46 | 0 | ||
164561648 | nadendla_sahithi | A | July 17, 2022, 2:13 a.m. | OK | Python 3 | TESTS | 26 | 46 | 0 | ||
164560258 | Lhohelhohehmm | A | July 17, 2022, 1:52 a.m. | OK | Python 3 | TESTS | 26 | 46 | 0 | ||
164555387 | unnotigkeit | A | July 17, 2022, 12:13 a.m. | OK | Python 3 | TESTS | 26 | 46 | 0 | ||
164550049 | Mahmoud.Elsantawy | A | July 16, 2022, 9:38 p.m. | OK | Python 3 | TESTS | 26 | 46 | 0 | ||
164547249 | Shubham_2003 | A | July 16, 2022, 8:39 p.m. | OK | Python 3 | TESTS | 26 | 46 | 0 | ||
164545753 | imnasim3.1415 | A | July 16, 2022, 8:14 p.m. | OK | Python 3 | TESTS | 26 | 46 | 0 | ||
164542971 | Rohitraj60134 | A | July 16, 2022, 7:32 p.m. | OK | Python 3 | TESTS | 26 | 46 | 0 | ||
164559142 | Avanta | A | July 17, 2022, 1:33 a.m. | OK | Rust 2021 | TESTS | 26 | 15 | 409600 | ||
164558096 | Avanta | A | July 17, 2022, 1:17 a.m. | OK | Rust 2021 | TESTS | 26 | 15 | 409600 |
Back to search problems