Codeforces Round 916 (Div. 3)

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
1914 Codeforces Round 916 (Div. 3) FINISHED False 9000 28826699 Dec. 19, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 30531 ) B Preparing for the Contest PROGRAMMING constructive algorithms math

B"Monocarp is practicing for a big contest. He plans to solve n problems to make sure he's prepared. Each of these problems has a difficulty level: the first problem has a difficulty level of 1 , the second problem has a difficulty level of 2 , and so on, until the last ( n -th) problem, which has a difficulty level of n . Monocarp will choose some order in which he is going to solve all n problems. Whenever he solves a problem which is more difficult than the last problem he solved, he gets excited because he feels like he's progressing. He doesn't get excited when he solves the first problem in his chosen order. For example, if Monocarp solves the problems in the order [3, underline{5}, 4, 1, underline{6}, 2] , he gets excited twice (the corresponding problems are underlined). Monocarp wants to get excited exactly k times during his practicing session. Help him to choose the order in which he has to solve the problems! The first line contains one integer t ( 1 <= t <= 1000 ) -- the number of test cases. Each test case consists of one line containing two integers n and k ( 2 <= n <= 50 ; 0 <= k <= n - 1 ). For each test case, print n distinct integers from 1 to n , denoting the order in which Monocarp should solve the problems. If there are multiple answers, print any of them. It can be shown that under the constraints of the problem, the answer always exists. "...

Tutorials

