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 |
---|---|---|---|---|---|---|
1447 | Codeforces Round 683 (Div. 2, by Meet IT) | FINISHED | False | 9000 | 131815463 | Nov. 15, 2020, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 13891 ) | A | Add Candies | PROGRAMMING | constructive algorithms math |
B"There are n bags with candies, initially the i -th bag contains i candies. You want all the bags to contain an equal amount of candies in the end. To achieve this, you will: Choose m such that 1 <= m <= 1000 Perform m operations. In the j -th operation, you will pick one bag and add j candies to all bags apart from the chosen one. Your goal is to find a valid sequence of operations after which all the bags will contain an equal amount of candies. It can be proved that for the given constraints such a sequence always exists. You don't have to minimize m . If there are several valid sequences, you can output any. 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 each test case contains one integer n ( 2 <= n <= 100 ). For each testcase, print two lines with your answer. In the first line print m ( 1 <= m <= 1000 ) -- the number of operations you want to take. In the second line print m positive integers a_1, a_2, ... , a_m ( 1 <= a_i <= n ), where a_j is the number of bag you chose on the j -th operation. In the first case, adding 1 candy to all bags except of the second one leads to the arrangement with [2, 2] candies. In the second case, firstly you use first three operations to add 1+2+3=6 candies in total to each bag except of the third one, which gives you [7, 8, 3] . Later, you add 4 candies to second and third bag, so you have [7, 12, 7] , and 5 candies to first and third bag -- and the result is [12, 12, 12] . "... |
Meet IT Codeforces Round Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
98502322 | Md.Ripon | A | Nov. 15, 2020, 7:25 p.m. | OK | GNU C11 | TESTS | 2 | 15 | 0 | ||
98490873 | samiul_CSE19 | A | Nov. 15, 2020, 4:54 p.m. | OK | GNU C11 | TESTS | 2 | 30 | 0 | ||
98488342 | wellananya1 | A | Nov. 15, 2020, 4:42 p.m. | OK | GNU C11 | TESTS | 2 | 31 | 0 | ||
98491468 | syordya | A | Nov. 15, 2020, 4:57 p.m. | OK | GNU C11 | TESTS | 2 | 31 | 0 | ||
98517424 | luohls | A | Nov. 16, 2020, 4:14 a.m. | OK | GNU C11 | TESTS | 2 | 31 | 0 | ||
98483109 | arafat190122 | A | Nov. 15, 2020, 4:19 p.m. | OK | GNU C11 | TESTS | 2 | 46 | 0 | ||
98477577 | sofiekimberly | A | Nov. 15, 2020, 3:57 p.m. | OK | GNU C11 | TESTS | 2 | 46 | 0 | ||
98485437 | 0_0perplexed | A | Nov. 15, 2020, 4:29 p.m. | OK | GNU C11 | TESTS | 2 | 46 | 0 | ||
98521002 | sumitanand3098 | A | Nov. 16, 2020, 5:38 a.m. | OK | GNU C11 | TESTS | 2 | 46 | 0 | ||
98517466 | be_acmer | A | Nov. 16, 2020, 4:16 a.m. | OK | GNU C++11 | TESTS | 2 | 0 | 0 | ||
98484177 | std_aboulkacem | A | Nov. 15, 2020, 4:23 p.m. | OK | GNU C++11 | TESTS | 2 | 0 | 0 | ||
98518805 | Bigerrr | A | Nov. 16, 2020, 4:51 a.m. | OK | GNU C++11 | TESTS | 2 | 15 | 0 | ||
98521710 | saiful_alam41 | A | Nov. 16, 2020, 5:53 a.m. | OK | GNU C++11 | TESTS | 2 | 15 | 0 | ||
98521381 | Daedrik | A | Nov. 16, 2020, 5:46 a.m. | OK | GNU C++11 | TESTS | 2 | 15 | 0 | ||
98520682 | SONGYJ9 | A | Nov. 16, 2020, 5:31 a.m. | OK | GNU C++11 | TESTS | 2 | 15 | 0 | ||
98519823 | Dreamfarer | A | Nov. 16, 2020, 5:13 a.m. | OK | GNU C++11 | TESTS | 2 | 15 | 0 | ||
98519747 | shaily_shah99 | A | Nov. 16, 2020, 5:11 a.m. | OK | GNU C++11 | TESTS | 2 | 15 | 0 | ||
98519437 | abhishek2001 | A | Nov. 16, 2020, 5:04 a.m. | OK | GNU C++11 | TESTS | 2 | 15 | 0 | ||
98519241 | cry752264997 | A | Nov. 16, 2020, 5 a.m. | OK | GNU C++11 | TESTS | 2 | 15 | 0 | ||
98498374 | Ali_Zaiback | A | Nov. 15, 2020, 6:18 p.m. | OK | GNU C++14 | TESTS | 2 | 0 | 0 | ||
98518539 | anwesa19 | A | Nov. 16, 2020, 4:44 a.m. | OK | GNU C++14 | TESTS | 2 | 0 | 0 | ||
98521510 | __11235_Pawar | A | Nov. 16, 2020, 5:49 a.m. | OK | GNU C++14 | TESTS | 2 | 0 | 0 | ||
98516597 | aulakh_19 | A | Nov. 16, 2020, 3:48 a.m. | OK | GNU C++14 | TESTS | 2 | 0 | 0 | ||
98515994 | Amitharitwal | A | Nov. 16, 2020, 3:28 a.m. | OK | GNU C++14 | TESTS | 2 | 0 | 0 | ||
98515861 | claudia6 | A | Nov. 16, 2020, 3:25 a.m. | OK | GNU C++14 | TESTS | 2 | 0 | 0 | ||
98515044 | knightryder098 | A | Nov. 16, 2020, 3 a.m. | OK | GNU C++14 | TESTS | 2 | 0 | 0 | ||
98515033 | onlycoding567 | A | Nov. 16, 2020, 3 a.m. | OK | GNU C++14 | TESTS | 2 | 0 | 0 | ||
98503003 | a7madsam | A | Nov. 15, 2020, 7:39 p.m. | OK | GNU C++14 | TESTS | 2 | 0 | 0 | ||
98498681 | noobguy77 | A | Nov. 15, 2020, 6:22 p.m. | OK | GNU C++14 | TESTS | 2 | 0 | 0 | ||
98521035 | ktgm | A | Nov. 16, 2020, 5:39 a.m. | OK | GNU C++17 | TESTS | 2 | 0 | 0 | ||
98519599 | oliver_s | A | Nov. 16, 2020, 5:07 a.m. | OK | GNU C++17 | TESTS | 2 | 0 | 0 | ||
98518527 | rkchamp25 | A | Nov. 16, 2020, 4:43 a.m. | OK | GNU C++17 | TESTS | 2 | 0 | 0 | ||
98518184 | SYY | A | Nov. 16, 2020, 4:35 a.m. | OK | GNU C++17 | TESTS | 2 | 0 | 0 | ||
98507584 | LeticiaFCS | A | Nov. 15, 2020, 9:48 p.m. | OK | GNU C++17 | TESTS | 2 | 0 | 0 | ||
98503484 | ferrari430 | A | Nov. 15, 2020, 7:49 p.m. | OK | GNU C++17 | TESTS | 2 | 0 | 0 | ||
98503229 | beqakhelidze | A | Nov. 15, 2020, 7:44 p.m. | OK | GNU C++17 | TESTS | 2 | 0 | 0 | ||
98498700 | strange007 | A | Nov. 15, 2020, 6:23 p.m. | OK | GNU C++17 | TESTS | 2 | 0 | 0 | ||
98496820 | Daroga53 | A | Nov. 15, 2020, 5:57 p.m. | OK | GNU C++17 | TESTS | 2 | 0 | 0 | ||
98496698 | Contest_P | A | Nov. 15, 2020, 5:56 p.m. | OK | GNU C++17 | TESTS | 2 | 0 | 0 | ||
98482891 | Tanbin_Hasan | A | Nov. 15, 2020, 4:18 p.m. | OK | GNU C++17 (64) | TESTS | 2 | 0 | 0 | ||
98485319 | Hyrulia | A | Nov. 15, 2020, 4:28 p.m. | OK | GNU C++17 (64) | TESTS | 2 | 0 | 0 | ||
98485992 | prottoyfuad | A | Nov. 15, 2020, 4:31 p.m. | OK | GNU C++17 (64) | TESTS | 2 | 0 | 0 | ||
98492222 | dictat_or | A | Nov. 15, 2020, 5 p.m. | OK | GNU C++17 (64) | TESTS | 2 | 0 | 0 | ||
98495766 | israil445 | A | Nov. 15, 2020, 5:46 p.m. | OK | GNU C++17 (64) | TESTS | 2 | 0 | 0 | ||
98498015 | sic_mundus_creatus_est | A | Nov. 15, 2020, 6:13 p.m. | OK | GNU C++17 (64) | TESTS | 2 | 0 | 0 | ||
98504256 | MarcosK | A | Nov. 15, 2020, 8:08 p.m. | OK | GNU C++17 (64) | TESTS | 2 | 0 | 0 | ||
98513328 | vinsennawir | A | Nov. 16, 2020, 1:59 a.m. | OK | GNU C++17 (64) | TESTS | 2 | 0 | 0 | ||
98516742 | Prateek | A | Nov. 16, 2020, 3:53 a.m. | OK | GNU C++17 (64) | TESTS | 2 | 0 | 0 | ||
98519966 | am612106 | A | Nov. 16, 2020, 5:16 a.m. | OK | GNU C++17 (64) | TESTS | 2 | 0 | 0 | ||
98513617 | codelegend | A | Nov. 16, 2020, 2:10 a.m. | OK | Haskell | TESTS | 2 | 15 | 0 | ||
98502999 | Oussama_1 | A | Nov. 15, 2020, 7:39 p.m. | OK | Java 11 | TESTS | 2 | 155 | 0 | ||
98484593 | Ste | A | Nov. 15, 2020, 4:25 p.m. | OK | Java 11 | TESTS | 2 | 155 | 0 | ||
98499024 | amaansh2398 | A | Nov. 15, 2020, 6:28 p.m. | OK | Java 11 | TESTS | 2 | 170 | 0 | ||
98516552 | Codeispower | A | Nov. 16, 2020, 3:46 a.m. | OK | Java 11 | TESTS | 2 | 170 | 0 | ||
98500147 | infinity_code | A | Nov. 15, 2020, 6:45 p.m. | OK | Java 11 | TESTS | 2 | 171 | 0 | ||
98498071 | skittles1412 | A | Nov. 15, 2020, 6:13 p.m. | OK | Java 11 | TESTS | 2 | 171 | 0 | ||
98494976 | chris_11 | A | Nov. 15, 2020, 5:40 p.m. | OK | Java 11 | TESTS | 2 | 171 | 0 | ||
98499221 | nalin_1000101 | A | Nov. 15, 2020, 6:31 p.m. | OK | Java 11 | TESTS | 2 | 171 | 3072000 | ||
98504645 | southernIbrahim | A | Nov. 15, 2020, 8:18 p.m. | OK | Java 11 | TESTS | 2 | 186 | 0 | ||
98501996 | an_avid_coder | A | Nov. 15, 2020, 7:19 p.m. | OK | Java 11 | TESTS | 2 | 186 | 0 | ||
98499327 | overwrite | A | Nov. 15, 2020, 6:32 p.m. | OK | Java 8 | TESTS | 2 | 77 | 0 | ||
98497120 | ronitchopda14 | A | Nov. 15, 2020, 6:01 p.m. | OK | Java 8 | TESTS | 2 | 92 | 0 | ||
98509276 | O-infinity | A | Nov. 15, 2020, 10:54 p.m. | OK | Java 8 | TESTS | 2 | 93 | 0 | ||
98509208 | O-infinity | A | Nov. 15, 2020, 10:51 p.m. | OK | Java 8 | TESTS | 2 | 93 | 0 | ||
98498809 | rsingh3_be18 | A | Nov. 15, 2020, 6:24 p.m. | OK | Java 8 | TESTS | 2 | 93 | 0 | ||
98497541 | rachitpts.2454 | A | Nov. 15, 2020, 6:06 p.m. | OK | Java 8 | TESTS | 2 | 93 | 0 | ||
98488651 | gdax | A | Nov. 15, 2020, 4:43 p.m. | OK | Java 8 | TESTS | 2 | 93 | 0 | ||
98487590 | naitikvarshney77 | A | Nov. 15, 2020, 4:39 p.m. | OK | Java 8 | TESTS | 2 | 93 | 0 | ||
98504082 | RichardBot7000 | A | Nov. 15, 2020, 8:03 p.m. | OK | Java 8 | TESTS | 2 | 108 | 0 | ||
98500153 | jagrit_07 | A | Nov. 15, 2020, 6:45 p.m. | OK | Java 8 | TESTS | 2 | 108 | 0 | ||
98507745 | koboshi | A | Nov. 15, 2020, 9:53 p.m. | OK | Kotlin | TESTS | 2 | 124 | 0 | ||
98497989 | horvat.kamca | A | Nov. 15, 2020, 6:12 p.m. | OK | Kotlin | TESTS | 2 | 124 | 0 | ||
98513086 | CodingKnight | A | Nov. 16, 2020, 1:49 a.m. | OK | Kotlin | TESTS | 2 | 139 | 0 | ||
98513322 | winddust | A | Nov. 16, 2020, 1:59 a.m. | OK | MS C++ | TESTS | 2 | 31 | 0 | ||
98495349 | ustaritz | A | Nov. 15, 2020, 5:42 p.m. | OK | MS C++ 2017 | TESTS | 2 | 15 | 0 | ||
98519258 | wlgh410 | A | Nov. 16, 2020, 5:01 a.m. | OK | MS C++ 2017 | TESTS | 2 | 30 | 0 | ||
98490780 | -Tarantula | A | Nov. 15, 2020, 4:53 p.m. | OK | MS C++ 2017 | TESTS | 2 | 30 | 0 | ||
98520515 | htija | A | Nov. 16, 2020, 5:28 a.m. | OK | MS C++ 2017 | TESTS | 2 | 31 | 0 | ||
98508449 | Yoonika | A | Nov. 15, 2020, 10:19 p.m. | OK | MS C++ 2017 | TESTS | 2 | 31 | 0 | ||
98491264 | claritea | A | Nov. 15, 2020, 4:56 p.m. | OK | MS C++ 2017 | TESTS | 2 | 31 | 0 | ||
98489963 | man69man | A | Nov. 15, 2020, 4:49 p.m. | OK | MS C++ 2017 | TESTS | 2 | 31 | 0 | ||
98479634 | Niloy01 | A | Nov. 15, 2020, 4:05 p.m. | OK | MS C++ 2017 | TESTS | 2 | 31 | 0 | ||
98499326 | hxu10 | A | Nov. 15, 2020, 6:32 p.m. | OK | PyPy 2 | TESTS | 2 | 93 | 204800 | ||
98477361 | bitshifter42 | A | Nov. 15, 2020, 3:56 p.m. | OK | PyPy 3 | TESTS | 2 | 109 | 1331200 | ||
98510620 | bcc0830 | A | Nov. 16, 2020, 12:03 a.m. | OK | PyPy 3 | TESTS | 2 | 124 | 1331200 | ||
98483171 | Ruban_Denic | A | Nov. 15, 2020, 4:19 p.m. | OK | PyPy 3 | TESTS | 2 | 124 | 1331200 | ||
98497988 | priyannk_k | A | Nov. 15, 2020, 6:12 p.m. | OK | PyPy 3 | TESTS | 2 | 124 | 2048000 | ||
98484759 | akantuni | A | Nov. 15, 2020, 4:26 p.m. | OK | PyPy 3 | TESTS | 2 | 139 | 1433600 | ||
98500819 | rpkagoswami | A | Nov. 15, 2020, 6:58 p.m. | OK | PyPy 3 | TESTS | 2 | 139 | 2048000 | ||
98514381 | Laxman_Singh | A | Nov. 16, 2020, 2:38 a.m. | OK | PyPy 3 | TESTS | 2 | 139 | 2150400 | ||
98485434 | panthera_tigris | A | Nov. 15, 2020, 4:29 p.m. | OK | PyPy 3 | TESTS | 2 | 139 | 2150400 | ||
98516843 | samarthprakash8 | A | Nov. 16, 2020, 3:57 a.m. | OK | PyPy 3 | TESTS | 2 | 139 | 2355200 | ||
98503306 | titia | A | Nov. 15, 2020, 7:45 p.m. | OK | PyPy 3 | TESTS | 2 | 139 | 2355200 | ||
98504280 | elistark | A | Nov. 15, 2020, 8:08 p.m. | OK | Python 2 | TESTS | 2 | 140 | 0 | ||
98511398 | biltharesatyendra | A | Nov. 16, 2020, 12:38 a.m. | OK | Python 2 | TESTS | 2 | 155 | 0 | ||
98503537 | Oshayer_Siddique | A | Nov. 15, 2020, 7:51 p.m. | OK | Python 3 | TESTS | 2 | 77 | 0 | ||
98496882 | sh1194 | A | Nov. 15, 2020, 5:58 p.m. | OK | Python 3 | TESTS | 2 | 77 | 0 | ||
98504064 | rummansadik | A | Nov. 15, 2020, 8:03 p.m. | OK | Python 3 | TESTS | 2 | 78 | 0 | ||
98497052 | nikhil98 | A | Nov. 15, 2020, 6 p.m. | OK | Python 3 | TESTS | 2 | 78 | 0 | ||
98513937 | Shubham33 | A | Nov. 16, 2020, 2:23 a.m. | OK | Python 3 | TESTS | 2 | 93 | 0 | ||
98513053 | madhav154 | A | Nov. 16, 2020, 1:48 a.m. | OK | Python 3 | TESTS | 2 | 93 | 0 | ||
98508141 | frank_u | A | Nov. 15, 2020, 10:08 p.m. | OK | Python 3 | TESTS | 2 | 93 | 0 | ||
98506215 | Nah1d | A | Nov. 15, 2020, 9:03 p.m. | OK | Python 3 | TESTS | 2 | 93 | 0 | ||
98502648 | _Shashank_ | A | Nov. 15, 2020, 7:32 p.m. | OK | Python 3 | TESTS | 2 | 93 | 0 | ||
98500784 | ARVIND09 | A | Nov. 15, 2020, 6:57 p.m. | OK | Python 3 | TESTS | 2 | 93 | 0 | ||
98496341 | casualedd | A | Nov. 15, 2020, 5:52 p.m. | OK | Ruby | TESTS | 2 | 499 | 204800 | ||
98480868 | WarTey | A | Nov. 15, 2020, 4:10 p.m. | OK | Ruby | TESTS | 2 | 499 | 204800 |
Back to search problems