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 |
---|---|---|---|---|---|---|
1856 | Codeforces Round 890 (Div. 2) supported by Constructor Institute | FINISHED | False | 7200 | 40577099 | Aug. 5, 2023, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 24541 ) | B | Good Arrays | PROGRAMMING | constructive algorithms implementation math |
B'You are given an array of positive integers a of length n . Let 's call an array of positive integers b of length n good if: Does a good array exist? Each test contains multiple test cases. The first line of input contains a single integer t ( 1 <= t <= 10^4 ) -- the number of test cases. The description of the test cases follows. The first line of each test case contains a single integer n ( 1 <= n <= 10^5 ) -- the length of the array a . The second line of each test case contains n integers a_1, a_2, ... , a_n ( 1 <= a_i <= 10 ^ 9 ) -- the elements of the array a . It is guaranteed that the sum of n over all test cases does not exceed 10^5 . For each test case, output "YES" (without quotes) if there exists a good array, 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, a possible good array is [3, 3, 3] . Some examples of not good arrays are: In the second test case, [1, 1] is the only array of positive integers of length 2 that has the sum of it 's elements equal to 2 . Since [1, 1] is not a good array, the answer is "NO". '... |
Codeforces Round #890 (Div. 2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
217404139 | 1ambattukam1 | B | Aug. 6, 2023, 4:41 a.m. | OK | Clang++17 Diagnostics | TESTS | 12 | 498 | 0 | ||
217394173 | ministove3yo | B | Aug. 6, 2023, 1:51 a.m. | OK | Clang++20 Diagnostics | TESTS | 12 | 483 | 0 | ||
217356457 | MaulikAdhyaru | B | Aug. 5, 2023, 5:25 p.m. | OK | Clang++20 Diagnostics | TESTS | 12 | 483 | 819200 | ||
217400088 | Aniket_1907 | B | Aug. 6, 2023, 3:35 a.m. | OK | Clang++20 Diagnostics | TESTS | 12 | 483 | 819200 | ||
217389581 | astrodigger | B | Aug. 6, 2023, 12:01 a.m. | OK | Clang++20 Diagnostics | TESTS | 12 | 483 | 819200 | ||
217400715 | 495684945 | B | Aug. 6, 2023, 3:45 a.m. | OK | Clang++20 Diagnostics | TESTS | 12 | 499 | 0 | ||
217358096 | iffatul_anon | B | Aug. 5, 2023, 5:32 p.m. | OK | GNU C11 | TESTS | 12 | 62 | 0 | ||
217360601 | jmawa1163 | B | Aug. 5, 2023, 5:48 p.m. | OK | GNU C11 | TESTS | 12 | 78 | 819200 | ||
217397601 | shaye_ | B | Aug. 6, 2023, 2:53 a.m. | OK | GNU C++14 | TESTS | 12 | 15 | 512000 | ||
217401012 | 3Nic33K | B | Aug. 6, 2023, 3:50 a.m. | OK | GNU C++14 | TESTS | 12 | 30 | 819200 | ||
217398285 | chenyanxi | B | Aug. 6, 2023, 3:04 a.m. | OK | GNU C++14 | TESTS | 12 | 31 | 0 | ||
217396847 | karlamun | B | Aug. 6, 2023, 2:39 a.m. | OK | GNU C++14 | TESTS | 12 | 31 | 0 | ||
217395961 | xzwys | B | Aug. 6, 2023, 2:24 a.m. | OK | GNU C++14 | TESTS | 12 | 31 | 0 | ||
217383735 | Betanine | B | Aug. 5, 2023, 9:51 p.m. | OK | GNU C++14 | TESTS | 12 | 31 | 0 | ||
217382184 | AshokMalhotra23 | B | Aug. 5, 2023, 9:22 p.m. | OK | GNU C++14 | TESTS | 12 | 31 | 0 | ||
217377892 | s_u_nt | B | Aug. 5, 2023, 8:20 p.m. | OK | GNU C++14 | TESTS | 12 | 31 | 0 | ||
217405229 | Howardlhhhr | B | Aug. 6, 2023, 4:58 a.m. | OK | GNU C++14 | TESTS | 12 | 31 | 0 | ||
217403139 | NinJaa_Nyz07 | B | Aug. 6, 2023, 4:25 a.m. | OK | GNU C++14 | TESTS | 12 | 31 | 0 | ||
217405814 | raj715426aditya | B | Aug. 6, 2023, 5:06 a.m. | OK | GNU C++17 | TESTS | 12 | 31 | 0 | ||
217399335 | dasr63328 | B | Aug. 6, 2023, 3:23 a.m. | OK | GNU C++17 | TESTS | 12 | 31 | 0 | ||
217395663 | prashanth_32 | B | Aug. 6, 2023, 2:19 a.m. | OK | GNU C++17 | TESTS | 12 | 31 | 0 | ||
217395616 | itachi__1406 | B | Aug. 6, 2023, 2:18 a.m. | OK | GNU C++17 | TESTS | 12 | 31 | 0 | ||
217395099 | AkaiLemon | B | Aug. 6, 2023, 2:09 a.m. | OK | GNU C++17 | TESTS | 12 | 31 | 0 | ||
217393551 | Exp3885 | B | Aug. 6, 2023, 1:38 a.m. | OK | GNU C++17 | TESTS | 12 | 31 | 0 | ||
217390948 | dev-shajid | B | Aug. 6, 2023, 12:40 a.m. | OK | GNU C++17 | TESTS | 12 | 31 | 0 | ||
217387460 | ccsu_zx | B | Aug. 5, 2023, 11:07 p.m. | OK | GNU C++17 | TESTS | 12 | 31 | 0 | ||
217399613 | Tasmir_ | B | Aug. 6, 2023, 3:28 a.m. | OK | GNU C++17 | TESTS | 12 | 31 | 0 | ||
217405433 | antonio_montana_ro | B | Aug. 6, 2023, 5 a.m. | OK | GNU C++17 | TESTS | 12 | 31 | 0 | ||
217376349 | Ertugrul28 | B | Aug. 5, 2023, 8:03 p.m. | OK | GNU C++17 (64) | TESTS | 12 | 15 | 0 | ||
217387673 | happymore | B | Aug. 5, 2023, 11:12 p.m. | OK | GNU C++17 (64) | TESTS | 12 | 15 | 409600 | ||
217397028 | sandipondas25 | B | Aug. 6, 2023, 2:42 a.m. | OK | GNU C++17 (64) | TESTS | 12 | 15 | 409600 | ||
217384620 | Anu007 | B | Aug. 5, 2023, 10:04 p.m. | OK | GNU C++17 (64) | TESTS | 12 | 15 | 409600 | ||
217361472 | lunchbox | B | Aug. 5, 2023, 5:53 p.m. | OK | GNU C++17 (64) | TESTS | 12 | 15 | 409600 | ||
217366360 | Codula | B | Aug. 5, 2023, 6:30 p.m. | OK | GNU C++17 (64) | TESTS | 12 | 15 | 819200 | ||
217404540 | ashok_madamanchi | B | Aug. 6, 2023, 4:47 a.m. | OK | GNU C++17 (64) | TESTS | 12 | 15 | 819200 | ||
217390839 | omarrs | B | Aug. 6, 2023, 12:37 a.m. | OK | GNU C++17 (64) | TESTS | 12 | 30 | 0 | ||
217357644 | prasanna2425 | B | Aug. 5, 2023, 5:30 p.m. | OK | GNU C++17 (64) | TESTS | 12 | 30 | 0 | ||
217395037 | 1ightwhite | B | Aug. 6, 2023, 2:08 a.m. | OK | GNU C++17 (64) | TESTS | 12 | 30 | 409600 | ||
217404376 | Desh_Deepak_Kant | B | Aug. 6, 2023, 4:45 a.m. | OK | GNU C++20 (64) | TESTS | 12 | 15 | 0 | ||
217401788 | _wHiTe_DeViL_ | B | Aug. 6, 2023, 4:03 a.m. | OK | GNU C++20 (64) | TESTS | 12 | 15 | 0 | ||
217393532 | JKF_ZZ | B | Aug. 6, 2023, 1:38 a.m. | OK | GNU C++20 (64) | TESTS | 12 | 15 | 0 | ||
217390983 | Cristian_MCG | B | Aug. 6, 2023, 12:41 a.m. | OK | GNU C++20 (64) | TESTS | 12 | 15 | 0 | ||
217380902 | YourAnonFriend | B | Aug. 5, 2023, 9:01 p.m. | OK | GNU C++20 (64) | TESTS | 12 | 15 | 0 | ||
217387461 | Essa2006 | B | Aug. 5, 2023, 11:07 p.m. | OK | GNU C++20 (64) | TESTS | 12 | 15 | 0 | ||
217409881 | ghamohammad4 | B | Aug. 6, 2023, 5:57 a.m. | OK | GNU C++20 (64) | TESTS | 12 | 15 | 0 | ||
217408343 | frozencat | B | Aug. 6, 2023, 5:39 a.m. | OK | GNU C++20 (64) | TESTS | 12 | 15 | 0 | ||
217408023 | Kaaly | B | Aug. 6, 2023, 5:35 a.m. | OK | GNU C++20 (64) | TESTS | 12 | 15 | 0 | ||
217406770 | Sujon40 | B | Aug. 6, 2023, 5:19 a.m. | OK | GNU C++20 (64) | TESTS | 12 | 15 | 0 | ||
217361903 | vana0kor | B | Aug. 5, 2023, 5:56 p.m. | OK | Go | TESTS | 12 | 78 | 5427200 | ||
217410209 | katomasao | B | Aug. 6, 2023, 6:01 a.m. | OK | Haskell | TESTS | 12 | 108 | 23142400 | ||
217396222 | 1936557 | B | Aug. 6, 2023, 2:28 a.m. | OK | Haskell | TESTS | 12 | 436 | 52531200 | ||
217403819 | Utkarsh99 | B | Aug. 6, 2023, 4:36 a.m. | OK | Java 11 | TESTS | 12 | 187 | 0 | ||
217364922 | prabhjout | B | Aug. 5, 2023, 6:19 p.m. | OK | Java 11 | TESTS | 12 | 249 | 0 | ||
217359004 | S8UL_1963 | B | Aug. 5, 2023, 5:38 p.m. | OK | Java 11 | TESTS | 12 | 249 | 0 | ||
217394991 | lcx_defender | B | Aug. 6, 2023, 2:07 a.m. | OK | Java 11 | TESTS | 12 | 342 | 0 | ||
217379957 | devansh_123 | B | Aug. 5, 2023, 8:47 p.m. | OK | Java 11 | TESTS | 12 | 343 | 0 | ||
217402512 | dilip_2512 | B | Aug. 6, 2023, 4:15 a.m. | OK | Java 11 | TESTS | 12 | 358 | 0 | ||
217381679 | sahityatripathi1 | B | Aug. 5, 2023, 9:14 p.m. | OK | Java 11 | TESTS | 12 | 358 | 0 | ||
217362646 | verma.shivam2605 | B | Aug. 5, 2023, 6:01 p.m. | OK | Java 11 | TESTS | 12 | 358 | 0 | ||
217359284 | mschact | B | Aug. 5, 2023, 5:39 p.m. | OK | Java 11 | TESTS | 12 | 373 | 0 | ||
217359801 | Suraj1607 | B | Aug. 5, 2023, 5:43 p.m. | OK | Java 17 | TESTS | 12 | 202 | 512000 | ||
217383330 | imvivekthakur | B | Aug. 5, 2023, 9:43 p.m. | OK | Java 17 | TESTS | 12 | 202 | 614400 | ||
217381325 | bruce_x001 | B | Aug. 5, 2023, 9:08 p.m. | OK | Java 17 | TESTS | 12 | 217 | 307200 | ||
217397580 | looklakshya | B | Aug. 6, 2023, 2:52 a.m. | OK | Java 17 | TESTS | 12 | 218 | 716800 | ||
217374826 | swatishivam23 | B | Aug. 5, 2023, 7:47 p.m. | OK | Java 17 | TESTS | 12 | 218 | 819200 | ||
217358182 | songminsang | B | Aug. 5, 2023, 5:33 p.m. | OK | Java 17 | TESTS | 12 | 218 | 819200 | ||
217367995 | KIRA_p01 | B | Aug. 5, 2023, 6:44 p.m. | OK | Java 17 | TESTS | 12 | 249 | 716800 | ||
217380137 | aryangupta1604 | B | Aug. 5, 2023, 8:50 p.m. | OK | Java 17 | TESTS | 12 | 265 | 6041600 | ||
217403452 | Prime369 | B | Aug. 6, 2023, 4:30 a.m. | OK | Java 17 | TESTS | 12 | 295 | 614400 | ||
217360395 | Ha_sh-r | B | Aug. 5, 2023, 5:46 p.m. | OK | Java 17 | TESTS | 12 | 373 | 1228800 | ||
217399218 | aFShahahahxx | B | Aug. 6, 2023, 3:21 a.m. | OK | Java 8 | TESTS | 12 | 109 | 1843200 | ||
217378080 | Y_T | B | Aug. 5, 2023, 8:23 p.m. | OK | Java 8 | TESTS | 12 | 124 | 1843200 | ||
217375969 | ADust | B | Aug. 5, 2023, 7:59 p.m. | OK | Java 8 | TESTS | 12 | 124 | 1843200 | ||
217365872 | Akarsh2810 | B | Aug. 5, 2023, 6:26 p.m. | OK | Java 8 | TESTS | 12 | 124 | 2150400 | ||
217410007 | formidablechief_27 | B | Aug. 6, 2023, 5:59 a.m. | OK | Java 8 | TESTS | 12 | 124 | 2662400 | ||
217351654 | Harwinvanak | B | Aug. 5, 2023, 4:34 p.m. | OK | Java 8 | TESTS | 12 | 155 | 1843200 | ||
217380298 | Harwinvanak | B | Aug. 5, 2023, 8:52 p.m. | OK | Java 8 | TESTS | 12 | 170 | 0 | ||
217378923 | Harwinvanak | B | Aug. 5, 2023, 8:33 p.m. | OK | Java 8 | TESTS | 12 | 171 | 1843200 | ||
217361500 | BishoEzzat | B | Aug. 5, 2023, 5:53 p.m. | OK | Java 8 | TESTS | 12 | 202 | 0 | ||
217373195 | depurador_ik | B | Aug. 5, 2023, 7:31 p.m. | OK | Java 8 | TESTS | 12 | 202 | 1843200 | ||
217390952 | bwgreen | B | Aug. 6, 2023, 12:41 a.m. | OK | MS C++ 2017 | TESTS | 12 | 93 | 0 | ||
217386614 | IvDmAl | B | Aug. 5, 2023, 10:47 p.m. | OK | MS C++ 2017 | TESTS | 12 | 108 | 0 | ||
217404023 | EtherealMidnight | B | Aug. 6, 2023, 4:39 a.m. | OK | MS C++ 2017 | TESTS | 12 | 108 | 409600 | ||
217362541 | osato | B | Aug. 5, 2023, 6 p.m. | OK | Node.js | TESTS | 12 | 171 | 12083200 | ||
217363340 | dagmat | B | Aug. 5, 2023, 6:07 p.m. | OK | PyPy 3 | TESTS | 12 | 186 | 10035200 | ||
217373895 | momenelmesady4803 | B | Aug. 5, 2023, 7:39 p.m. | OK | PyPy 3 | TESTS | 12 | 374 | 11264000 | ||
217406586 | letamquang220805 | B | Aug. 6, 2023, 5:17 a.m. | OK | PyPy 3 | TESTS | 12 | 389 | 10956800 | ||
217358341 | WalrusRamen21 | B | Aug. 5, 2023, 5:34 p.m. | OK | PyPy 3 | TESTS | 12 | 389 | 10956800 | ||
217401470 | meet3447 | B | Aug. 6, 2023, 3:58 a.m. | OK | PyPy 3 | TESTS | 12 | 420 | 10956800 | ||
217367860 | nflx10199 | B | Aug. 5, 2023, 6:43 p.m. | OK | PyPy 3-64 | TESTS | 12 | 93 | 10752000 | ||
217375588 | NitroSpear | B | Aug. 5, 2023, 7:54 p.m. | OK | PyPy 3-64 | TESTS | 12 | 93 | 12492800 | ||
217383053 | injust | B | Aug. 5, 2023, 9:37 p.m. | OK | PyPy 3-64 | TESTS | 12 | 93 | 13414400 | ||
217370131 | AndreiZherder | B | Aug. 5, 2023, 7:03 p.m. | OK | PyPy 3-64 | TESTS | 12 | 108 | 10854400 | ||
217400209 | Youarenotgood | B | Aug. 6, 2023, 3:38 a.m. | OK | PyPy 3-64 | TESTS | 12 | 108 | 13414400 | ||
217369878 | hvbird | B | Aug. 5, 2023, 7 p.m. | OK | PyPy 3-64 | TESTS | 12 | 124 | 12492800 | ||
217399665 | zx4r | B | Aug. 6, 2023, 3:29 a.m. | OK | PyPy 3-64 | TESTS | 12 | 124 | 12800000 | ||
217361940 | junah | B | Aug. 5, 2023, 5:56 p.m. | OK | PyPy 3-64 | TESTS | 12 | 124 | 13209600 | ||
217381872 | maxdasein | B | Aug. 5, 2023, 9:18 p.m. | OK | PyPy 3-64 | TESTS | 12 | 124 | 13414400 | ||
217384374 | hvbird | B | Aug. 5, 2023, 10:04 p.m. | OK | PyPy 3-64 | TESTS | 12 | 124 | 14336000 | ||
217379975 | ahmoe | B | Aug. 5, 2023, 8:47 p.m. | OK | Python 3 | TESTS | 12 | 77 | 13209600 | ||
217373456 | codingPro360 | B | Aug. 5, 2023, 7:34 p.m. | OK | Python 3 | TESTS | 12 | 93 | 13209600 | ||
217367081 | YOUNES..GH.cpp | B | Aug. 5, 2023, 6:36 p.m. | OK | Python 3 | TESTS | 12 | 93 | 13209600 | ||
217363163 | super_33 | B | Aug. 5, 2023, 6:05 p.m. | OK | Python 3 | TESTS | 12 | 93 | 13209600 | ||
217357699 | maruf_khan96 | B | Aug. 5, 2023, 5:30 p.m. | OK | Python 3 | TESTS | 12 | 108 | 13209600 | ||
217409079 | WwwPY | B | Aug. 6, 2023, 5:48 a.m. | OK | Python 3 | TESTS | 12 | 108 | 13312000 | ||
217405713 | xKRISHNAx | B | Aug. 6, 2023, 5:04 a.m. | OK | Python 3 | TESTS | 12 | 108 | 13414400 | ||
217374347 | FGTRK | B | Aug. 5, 2023, 7:44 p.m. | OK | Python 3 | TESTS | 12 | 108 | 13414400 | ||
217370086 | ravi.gaikar88 | B | Aug. 5, 2023, 7:02 p.m. | OK | Python 3 | TESTS | 12 | 108 | 13516800 | ||
217369005 | UnhaPonwat | B | Aug. 5, 2023, 6:53 p.m. | OK | Python 3 | TESTS | 12 | 108 | 13516800 | ||
217365881 | 0x81 | B | Aug. 5, 2023, 6:26 p.m. | OK | Ruby 3 | TESTS | 12 | 311 | 7475200 | ||
217365793 | 0x81 | B | Aug. 5, 2023, 6:25 p.m. | OK | Ruby 3 | TESTS | 12 | 327 | 7475200 | ||
217377835 | cptahahab | B | Aug. 5, 2023, 8:20 p.m. | OK | Rust 2021 | TESTS | 12 | 31 | 8704000 |
Back to search problems