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 |
---|---|---|---|---|---|---|
1438 | Codeforces Round 682 (Div. 2) | FINISHED | False | 7200 | 132074711 | Nov. 13, 2020, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 19378 ) | A | Specific Tastes of Andre | PROGRAMMING | constructive algorithms |
B"Andre has very specific tastes. Recently he started falling in love with arrays. Andre calls an nonempty array b good, if sum of its elements is divisible by the length of this array. For example, array [2, 3, 1] is good, as sum of its elements -- 6 -- is divisible by 3 , but array [1, 1, 2, 3] isn't good, as 7 isn't divisible by 4 . Andre calls an array a of length n perfect if the following conditions hold: Given a positive integer n , output any perfect array of length n . We can show that for the given constraints such an array always exists. An array c is a subarray of an array d if c can be obtained from d by deletion of several (possibly, zero or all) elements from the beginning and several (possibly, zero or all) elements from the end. Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 100 ). Description of the test cases follows. The first and only line of every test case contains a single integer n ( 1 <= n <= 100 ). For every test, output any perfect array of length n on a separate line. Array [19, 33] is perfect as all 3 its subarrays: [19] , [33] , [19, 33] , have sums divisible by their lengths, and therefore are good. "... |
Codeforces Round #682 (Div. 2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
98349648 | 5695355 | A | Nov. 14, 2020, 4:22 a.m. | OK | Clang++17 Diagnostics | TESTS | 2 | 30 | 0 | ||
98349519 | 5695355 | A | Nov. 14, 2020, 4:18 a.m. | OK | Clang++17 Diagnostics | TESTS | 2 | 46 | 0 | ||
98346077 | ndocx | A | Nov. 14, 2020, 2:48 a.m. | OK | FPC | TESTS | 2 | 30 | 0 | ||
98344205 | fpc_coder | A | Nov. 14, 2020, 1:58 a.m. | OK | FPC | TESTS | 2 | 31 | 0 | ||
98313850 | KhavidBap | A | Nov. 13, 2020, 3:45 p.m. | OK | FPC | TESTS | 2 | 31 | 0 | ||
98348388 | Shaiful_Islam_Emon | A | Nov. 14, 2020, 3:47 a.m. | OK | GNU C11 | TESTS | 2 | 15 | 0 | ||
98342521 | allay | A | Nov. 14, 2020, 12:59 a.m. | OK | GNU C11 | TESTS | 2 | 15 | 0 | ||
98310635 | Anir_ln | A | Nov. 13, 2020, 3:32 p.m. | OK | GNU C11 | TESTS | 2 | 30 | 0 | ||
98328817 | msr099 | A | Nov. 13, 2020, 6:09 p.m. | OK | GNU C11 | TESTS | 2 | 30 | 0 | ||
98322539 | Tamim-Rahman | A | Nov. 13, 2020, 4:29 p.m. | OK | GNU C11 | TESTS | 2 | 30 | 0 | ||
98341047 | BugLeave | A | Nov. 13, 2020, 11:45 p.m. | OK | GNU C11 | TESTS | 2 | 31 | 0 | ||
98342383 | biltharesatyendra | A | Nov. 14, 2020, 12:53 a.m. | OK | GNU C11 | TESTS | 2 | 31 | 0 | ||
98345243 | TWINCLE-t | A | Nov. 14, 2020, 2:28 a.m. | OK | GNU C11 | TESTS | 2 | 31 | 0 | ||
98353337 | aditta_saikat | A | Nov. 14, 2020, 5:48 a.m. | OK | GNU C11 | TESTS | 2 | 31 | 0 | ||
98340348 | lemraus | A | Nov. 13, 2020, 11:12 p.m. | OK | GNU C11 | TESTS | 2 | 31 | 0 | ||
98340259 | unputdownable | A | Nov. 13, 2020, 11:07 p.m. | OK | GNU C++11 | TESTS | 2 | 0 | 0 | ||
98329438 | Anurag4149 | A | Nov. 13, 2020, 6:18 p.m. | OK | GNU C++11 | TESTS | 2 | 0 | 0 | ||
98348451 | Nevilkumar | A | Nov. 14, 2020, 3:49 a.m. | OK | GNU C++11 | TESTS | 2 | 0 | 0 | ||
98353975 | Nocole | A | Nov. 14, 2020, 6:01 a.m. | OK | GNU C++11 | TESTS | 2 | 15 | 0 | ||
98353923 | Sazib_Hossain | A | Nov. 14, 2020, 6 a.m. | OK | GNU C++11 | TESTS | 2 | 15 | 0 | ||
98353747 | Ferdy-Raw | A | Nov. 14, 2020, 5:56 a.m. | OK | GNU C++11 | TESTS | 2 | 15 | 0 | ||
98353298 | ghutoon | A | Nov. 14, 2020, 5:48 a.m. | OK | GNU C++11 | TESTS | 2 | 15 | 0 | ||
98353061 | XueYJ | A | Nov. 14, 2020, 5:43 a.m. | OK | GNU C++11 | TESTS | 2 | 15 | 0 | ||
98353019 | Elfha | A | Nov. 14, 2020, 5:42 a.m. | OK | GNU C++11 | TESTS | 2 | 15 | 0 | ||
98352715 | Lucky1Devil | A | Nov. 14, 2020, 5:36 a.m. | OK | GNU C++11 | TESTS | 2 | 15 | 0 | ||
98349307 | sd_pt | A | Nov. 14, 2020, 4:12 a.m. | OK | GNU C++14 | TESTS | 2 | 0 | 0 | ||
98328573 | class_bunker_real | A | Nov. 13, 2020, 6:06 p.m. | OK | GNU C++14 | TESTS | 2 | 0 | 0 | ||
98332118 | mxnna | A | Nov. 13, 2020, 7:03 p.m. | OK | GNU C++14 | TESTS | 2 | 0 | 0 | ||
98347167 | resfeber14 | A | Nov. 14, 2020, 3:16 a.m. | OK | GNU C++14 | TESTS | 2 | 0 | 0 | ||
98317892 | shantanu13 | A | Nov. 13, 2020, 4:03 p.m. | OK | GNU C++14 | TESTS | 2 | 0 | 0 | ||
98319138 | roshni.rx | A | Nov. 13, 2020, 4:09 p.m. | OK | GNU C++14 | TESTS | 2 | 0 | 0 | ||
98328085 | avijeet108 | A | Nov. 13, 2020, 6 p.m. | OK | GNU C++14 | TESTS | 2 | 0 | 0 | ||
98354023 | Rackib | A | Nov. 14, 2020, 6:02 a.m. | OK | GNU C++14 | TESTS | 2 | 15 | 0 | ||
98354069 | khan_rahim | A | Nov. 14, 2020, 6:03 a.m. | OK | GNU C++14 | TESTS | 2 | 15 | 0 | ||
98354001 | noobnoob5465 | A | Nov. 14, 2020, 6:02 a.m. | OK | GNU C++14 | TESTS | 2 | 15 | 0 | ||
98338787 | nehalreshuaaryan | A | Nov. 13, 2020, 9:51 p.m. | OK | GNU C++17 | TESTS | 2 | 0 | 0 | ||
98352338 | akhil1_1 | A | Nov. 14, 2020, 5:28 a.m. | OK | GNU C++17 | TESTS | 2 | 0 | 0 | ||
98346093 | PranavMare | A | Nov. 14, 2020, 2:48 a.m. | OK | GNU C++17 | TESTS | 2 | 0 | 0 | ||
98342993 | Leo_zehualuo | A | Nov. 14, 2020, 1:16 a.m. | OK | GNU C++17 | TESTS | 2 | 0 | 0 | ||
98331888 | kj2001 | A | Nov. 13, 2020, 6:59 p.m. | OK | GNU C++17 | TESTS | 2 | 0 | 0 | ||
98330392 | beast_sr | A | Nov. 13, 2020, 6:33 p.m. | OK | GNU C++17 | TESTS | 2 | 0 | 0 | ||
98329171 | MhD88 | A | Nov. 13, 2020, 6:14 p.m. | OK | GNU C++17 | TESTS | 2 | 0 | 0 | ||
98327354 | harsh.15 | A | Nov. 13, 2020, 5:52 p.m. | OK | GNU C++17 | TESTS | 2 | 0 | 0 | ||
98326982 | Icandoit1 | A | Nov. 13, 2020, 5:48 p.m. | OK | GNU C++17 | TESTS | 2 | 0 | 0 | ||
98313673 | rh.rahil.1385 | A | Nov. 13, 2020, 3:44 p.m. | OK | GNU C++17 | TESTS | 2 | 0 | 0 | ||
98326920 | diyora13 | A | Nov. 13, 2020, 5:47 p.m. | OK | GNU C++17 (64) | TESTS | 2 | 0 | 0 | ||
98329579 | babyelephant | A | Nov. 13, 2020, 6:20 p.m. | OK | GNU C++17 (64) | TESTS | 2 | 0 | 0 | ||
98331051 | kevinyang | A | Nov. 13, 2020, 6:44 p.m. | OK | GNU C++17 (64) | TESTS | 2 | 0 | 0 | ||
98332363 | Kot-Skazochnik | A | Nov. 13, 2020, 7:08 p.m. | OK | GNU C++17 (64) | TESTS | 2 | 0 | 0 | ||
98337232 | shreyaz_07 | A | Nov. 13, 2020, 8:57 p.m. | OK | GNU C++17 (64) | TESTS | 2 | 0 | 0 | ||
98337239 | keepers | A | Nov. 13, 2020, 8:57 p.m. | OK | GNU C++17 (64) | TESTS | 2 | 0 | 0 | ||
98338780 | PacifiedPenguin | A | Nov. 13, 2020, 9:51 p.m. | OK | GNU C++17 (64) | TESTS | 2 | 0 | 0 | ||
98343599 | ThanhTrungK15 | A | Nov. 14, 2020, 1:37 a.m. | OK | GNU C++17 (64) | TESTS | 2 | 0 | 0 | ||
98346770 | return_47 | A | Nov. 14, 2020, 3:05 a.m. | OK | GNU C++17 (64) | TESTS | 2 | 0 | 0 | ||
98353734 | alif_cse_ju | A | Nov. 14, 2020, 5:56 a.m. | OK | GNU C++17 (64) | TESTS | 2 | 0 | 0 | ||
98352511 | Teach-tp | A | Nov. 14, 2020, 5:31 a.m. | OK | Go | TESTS | 2 | 30 | 0 | ||
98353378 | maguroguma | A | Nov. 14, 2020, 5:49 a.m. | OK | Go | TESTS | 2 | 31 | 0 | ||
98309620 | codelegend | A | Nov. 13, 2020, 3:29 p.m. | OK | Haskell | TESTS | 2 | 15 | 0 | ||
98342110 | pikachu_pika_pika | A | Nov. 14, 2020, 12:38 a.m. | OK | Java 11 | TESTS | 2 | 155 | 0 | ||
98326783 | abdelrahman-yousf | A | Nov. 13, 2020, 5:46 p.m. | OK | Java 11 | TESTS | 2 | 170 | 0 | ||
98309353 | rullakebab | A | Nov. 13, 2020, 3:28 p.m. | OK | Java 11 | TESTS | 2 | 171 | 0 | ||
98327807 | anirudhchowdary123 | A | Nov. 13, 2020, 5:57 p.m. | OK | Java 11 | TESTS | 2 | 171 | 0 | ||
98344098 | prakash.4 | A | Nov. 14, 2020, 1:54 a.m. | OK | Java 11 | TESTS | 2 | 186 | 0 | ||
98330602 | rafee69029 | A | Nov. 13, 2020, 6:36 p.m. | OK | Java 11 | TESTS | 2 | 186 | 0 | ||
98313377 | ScorpionKing3 | A | Nov. 13, 2020, 3:43 p.m. | OK | Java 11 | TESTS | 2 | 186 | 0 | ||
98327954 | 190107100 | A | Nov. 13, 2020, 5:58 p.m. | OK | Java 11 | TESTS | 2 | 186 | 0 | ||
98353158 | Ghost_retail | A | Nov. 14, 2020, 5:45 a.m. | OK | Java 11 | TESTS | 2 | 186 | 0 | ||
98348641 | cruxx | A | Nov. 14, 2020, 3:54 a.m. | OK | Java 11 | TESTS | 2 | 186 | 0 | ||
98338044 | rsingh3_be18 | A | Nov. 13, 2020, 9:23 p.m. | OK | Java 8 | TESTS | 2 | 92 | 0 | ||
98344190 | parascoding | A | Nov. 14, 2020, 1:57 a.m. | OK | Java 8 | TESTS | 2 | 92 | 0 | ||
98327434 | bhavik128 | A | Nov. 13, 2020, 5:53 p.m. | OK | Java 8 | TESTS | 2 | 92 | 0 | ||
98328545 | eng_hardik | A | Nov. 13, 2020, 6:05 p.m. | OK | Java 8 | TESTS | 2 | 93 | 0 | ||
98346483 | naveennavi3002 | A | Nov. 14, 2020, 2:58 a.m. | OK | Java 8 | TESTS | 2 | 93 | 0 | ||
98336967 | 3omar17 | A | Nov. 13, 2020, 8:50 p.m. | OK | Java 8 | TESTS | 2 | 93 | 0 | ||
98332870 | O-infinity | A | Nov. 13, 2020, 7:16 p.m. | OK | Java 8 | TESTS | 2 | 93 | 0 | ||
98329491 | lzhang | A | Nov. 13, 2020, 6:19 p.m. | OK | Java 8 | TESTS | 2 | 93 | 0 | ||
98320189 | rachitpts.2454 | A | Nov. 13, 2020, 4:15 p.m. | OK | Java 8 | TESTS | 2 | 93 | 0 | ||
98334763 | G.A.T.C | A | Nov. 13, 2020, 7:57 p.m. | OK | Java 8 | TESTS | 2 | 108 | 0 | ||
98323142 | FutureAnge1 | A | Nov. 13, 2020, 4:33 p.m. | OK | JavaScript | TESTS | 2 | 30 | 102400 | ||
98352194 | present_sir | A | Nov. 14, 2020, 5:25 a.m. | OK | Kotlin | TESTS | 2 | 124 | 0 | ||
98316755 | Uncle_2 | A | Nov. 13, 2020, 3:58 p.m. | OK | Kotlin | TESTS | 2 | 186 | 0 | ||
98330206 | TRR | A | Nov. 13, 2020, 6:30 p.m. | OK | Mono C# | TESTS | 2 | 62 | 0 | ||
98312202 | mubing | A | Nov. 13, 2020, 3:38 p.m. | OK | MS C++ | TESTS | 2 | 30 | 0 | ||
98341125 | Thebestofthebest | A | Nov. 13, 2020, 11:49 p.m. | OK | MS C++ 2017 | TESTS | 2 | 15 | 0 | ||
98317651 | f_cktorial | A | Nov. 13, 2020, 4:02 p.m. | OK | MS C++ 2017 | TESTS | 2 | 15 | 0 | ||
98316716 | phcdream | A | Nov. 13, 2020, 3:58 p.m. | OK | MS C++ 2017 | TESTS | 2 | 15 | 0 | ||
98315705 | faezeh.vahedi2000 | A | Nov. 13, 2020, 3:53 p.m. | OK | MS C++ 2017 | TESTS | 2 | 15 | 0 | ||
98312589 | pro_shudipto424 | A | Nov. 13, 2020, 3:40 p.m. | OK | MS C++ 2017 | TESTS | 2 | 15 | 0 | ||
98310495 | NKOWING | A | Nov. 13, 2020, 3:32 p.m. | OK | MS C++ 2017 | TESTS | 2 | 15 | 0 | ||
98340430 | EvgeniusASPX | A | Nov. 13, 2020, 11:17 p.m. | OK | MS C++ 2017 | TESTS | 2 | 15 | 7987200 | ||
98338824 | tawfekhesham | A | Nov. 13, 2020, 9:53 p.m. | OK | MS C++ 2017 | TESTS | 2 | 30 | 2048000 | ||
98328862 | yousef_elmahdy | A | Nov. 13, 2020, 6:10 p.m. | OK | MS C++ 2017 | TESTS | 2 | 31 | 0 | ||
98327289 | gaserashraf | A | Nov. 13, 2020, 5:51 p.m. | OK | MS C++ 2017 | TESTS | 2 | 31 | 0 | ||
98352076 | asutosh1998 | A | Nov. 14, 2020, 5:23 a.m. | OK | .NET Core C# | TESTS | 2 | 108 | 102400 | ||
98333011 | reyad | A | Nov. 13, 2020, 7:19 p.m. | OK | PHP | TESTS | 2 | 31 | 0 | ||
98334870 | kit.shiron | A | Nov. 13, 2020, 8 p.m. | OK | PyPy 2 | TESTS | 2 | 93 | 0 | ||
98344743 | arvindr9 | A | Nov. 14, 2020, 2:14 a.m. | OK | PyPy 3 | TESTS | 2 | 108 | 0 | ||
98327613 | kushagramanojgupta | A | Nov. 13, 2020, 5:54 p.m. | OK | PyPy 3 | TESTS | 2 | 108 | 0 | ||
98321987 | nishank.suresh | A | Nov. 13, 2020, 4:26 p.m. | OK | PyPy 3 | TESTS | 2 | 109 | 0 | ||
98339866 | sourabhgol1999 | A | Nov. 13, 2020, 10:47 p.m. | OK | PyPy 3 | TESTS | 2 | 124 | 0 | ||
98332737 | fakeboy_codeforces | A | Nov. 13, 2020, 7:13 p.m. | OK | PyPy 3 | TESTS | 2 | 124 | 0 | ||
98317880 | sumit08 | A | Nov. 13, 2020, 4:03 p.m. | OK | PyPy 3 | TESTS | 2 | 124 | 0 | ||
98313886 | serorjb | A | Nov. 13, 2020, 3:45 p.m. | OK | PyPy 3 | TESTS | 2 | 124 | 0 | ||
98310863 | TLEincarnate | A | Nov. 13, 2020, 3:33 p.m. | OK | PyPy 3 | TESTS | 2 | 124 | 1331200 | ||
98329466 | rpkagoswami | A | Nov. 13, 2020, 6:18 p.m. | OK | PyPy 3 | TESTS | 2 | 124 | 1945600 | ||
98329216 | thilinawee | A | Nov. 13, 2020, 6:15 p.m. | OK | PyPy 3 | TESTS | 2 | 124 | 2662400 | ||
98319009 | manjeet404 | A | Nov. 13, 2020, 4:09 p.m. | OK | Python 2 | TESTS | 2 | 139 | 0 | ||
98348342 | Raselroky | A | Nov. 14, 2020, 3:46 a.m. | OK | Python 3 | TESTS | 2 | 77 | 0 | ||
98346273 | rowida126 | A | Nov. 14, 2020, 2:53 a.m. | OK | Python 3 | TESTS | 2 | 77 | 0 | ||
98315819 | Rudrashah | A | Nov. 13, 2020, 3:53 p.m. | OK | Python 3 | TESTS | 2 | 77 | 0 | ||
98310434 | iammamun | A | Nov. 13, 2020, 3:32 p.m. | OK | Python 3 | TESTS | 2 | 77 | 0 | ||
98308123 | SoulofAO | A | Nov. 13, 2020, 3:24 p.m. | OK | Python 3 | TESTS | 2 | 77 | 0 | ||
98352091 | lets_see | A | Nov. 14, 2020, 5:23 a.m. | OK | Python 3 | TESTS | 2 | 78 | 0 | ||
98344468 | singhumang305 | A | Nov. 14, 2020, 2:06 a.m. | OK | Python 3 | TESTS | 2 | 78 | 0 | ||
98333966 | kraspai | A | Nov. 13, 2020, 7:39 p.m. | OK | Python 3 | TESTS | 2 | 78 | 0 | ||
98315005 | lolore321 | A | Nov. 13, 2020, 3:49 p.m. | OK | Python 3 | TESTS | 2 | 78 | 0 | ||
98311505 | one_mINd | A | Nov. 13, 2020, 3:35 p.m. | OK | Python 3 | TESTS | 2 | 78 | 0 | ||
98341247 | masa0216masa0216masa0216 | A | Nov. 13, 2020, 11:56 p.m. | OK | Ruby | TESTS | 2 | 436 | 204800 | ||
98345580 | kanik0 | A | Nov. 14, 2020, 2:35 a.m. | OK | Rust | TESTS | 2 | 15 | 0 |
Back to search problems