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 |
---|---|---|---|---|---|---|
1890 | Codeforces Round 906 (Div. 2) | FINISHED | False | 9000 | 38676263 | Oct. 28, 2023, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 29642 ) | A | Doremy's Paint 3 | PROGRAMMING | constructive algorithms |
B'An array b_1, b_2, ldots, b_n of positive integers is good if all the sums of two adjacent elements are equal to the same value. More formally, the array is good if there exists a k such that b_1 + b_2 = b_2 + b_3 = ldots = b_{n-1} + b_n = k . Doremy has an array a of length n . Now Doremy can permute its elements (change their order) however she wants. Determine if she can make the array good. 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 of each test case contains a single integer n ( 2 <= n <= 100 ) -- the length of the array a . The second line of each test case contains n integers a_1,a_2, ldots,a_n ( 1 <= a_i <= 10^5 ). There are no constraints on the sum of n over all test cases. For each test case, print "Yes" (without quotes), if it is possible to make the array good, and "No" (without quotes) otherwise. You can output the answer in any case (upper or lower). For example, the strings "yEs", "yes", "Yes", and "YES" will be recognized as positive responses. In the first test case, [8,9] and [9,8] are good. In the second test case, [1,2,1] is good because a_1+a_2=a_2+a_3=3 . In the third test case, it can be shown that no permutation is good. '... |
Codeforces Round 906 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
230268954 | kokora | A | Oct. 28, 2023, 5:52 p.m. | OK | C# 10 | TESTS | 9 | 46 | 1433600 | ||
230311669 | sh_arman | A | Oct. 29, 2023, 5:07 a.m. | OK | C# 10 | TESTS | 9 | 61 | 1638400 | ||
230293874 | bluemegane | A | Oct. 28, 2023, 10:25 p.m. | OK | C# 8 | TESTS | 9 | 170 | 1536000 | ||
230298030 | LDF_mou | A | Oct. 29, 2023, 12:52 a.m. | OK | Clang++17 Diagnostics | TESTS | 9 | 62 | 0 | ||
230311329 | hualuoQAQ | A | Oct. 29, 2023, 5:02 a.m. | OK | Clang++17 Diagnostics | TESTS | 9 | 78 | 16588800 | ||
230285883 | nikita98 | A | Oct. 28, 2023, 8:18 p.m. | OK | Clang++17 Diagnostics | TESTS | 9 | 108 | 0 | ||
230306570 | jinzhenjia | A | Oct. 29, 2023, 3:48 a.m. | OK | Clang++20 Diagnostics | TESTS | 9 | 61 | 409600 | ||
230315744 | AlmisbaH | A | Oct. 29, 2023, 5:53 a.m. | OK | Clang++20 Diagnostics | TESTS | 9 | 77 | 0 | ||
230299486 | xiaohap | A | Oct. 29, 2023, 1:35 a.m. | OK | Clang++20 Diagnostics | TESTS | 9 | 93 | 512000 | ||
230299320 | Huuush | A | Oct. 29, 2023, 1:30 a.m. | OK | Clang++20 Diagnostics | TESTS | 9 | 93 | 1024000 | ||
230266995 | reha_na | A | Oct. 28, 2023, 5:41 p.m. | OK | GNU C11 | TESTS | 9 | 15 | 0 | ||
230271431 | mandeep5 | A | Oct. 28, 2023, 6:08 p.m. | OK | GNU C11 | TESTS | 9 | 15 | 0 | ||
230277255 | sathvikreddy853 | A | Oct. 28, 2023, 6:51 p.m. | OK | GNU C11 | TESTS | 9 | 15 | 0 | ||
230279584 | sanjeevsub2607 | A | Oct. 28, 2023, 7:11 p.m. | OK | GNU C11 | TESTS | 9 | 15 | 0 | ||
230297417 | tinuriel | A | Oct. 29, 2023, 12:29 a.m. | OK | GNU C11 | TESTS | 9 | 15 | 0 | ||
230299273 | WSSEsss | A | Oct. 29, 2023, 1:29 a.m. | OK | GNU C11 | TESTS | 9 | 15 | 0 | ||
230301720 | guangyangbest123 | A | Oct. 29, 2023, 2:24 a.m. | OK | GNU C11 | TESTS | 9 | 15 | 0 | ||
230257392 | gojosatoru123 | A | Oct. 28, 2023, 4:51 p.m. | OK | GNU C11 | TESTS | 9 | 15 | 0 | ||
230257670 | _ARAVIND1 | A | Oct. 28, 2023, 4:51 p.m. | OK | GNU C11 | TESTS | 9 | 15 | 0 | ||
230259841 | Mayosama | A | Oct. 28, 2023, 4:57 p.m. | OK | GNU C11 | TESTS | 9 | 15 | 0 | ||
230290259 | kaur_harnoor | A | Oct. 28, 2023, 9:17 p.m. | OK | GNU C++14 | TESTS | 9 | 15 | 0 | ||
230299126 | -LAP- | A | Oct. 29, 2023, 1:25 a.m. | OK | GNU C++14 | TESTS | 9 | 15 | 0 | ||
230299545 | xiaozha | A | Oct. 29, 2023, 1:37 a.m. | OK | GNU C++14 | TESTS | 9 | 15 | 0 | ||
230300629 | 2015870900 | A | Oct. 29, 2023, 2:03 a.m. | OK | GNU C++14 | TESTS | 9 | 15 | 0 | ||
230301015 | yushizhang | A | Oct. 29, 2023, 2:10 a.m. | OK | GNU C++14 | TESTS | 9 | 15 | 0 | ||
230310653 | YSY20091 | A | Oct. 29, 2023, 4:52 a.m. | OK | GNU C++14 | TESTS | 9 | 15 | 0 | ||
230312480 | saraswata_18 | A | Oct. 29, 2023, 5:16 a.m. | OK | GNU C++14 | TESTS | 9 | 15 | 0 | ||
230313068 | priyanshuagarwal23307 | A | Oct. 29, 2023, 5:24 a.m. | OK | GNU C++14 | TESTS | 9 | 15 | 0 | ||
230298028 | shentianxing | A | Oct. 29, 2023, 12:52 a.m. | OK | GNU C++14 | TESTS | 9 | 15 | 0 | ||
230297521 | Maysoul | A | Oct. 29, 2023, 12:33 a.m. | OK | GNU C++14 | TESTS | 9 | 15 | 0 | ||
230281040 | sahab_s | A | Oct. 28, 2023, 7:26 p.m. | OK | GNU C++17 | TESTS | 9 | 0 | 0 | ||
230271335 | mandeep5 | A | Oct. 28, 2023, 6:07 p.m. | OK | GNU C++17 | TESTS | 9 | 0 | 0 | ||
230307818 | Ayushj14987 | A | Oct. 29, 2023, 4:08 a.m. | OK | GNU C++17 | TESTS | 9 | 0 | 102400 | ||
230298290 | jay_wce2003 | A | Oct. 29, 2023, 1 a.m. | OK | GNU C++17 | TESTS | 9 | 0 | 102400 | ||
230298048 | flandre.scarlet | A | Oct. 29, 2023, 12:52 a.m. | OK | GNU C++17 | TESTS | 9 | 0 | 102400 | ||
230297999 | Climber420 | A | Oct. 29, 2023, 12:50 a.m. | OK | GNU C++17 | TESTS | 9 | 0 | 102400 | ||
230273243 | alphayashsharma | A | Oct. 28, 2023, 6:19 p.m. | OK | GNU C++17 | TESTS | 9 | 0 | 102400 | ||
230268092 | Berlin11 | A | Oct. 28, 2023, 5:46 p.m. | OK | GNU C++17 | TESTS | 9 | 0 | 102400 | ||
230283597 | Zoomby | A | Oct. 28, 2023, 7:52 p.m. | OK | GNU C++17 | TESTS | 9 | 0 | 204800 | ||
230314441 | RoBiul01 | A | Oct. 29, 2023, 5:39 a.m. | OK | GNU C++17 | TESTS | 9 | 15 | 0 | ||
230282405 | prakharverma499 | A | Oct. 28, 2023, 7:39 p.m. | OK | GNU C++17 (64) | TESTS | 9 | 0 | 0 | ||
230292415 | OTTFF | A | Oct. 28, 2023, 9:53 p.m. | OK | GNU C++17 (64) | TESTS | 9 | 0 | 0 | ||
230288320 | rock_lock | A | Oct. 28, 2023, 8:49 p.m. | OK | GNU C++17 (64) | TESTS | 9 | 0 | 0 | ||
230273067 | rn201 | A | Oct. 28, 2023, 6:18 p.m. | OK | GNU C++17 (64) | TESTS | 9 | 0 | 0 | ||
230269759 | nerrdd_nahh | A | Oct. 28, 2023, 5:57 p.m. | OK | GNU C++17 (64) | TESTS | 9 | 0 | 0 | ||
230268718 | Alfa | A | Oct. 28, 2023, 5:50 p.m. | OK | GNU C++17 (64) | TESTS | 9 | 0 | 0 | ||
230268281 | MarcosK | A | Oct. 28, 2023, 5:47 p.m. | OK | GNU C++17 (64) | TESTS | 9 | 0 | 0 | ||
230266790 | alchemist_17 | A | Oct. 28, 2023, 5:39 p.m. | OK | GNU C++17 (64) | TESTS | 9 | 0 | 204800 | ||
230285122 | Ruturaj007 | A | Oct. 28, 2023, 8:09 p.m. | OK | GNU C++17 (64) | TESTS | 9 | 0 | 1638400 | ||
230316389 | tanmoysarkar46552 | A | Oct. 29, 2023, 6 a.m. | OK | GNU C++17 (64) | TESTS | 9 | 15 | 0 | ||
230315020 | paoxiaomo | A | Oct. 29, 2023, 5:46 a.m. | OK | GNU C++20 (64) | TESTS | 9 | 0 | 0 | ||
230315023 | Unknown_man_on_earth | A | Oct. 29, 2023, 5:46 a.m. | OK | GNU C++20 (64) | TESTS | 9 | 0 | 0 | ||
230315401 | priyanshgupta3002 | A | Oct. 29, 2023, 5:50 a.m. | OK | GNU C++20 (64) | TESTS | 9 | 0 | 0 | ||
230315464 | modernbeast02 | A | Oct. 29, 2023, 5:51 a.m. | OK | GNU C++20 (64) | TESTS | 9 | 0 | 0 | ||
230315948 | schrodingersmile | A | Oct. 29, 2023, 5:56 a.m. | OK | GNU C++20 (64) | TESTS | 9 | 0 | 0 | ||
230316264 | NotRequired | A | Oct. 29, 2023, 5:59 a.m. | OK | GNU C++20 (64) | TESTS | 9 | 0 | 0 | ||
230316338 | dil_da_ni_mada | A | Oct. 29, 2023, 6 a.m. | OK | GNU C++20 (64) | TESTS | 9 | 0 | 0 | ||
230314809 | shaon508 | A | Oct. 29, 2023, 5:43 a.m. | OK | GNU C++20 (64) | TESTS | 9 | 0 | 0 | ||
230314286 | sarvesh2004 | A | Oct. 29, 2023, 5:37 a.m. | OK | GNU C++20 (64) | TESTS | 9 | 0 | 0 | ||
230314141 | Fan. | A | Oct. 29, 2023, 5:36 a.m. | OK | GNU C++20 (64) | TESTS | 9 | 0 | 0 | ||
230255456 | lorenzotinfena | A | Oct. 28, 2023, 4:46 p.m. | OK | Go | TESTS | 9 | 31 | 307200 | ||
230283629 | Mhmmd.itani | A | Oct. 28, 2023, 7:52 p.m. | OK | Java 11 | TESTS | 9 | 155 | 0 | ||
230314268 | AtinRoy | A | Oct. 29, 2023, 5:37 a.m. | OK | Java 11 | TESTS | 9 | 171 | 0 | ||
230274796 | BurnerAce | A | Oct. 28, 2023, 6:31 p.m. | OK | Java 11 | TESTS | 9 | 171 | 0 | ||
230273777 | TCchen | A | Oct. 28, 2023, 6:23 p.m. | OK | Java 11 | TESTS | 9 | 186 | 0 | ||
230305922 | powervic08 | A | Oct. 29, 2023, 3:38 a.m. | OK | Java 11 | TESTS | 9 | 186 | 0 | ||
230304986 | Saurabh124 | A | Oct. 29, 2023, 3:24 a.m. | OK | Java 11 | TESTS | 9 | 187 | 0 | ||
230279182 | zopchur | A | Oct. 28, 2023, 7:08 p.m. | OK | Java 11 | TESTS | 9 | 202 | 0 | ||
230276771 | kevbamboo | A | Oct. 28, 2023, 6:47 p.m. | OK | Java 11 | TESTS | 9 | 202 | 0 | ||
230265617 | MAUser | A | Oct. 28, 2023, 5:34 p.m. | OK | Java 11 | TESTS | 9 | 202 | 0 | ||
230293564 | ALostSoul | A | Oct. 28, 2023, 10:18 p.m. | OK | Java 11 | TESTS | 9 | 217 | 0 | ||
230306305 | TopCloser | A | Oct. 29, 2023, 3:44 a.m. | OK | Java 17 | TESTS | 9 | 171 | 614400 | ||
230275464 | anand_mishra_ | A | Oct. 28, 2023, 6:36 p.m. | OK | Java 17 | TESTS | 9 | 186 | 307200 | ||
230272396 | ARS-001 | A | Oct. 28, 2023, 6:14 p.m. | OK | Java 17 | TESTS | 9 | 202 | 102400 | ||
230268766 | Nagendravarma | A | Oct. 28, 2023, 5:50 p.m. | OK | Java 17 | TESTS | 9 | 202 | 204800 | ||
230286222 | ThisIsVS | A | Oct. 28, 2023, 8:22 p.m. | OK | Java 17 | TESTS | 9 | 202 | 512000 | ||
230254627 | Aniyeshu31 | A | Oct. 28, 2023, 4:43 p.m. | OK | Java 17 | TESTS | 9 | 218 | 307200 | ||
230306116 | dhruv.p6 | A | Oct. 29, 2023, 3:41 a.m. | OK | Java 17 | TESTS | 9 | 218 | 512000 | ||
230314363 | krushi1902 | A | Oct. 29, 2023, 5:38 a.m. | OK | Java 17 | TESTS | 9 | 233 | 614400 | ||
230308340 | rohit_nehara | A | Oct. 29, 2023, 4:17 a.m. | OK | Java 17 | TESTS | 9 | 233 | 819200 | ||
230300514 | shivkg79 | A | Oct. 29, 2023, 2 a.m. | OK | Java 17 | TESTS | 9 | 249 | 819200 | ||
230282292 | swatishivam23 | A | Oct. 28, 2023, 7:38 p.m. | OK | Java 21 | TESTS | 9 | 187 | 0 | ||
230261471 | whitespace07 | A | Oct. 28, 2023, 5:01 p.m. | OK | Java 21 | TESTS | 9 | 264 | 0 | ||
230302385 | MAGIN14 | A | Oct. 29, 2023, 2:38 a.m. | OK | Java 21 | TESTS | 9 | 295 | 204800 | ||
230295990 | noobCoder_21 | A | Oct. 28, 2023, 11:36 p.m. | OK | Java 21 | TESTS | 9 | 296 | 614400 | ||
230309707 | NerfThis | A | Oct. 29, 2023, 4:38 a.m. | OK | Java 8 | TESTS | 9 | 93 | 0 | ||
230295951 | Alex_Gal | A | Oct. 28, 2023, 11:35 p.m. | OK | Java 8 | TESTS | 9 | 93 | 0 | ||
230265986 | Udayf | A | Oct. 28, 2023, 5:36 p.m. | OK | Java 8 | TESTS | 9 | 93 | 0 | ||
230279537 | __SSB__ | A | Oct. 28, 2023, 7:11 p.m. | OK | Java 8 | TESTS | 9 | 108 | 0 | ||
230275766 | rajr86642 | A | Oct. 28, 2023, 6:39 p.m. | OK | Java 8 | TESTS | 9 | 108 | 0 | ||
230254363 | dvkcool | A | Oct. 28, 2023, 4:43 p.m. | OK | Java 8 | TESTS | 9 | 108 | 0 | ||
230316466 | lavender_me | A | Oct. 29, 2023, 6:01 a.m. | OK | Java 8 | TESTS | 9 | 109 | 0 | ||
230275279 | Sumitsingh7 | A | Oct. 28, 2023, 6:35 p.m. | OK | Java 8 | TESTS | 9 | 109 | 5734400 | ||
230314865 | Steffi | A | Oct. 29, 2023, 5:44 a.m. | OK | Java 8 | TESTS | 9 | 124 | 0 | ||
230312970 | b1t_exe | A | Oct. 29, 2023, 5:22 a.m. | OK | Java 8 | TESTS | 9 | 124 | 0 | ||
230289966 | D1mas | A | Oct. 28, 2023, 9:12 p.m. | OK | MS C++ 2017 | TESTS | 9 | 31 | 0 | ||
230277874 | Akhil_09 | A | Oct. 28, 2023, 6:57 p.m. | OK | MS C++ 2017 | TESTS | 9 | 31 | 0 | ||
230275982 | HernandezFHH2004 | A | Oct. 28, 2023, 6:40 p.m. | OK | MS C++ 2017 | TESTS | 9 | 31 | 0 | ||
230256842 | lkll | A | Oct. 28, 2023, 4:49 p.m. | OK | MS C++ 2017 | TESTS | 9 | 31 | 0 | ||
230311236 | letamquang220805 | A | Oct. 29, 2023, 5:01 a.m. | OK | PyPy 3 | TESTS | 9 | 77 | 1433600 | ||
230278683 | VidGa | A | Oct. 28, 2023, 7:04 p.m. | OK | PyPy 3 | TESTS | 9 | 77 | 1433600 | ||
230282388 | vinit_iitrpr | A | Oct. 28, 2023, 7:39 p.m. | OK | PyPy 3 | TESTS | 9 | 77 | 1843200 | ||
230276747 | kashish_garg | A | Oct. 28, 2023, 6:47 p.m. | OK | PyPy 3 | TESTS | 9 | 93 | 1536000 | ||
230256070 | kashish_garg | A | Oct. 28, 2023, 4:47 p.m. | OK | PyPy 3 | TESTS | 9 | 93 | 1536000 | ||
230251849 | rushikesh_kotkar | A | Oct. 28, 2023, 4:36 p.m. | OK | PyPy 3 | TESTS | 9 | 93 | 1536000 | ||
230269336 | mcb1303 | A | Oct. 28, 2023, 5:54 p.m. | OK | PyPy 3 | TESTS | 9 | 108 | 1536000 | ||
230262641 | krishnaaaaa_d | A | Oct. 28, 2023, 5:04 p.m. | OK | PyPy 3 | TESTS | 9 | 108 | 1843200 | ||
230253106 | naklicoder | A | Oct. 28, 2023, 4:39 p.m. | OK | PyPy 3 | TESTS | 9 | 109 | 1740800 | ||
230279794 | KINFISH | A | Oct. 28, 2023, 7:14 p.m. | OK | PyPy 3 | TESTS | 9 | 109 | 2252800 | ||
230312158 | yuki_keshiki | A | Oct. 29, 2023, 5:12 a.m. | OK | PyPy 3-64 | TESTS | 9 | 61 | 1638400 | ||
230299791 | aviral311 | A | Oct. 29, 2023, 1:43 a.m. | OK | PyPy 3-64 | TESTS | 9 | 62 | 1536000 | ||
230278234 | hrithikkmr527 | A | Oct. 28, 2023, 7 p.m. | OK | PyPy 3-64 | TESTS | 9 | 62 | 1536000 | ||
230272973 | jaidercasta30 | A | Oct. 28, 2023, 6:17 p.m. | OK | PyPy 3-64 | TESTS | 9 | 62 | 1536000 | ||
230266502 | CinaDor | A | Oct. 28, 2023, 5:38 p.m. | OK | PyPy 3-64 | TESTS | 9 | 62 | 1536000 | ||
230252446 | 3bood_123 | A | Oct. 28, 2023, 4:37 p.m. | OK | PyPy 3-64 | TESTS | 9 | 62 | 1536000 | ||
230270357 | Savitskiy_Sasha | A | Oct. 28, 2023, 6:01 p.m. | OK | PyPy 3-64 | TESTS | 9 | 62 | 1638400 | ||
230313471 | nikd_10 | A | Oct. 29, 2023, 5:29 a.m. | OK | PyPy 3-64 | TESTS | 9 | 62 | 1740800 | ||
230294265 | Leo25Darklight | A | Oct. 28, 2023, 10:34 p.m. | OK | PyPy 3-64 | TESTS | 9 | 62 | 1740800 | ||
230279385 | askjahskfha | A | Oct. 28, 2023, 7:10 p.m. | OK | PyPy 3-64 | TESTS | 9 | 62 | 1740800 | ||
230311180 | 4n0nym0us | A | Oct. 29, 2023, 5 a.m. | OK | Python 3 | TESTS | 9 | 31 | 102400 | ||
230299938 | gzthomashuang | A | Oct. 29, 2023, 1:46 a.m. | OK | Python 3 | TESTS | 9 | 31 | 102400 | ||
230270326 | goextreme | A | Oct. 28, 2023, 6 p.m. | OK | Python 3 | TESTS | 9 | 31 | 102400 | ||
230274074 | MdNazmulHossain | A | Oct. 28, 2023, 6:25 p.m. | OK | Python 3 | TESTS | 9 | 31 | 409600 | ||
230313034 | jollyRoger99 | A | Oct. 29, 2023, 5:23 a.m. | OK | Python 3 | TESTS | 9 | 46 | 0 | ||
230307168 | Uruguay | A | Oct. 29, 2023, 3:57 a.m. | OK | Python 3 | TESTS | 9 | 46 | 0 | ||
230290381 | momenelmesady4803 | A | Oct. 28, 2023, 9:19 p.m. | OK | Python 3 | TESTS | 9 | 46 | 0 | ||
230288449 | talavodoi | A | Oct. 28, 2023, 8:51 p.m. | OK | Python 3 | TESTS | 9 | 46 | 0 | ||
230280945 | is_zero_ach | A | Oct. 28, 2023, 7:25 p.m. | OK | Python 3 | TESTS | 9 | 46 | 0 | ||
230274543 | The_blue_spirit | A | Oct. 28, 2023, 6:29 p.m. | OK | Python 3 | TESTS | 9 | 46 | 0 | ||
230289276 | 0x81 | A | Oct. 28, 2023, 9:02 p.m. | OK | Ruby 3 | TESTS | 9 | 436 | 1331200 |
Back to search problems