Codeforces Round 916 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
238053703 asutosh1998 B Dec. 19, 2023, 5:13 p.m. OK C# 10 TESTS 3 46 2457600
238080678 bluemegane B Dec. 19, 2023, 11:31 p.m. OK C# 8 TESTS 3 93 2560000
238072376 Lemezzi1000 B Dec. 19, 2023, 8:14 p.m. OK Clang++17 Diagnostics TESTS 3 155 4198400
238053770 Aman1243 B Dec. 19, 2023, 5:13 p.m. OK Clang++17 Diagnostics TESTS 3 171 0
238068554 s83757 B Dec. 19, 2023, 7:20 p.m. OK Clang++17 Diagnostics TESTS 3 171 0
238083767 FDpencil3 B Dec. 20, 2023, 1:16 a.m. OK Clang++20 Diagnostics TESTS 3 171 0
238048129 2100032481cseh B Dec. 19, 2023, 4:58 p.m. OK GNU C11 TESTS 3 186 0
238096256 MANAV_2005 B Dec. 20, 2023, 5:07 a.m. OK GNU C11 TESTS 3 187 0
238052062 usama12 B Dec. 19, 2023, 5:06 p.m. OK GNU C11 TESTS 3 202 0
238052864 keerthika05 B Dec. 19, 2023, 5:09 p.m. OK GNU C11 TESTS 3 202 0
238059184 quasikote B Dec. 19, 2023, 5:48 p.m. OK GNU C11 TESTS 3 202 0
238061865 gildedpterodactyl B Dec. 19, 2023, 6:10 p.m. OK GNU C11 TESTS 3 202 0
238076297 unordinary_substance B Dec. 19, 2023, 9:25 p.m. OK GNU C11 TESTS 3 202 0
238078593 Aaditya2801 B Dec. 19, 2023, 10:22 p.m. OK GNU C11 TESTS 3 202 0
238100340 trishareddyporalla B Dec. 20, 2023, 5:57 a.m. OK GNU C11 TESTS 3 202 0
238049641 varshithapatel935 B Dec. 19, 2023, 5:01 p.m. OK GNU C11 TESTS 3 202 0
238079273 quinox B Dec. 19, 2023, 10:43 p.m. OK GNU C++14 TESTS 3 0 0
238069275 par4dox B Dec. 19, 2023, 7:30 p.m. OK GNU C++14 TESTS 3 0 0
238065972 tak_eshi B Dec. 19, 2023, 6:51 p.m. OK GNU C++14 TESTS 3 0 0
238097892 yeyu503 B Dec. 20, 2023, 5:27 a.m. OK GNU C++14 TESTS 3 0 0
238064397 kaustubh_1806 B Dec. 19, 2023, 6:34 p.m. OK GNU C++14 TESTS 3 0 0
238052790 shihab544 B Dec. 19, 2023, 5:09 p.m. OK GNU C++14 TESTS 3 0 102400
238053927 sherifmesba B Dec. 19, 2023, 5:14 p.m. OK GNU C++14 TESTS 3 0 102400
238100392 n.khatri393 B Dec. 20, 2023, 5:57 a.m. OK GNU C++14 TESTS 3 15 0
238100401 BS_Extra B Dec. 20, 2023, 5:57 a.m. OK GNU C++14 TESTS 3 15 0
238100612 Forsythia B Dec. 20, 2023, 5:59 a.m. OK GNU C++14 TESTS 3 15 0
238099232 Aaryjoshi B Dec. 20, 2023, 5:44 a.m. OK GNU C++17 TESTS 3 0 0
238100069 Code_flayer B Dec. 20, 2023, 5:53 a.m. OK GNU C++17 TESTS 3 0 0
238081337 tanmaytaneja2 B Dec. 19, 2023, 11:55 p.m. OK GNU C++17 TESTS 3 0 0
238084704 hacizadal B Dec. 20, 2023, 1:41 a.m. OK GNU C++17 TESTS 3 0 0
238093135 vishalkalita036 B Dec. 20, 2023, 4:22 a.m. OK GNU C++17 TESTS 3 0 0
238094367 rr_Lord B Dec. 20, 2023, 4:40 a.m. OK GNU C++17 TESTS 3 0 0
238094542 AnthonyZ B Dec. 20, 2023, 4:43 a.m. OK GNU C++17 TESTS 3 0 0
238094777 Hritesh_saini B Dec. 20, 2023, 4:47 a.m. OK GNU C++17 TESTS 3 0 0
238080889 quangdepzai B Dec. 19, 2023, 11:38 p.m. OK GNU C++17 TESTS 3 0 0
238079863 mehdi123 B Dec. 19, 2023, 11:03 p.m. OK GNU C++17 TESTS 3 0 0
238054289 Xx_star B Dec. 19, 2023, 5:16 p.m. OK GNU C++17 (64) TESTS 3 0 0
238090649 b_i_b B Dec. 20, 2023, 3:44 a.m. OK GNU C++17 (64) TESTS 3 0 0
238089944 arigeimpleis B Dec. 20, 2023, 3:31 a.m. OK GNU C++17 (64) TESTS 3 0 0
238087089 2088244836 B Dec. 20, 2023, 2:36 a.m. OK GNU C++17 (64) TESTS 3 0 0
238085837 cecily B Dec. 20, 2023, 2:09 a.m. OK GNU C++17 (64) TESTS 3 0 0
238082402 yumingjs B Dec. 20, 2023, 12:37 a.m. OK GNU C++17 (64) TESTS 3 0 0
238070859 TheAnonymousAMGR B Dec. 19, 2023, 7:52 p.m. OK GNU C++17 (64) TESTS 3 0 0
238064044 hmamsy B Dec. 19, 2023, 6:30 p.m. OK GNU C++17 (64) TESTS 3 0 0
238052406 Piiiyyyss B Dec. 19, 2023, 5:07 p.m. OK GNU C++17 (64) TESTS 3 0 0
238085506 Gkfjyn B Dec. 20, 2023, 2 a.m. OK GNU C++17 (64) TESTS 3 0 3993600
238098341 AD1B B Dec. 20, 2023, 5:33 a.m. OK GNU C++20 (64) TESTS 3 0 0
238098624 akarsh_77 B Dec. 20, 2023, 5:36 a.m. OK GNU C++20 (64) TESTS 3 0 0
238099039 unknownnnn001 B Dec. 20, 2023, 5:41 a.m. OK GNU C++20 (64) TESTS 3 0 0
238099091 sm745052 B Dec. 20, 2023, 5:42 a.m. OK GNU C++20 (64) TESTS 3 0 0
238099140 barot_mh B Dec. 20, 2023, 5:43 a.m. OK GNU C++20 (64) TESTS 3 0 0
238099733 Adl_uz B Dec. 20, 2023, 5:49 a.m. OK GNU C++20 (64) TESTS 3 0 0
238099988 BuddhaBarFans B Dec. 20, 2023, 5:53 a.m. OK GNU C++20 (64) TESTS 3 0 0
238100114 RoopamTaneja B Dec. 20, 2023, 5:54 a.m. OK GNU C++20 (64) TESTS 3 0 0
238100292 KushagraVedRiti_2127 B Dec. 20, 2023, 5:56 a.m. OK GNU C++20 (64) TESTS 3 0 0
238098278 RogueArtist B Dec. 20, 2023, 5:32 a.m. OK GNU C++20 (64) TESTS 3 0 0
238077325 CruellaDeVil B Dec. 19, 2023, 9:48 p.m. OK Go TESTS 3 15 0
238053870 saksham_goel05 B Dec. 19, 2023, 5:14 p.m. OK Java 11 TESTS 3 202 0
238053381 devshahed B Dec. 19, 2023, 5:11 p.m. OK Java 11 TESTS 3 342 0
238090714 Mg718 B Dec. 20, 2023, 3:45 a.m. OK Java 11 TESTS 3 358 0
238050114 toufikmd99 B Dec. 19, 2023, 5:02 p.m. OK Java 11 TESTS 3 373 0
238086587 Mac_prime B Dec. 20, 2023, 2:26 a.m. OK Java 11 TESTS 3 390 0
238063762 MariamWaelHegazy B Dec. 19, 2023, 6:27 p.m. OK Java 11 TESTS 3 390 0
238069740 anacharsis B Dec. 19, 2023, 7:36 p.m. OK Java 17 TESTS 3 155 0
238095823 NatsuDragoneel B Dec. 20, 2023, 5:02 a.m. OK Java 17 TESTS 3 265 819200
238047647 Andr0Dev B Dec. 19, 2023, 4:56 p.m. OK Java 17 TESTS 3 311 0
238076818 LordLazor B Dec. 19, 2023, 9:37 p.m. OK Java 17 TESTS 3 311 102400
238062061 BankaiOppa B Dec. 19, 2023, 6:12 p.m. OK Java 17 TESTS 3 311 307200
238074715 prathamesh_204 B Dec. 19, 2023, 8:52 p.m. OK Java 17 TESTS 3 311 716800
238100605 aditya_parate B Dec. 20, 2023, 5:59 a.m. OK Java 17 TESTS 3 311 921600
238061286 sohamt-21 B Dec. 19, 2023, 6:05 p.m. OK Java 17 TESTS 3 343 409600
238062238 samarthjainsj25 B Dec. 19, 2023, 6:13 p.m. OK Java 17 TESTS 3 358 0
238059292 productivity.345 B Dec. 19, 2023, 5:49 p.m. OK Java 17 TESTS 3 358 512000
238059387 newborn_23 B Dec. 19, 2023, 5:50 p.m. OK Java 21 TESTS 3 202 0
238072030 darshanjan-entrepreneur B Dec. 19, 2023, 8:08 p.m. OK Java 21 TESTS 3 249 0
238077987 goalboy B Dec. 19, 2023, 10:06 p.m. OK Java 21 TESTS 3 249 409600
238086047 marcuschau0 B Dec. 20, 2023, 2:14 a.m. OK Java 21 TESTS 3 405 0
238085742 shahil3believes B Dec. 20, 2023, 2:06 a.m. OK Java 21 TESTS 3 421 204800
238055053 prajyot28 B Dec. 19, 2023, 5:20 p.m. OK Java 21 TESTS 3 452 614400
238070123 prash23 B Dec. 19, 2023, 7:42 p.m. OK Java 21 TESTS 3 467 0
238064527 rivaldo0608 B Dec. 19, 2023, 6:35 p.m. OK Java 21 TESTS 3 467 204800
238050090 roopakpanjala B Dec. 19, 2023, 5:02 p.m. OK Java 21 TESTS 3 467 614400
238047149 Bill35 B Dec. 19, 2023, 4:55 p.m. OK Java 8 TESTS 3 108 0
238055404 uday0904 B Dec. 19, 2023, 5:22 p.m. OK Java 8 TESTS 3 109 0
238059132 American_Eagle B Dec. 19, 2023, 5:47 p.m. OK Java 8 TESTS 3 124 0
238096587 xiaoxiao_zzZ B Dec. 20, 2023, 5:11 a.m. OK Java 8 TESTS 3 155 0
238070631 Sumitsingh7 B Dec. 19, 2023, 7:49 p.m. OK Java 8 TESTS 3 233 7372800
238093835 efti23 B Dec. 20, 2023, 4:32 a.m. OK Java 8 TESTS 3 249 0
238097427 wuhu_ac B Dec. 20, 2023, 5:22 a.m. OK Java 8 TESTS 3 280 0
238054033 ravi_prakash29 B Dec. 19, 2023, 5:14 p.m. OK Java 8 TESTS 3 280 0
238053469 nvijaysimhareddy B Dec. 19, 2023, 5:12 p.m. OK Java 8 TESTS 3 280 0
238074551 Problemsolver20 B Dec. 19, 2023, 8:49 p.m. OK Java 8 TESTS 3 295 0
238063626 utikeev B Dec. 19, 2023, 6:26 p.m. OK Kotlin 1.9 TESTS 3 514 11878400
238054255 AL3XA1234567283 B Dec. 19, 2023, 5:16 p.m. OK MS C++ 2017 TESTS 3 31 0
238048472 Almatus1 B Dec. 19, 2023, 4:58 p.m. OK MS C++ 2017 TESTS 3 31 0
238091712 FONGLI B Dec. 20, 2023, 4:01 a.m. OK MS C++ 2017 TESTS 3 46 0
238086328 ShadowDrunk B Dec. 20, 2023, 2:20 a.m. OK MS C++ 2017 TESTS 3 46 0
238047693 pijamassolemnes B Dec. 19, 2023, 4:57 p.m. OK MS C++ 2017 TESTS 3 46 0
238095681 Akarshit_Trivedi B Dec. 20, 2023, 5 a.m. OK MS C++ 2017 TESTS 3 46 307200
238064442 0xROoT B Dec. 19, 2023, 6:35 p.m. OK PyPy 3 TESTS 3 139 3174400
238060865 porker2008 B Dec. 19, 2023, 6:02 p.m. OK PyPy 3 TESTS 3 139 3276800
238092636 lisashi B Dec. 20, 2023, 4:15 a.m. OK PyPy 3 TESTS 3 155 2867200
238082641 chbayah-sudo B Dec. 20, 2023, 12:44 a.m. OK PyPy 3 TESTS 3 155 3174400
238048174 PARMEZAN B Dec. 19, 2023, 4:58 p.m. OK PyPy 3 TESTS 3 155 3276800
238088881 Vaishnavi_054 B Dec. 20, 2023, 3:14 a.m. OK PyPy 3 TESTS 3 155 3379200
238052711 thrishavidala B Dec. 19, 2023, 5:08 p.m. OK PyPy 3 TESTS 3 170 4096000
238062684 brimstone B Dec. 19, 2023, 6:17 p.m. OK PyPy 3 TESTS 3 171 3379200
238078138 Amireza B Dec. 19, 2023, 10:10 p.m. OK PyPy 3 TESTS 3 187 5939200
238049661 CMRIT25_21r01a66b1 B Dec. 19, 2023, 5:01 p.m. OK PyPy 3 TESTS 3 218 5632000
238092841 klu_2100031928 B Dec. 20, 2023, 4:17 a.m. OK PyPy 3-64 TESTS 3 62 3788800
238092749 aviral311 B Dec. 20, 2023, 4:16 a.m. OK PyPy 3-64 TESTS 3 62 3788800
238086908 Bam25 B Dec. 20, 2023, 2:33 a.m. OK PyPy 3-64 TESTS 3 77 2150400
238083311 dagmat B Dec. 20, 2023, 1:03 a.m. OK PyPy 3-64 TESTS 3 77 3481600
238071719 anaghninja432 B Dec. 19, 2023, 8:04 p.m. OK PyPy 3-64 TESTS 3 77 5939200
238066002 daniil.gerchik B Dec. 19, 2023, 6:52 p.m. OK PyPy 3-64 TESTS 3 77 6553600
238060854 Mustela_Erminea B Dec. 19, 2023, 6:02 p.m. OK PyPy 3-64 TESTS 3 93 6246400
238075821 Jayg000e B Dec. 19, 2023, 9:14 p.m. OK PyPy 3-64 TESTS 3 93 6758400
238053128 Mohamed_Hamed B Dec. 19, 2023, 5:10 p.m. OK PyPy 3-64 TESTS 3 93 6963200
238085158 gardengnome B Dec. 20, 2023, 1:52 a.m. OK PyPy 3-64 TESTS 3 93 8192000
238060867 ashw1nr B Dec. 19, 2023, 6:02 p.m. OK Python 3 TESTS 3 31 0
238059574 LuFeGu B Dec. 19, 2023, 5:50 p.m. OK Python 3 TESTS 3 31 0
238087326 timekeeper B Dec. 20, 2023, 2:41 a.m. OK Python 3 TESTS 3 46 0
238091403 mythribala B Dec. 20, 2023, 3:56 a.m. OK Python 3 TESTS 3 61 0
238048229 CMRIT25_21R01A0440 B Dec. 19, 2023, 4:58 p.m. OK Python 3 TESTS 3 61 0
238098959 devjain1028 B Dec. 20, 2023, 5:40 a.m. OK Python 3 TESTS 3 62 0
238081981 drew_jin B Dec. 20, 2023, 12:20 a.m. OK Python 3 TESTS 3 62 0
238072566 aastha_ B Dec. 19, 2023, 8:17 p.m. OK Python 3 TESTS 3 62 0
238060276 Ratery B Dec. 19, 2023, 5:57 p.m. OK Python 3 TESTS 3 62 0
238054632 MdNazmulHossain B Dec. 19, 2023, 5:18 p.m. OK Python 3 TESTS 3 62 0
238094979 0x81 B Dec. 20, 2023, 4:50 a.m. OK Ruby 3 TESTS 3 436 1126400
238065015 liut B Dec. 19, 2023, 6:41 p.m. OK Rust 2021 TESTS 3 0 0
238052219 Rajveer_100 B Dec. 19, 2023, 5:07 p.m. OK Rust 2021 TESTS 3 0 0
238088822 QuakeWang B Dec. 20, 2023, 3:13 a.m. OK Rust 2021 TESTS 3 31 0

remove filters

Back to search problems