Codeforces Round 546 (Div. 2)

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
1136 Codeforces Round 546 (Div. 2) FINISHED False 7200 185117087 March 11, 2019, 4:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 11805 ) B Nastya Is Playing Computer Games PROGRAMMING constructive algorithms math 1000

B"Finished her homework, Nastya decided to play computer games. Passing levels one by one, Nastya eventually faced a problem. Her mission is to leave a room, where a lot of monsters live, as quickly as possible. There are n manholes in the room which are situated on one line, but, unfortunately, all the manholes are closed, and there is one stone on every manhole. There is exactly one coin under every manhole, and to win the game Nastya should pick all the coins. Initially Nastya stands near the k -th manhole from the left. She is thinking what to do. In one turn, Nastya can do one of the following: Nastya can leave the room when she picks all the coins. Monsters are everywhere, so you need to compute the minimum number of moves Nastya has to make to pick all the coins. Note one time more that Nastya can open a manhole only when there are no stones onto it. The first and only line contains two integers n and k , separated by space ( 2 <= q n <= q 5000 , 1 <= q k <= q n ) -- the number of manholes and the index of manhole from the left, near which Nastya stays initially. Initially there is exactly one stone near each of the n manholes. Print a single integer -- minimum number of moves which lead Nastya to pick all the coins. Let's consider the example where n = 2 , k = 2 . Nastya should play as follows: So, 6 moves are required to win. "...

Tutorials

Editorial of Round #546(Div.2)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
51817378 GravitationalWaves B March 25, 2019, 10:03 a.m. OK Clang++17 Diagnostics TESTS 79 46 0 1000
52076173 vjudge4 B March 31, 2019, 10:08 a.m. OK Clang++17 Diagnostics TESTS 79 46 0 1000
51232289 orventro B March 12, 2019, 4:53 p.m. OK Clang++17 Diagnostics TESTS 79 46 0 1000
55272760 xcodevn B June 7, 2019, 5:16 p.m. OK D TESTS 79 31 0 1000
51184508 PAG B March 11, 2019, 5:22 p.m. OK FPC TESTS 79 31 0 1000
51392684 YMJcvjk B March 17, 2019, 1:21 a.m. OK FPC TESTS 79 31 102400 1000
51181648 PhuongPeu B March 11, 2019, 5:09 p.m. OK FPC TESTS 79 31 102400 1000
52383813 TShT B April 6, 2019, 11:16 a.m. OK FPC TESTS 79 31 204800 1000
52141113 chaorenhaha B April 1, 2019, 6:47 a.m. OK FPC TESTS 79 31 204800 1000
51622516 LaSWeeG B March 21, 2019, 3:04 p.m. OK FPC TESTS 79 31 307200 1000
51445074 makar_1212_J_C B March 18, 2019, 12:07 p.m. OK FPC TESTS 79 31 307200 1000
51366760 luogu_bot4 B March 16, 2019, 10:02 a.m. OK FPC TESTS 79 31 307200 1000
52805864 omlgg B April 16, 2019, 4:23 a.m. OK FPC TESTS 79 46 102400 1000
63119857 dhruvil04 B Oct. 22, 2019, 10:50 a.m. OK GNU C11 TESTS 79 31 0 1000
65339847 Invisible_Shadow B Nov. 19, 2019, 10:31 a.m. OK GNU C11 TESTS 79 31 0 1000
55307851 kaiboy B June 8, 2019, 3:38 p.m. OK GNU C11 TESTS 79 31 0 1000
55325262 BgAlina B June 9, 2019, 7:39 a.m. OK GNU C11 TESTS 79 31 0 1000
55393785 1816020205 B June 10, 2019, 10:55 a.m. OK GNU C11 TESTS 79 31 0 1000
56860497 You_Know_Who B July 11, 2019, 9:44 p.m. OK GNU C11 TESTS 79 31 0 1000
60188532 ratul_supertramp B Sept. 6, 2019, 7:49 p.m. OK GNU C11 TESTS 79 31 0 1000
62415304 DevJewel B Oct. 12, 2019, 11:27 a.m. OK GNU C11 TESTS 79 31 0 1000
62630839 assaflu B Oct. 15, 2019, 3:23 p.m. OK GNU C11 TESTS 79 31 0 1000
66260303 yigezhe B Dec. 4, 2019, 8:05 a.m. OK GNU C11 TESTS 79 31 0 1000
51199025 XTAIL B March 11, 2019, 9:07 p.m. OK GNU C++11 TESTS 79 30 0 1000
54550577 SoiMae B May 24, 2019, 8:52 a.m. OK GNU C++11 TESTS 79 30 0 1000
68152004 minhquaningenious B Jan. 4, 2020, 7:18 a.m. OK GNU C++11 TESTS 79 31 0 1000
69915331 carbon2 B Jan. 31, 2020, 4:39 p.m. OK GNU C++11 TESTS 79 31 0 1000
69588815 akkipoonia B Jan. 26, 2020, 9:18 p.m. OK GNU C++11 TESTS 79 31 0 1000
69584054 samiunniloy B Jan. 26, 2020, 6:37 p.m. OK GNU C++11 TESTS 79 31 0 1000
69434856 luogu_bot3 B Jan. 23, 2020, 6:35 p.m. OK GNU C++11 TESTS 79 31 0 1000
68880916 zhan1 B Jan. 15, 2020, 6:46 p.m. OK GNU C++11 TESTS 79 31 0 1000
68611942 ChiNhan B Jan. 11, 2020, 4:02 p.m. OK GNU C++11 TESTS 79 31 0 1000
68570137 lzq41 B Jan. 11, 2020, 1:33 a.m. OK GNU C++11 TESTS 79 31 0 1000
51298032 Sanchay_Goel B March 14, 2019, 1:11 p.m. OK GNU C++14 TESTS 79 15 0 1000
51668216 srishti11 B March 22, 2019, 7:02 a.m. OK GNU C++14 TESTS 79 15 0 1000
53599305 Hoping B May 1, 2019, 6:40 a.m. OK GNU C++14 TESTS 79 15 0 1000
51242535 Belal_CSEIU B March 13, 2019, 12:23 a.m. OK GNU C++14 TESTS 79 15 5632000 1000
65766733 Bogenbaev.n B Nov. 26, 2019, 6:19 p.m. OK GNU C++14 TESTS 79 30 0 1000
62402390 Yamazuku B Oct. 12, 2019, 7:49 a.m. OK GNU C++14 TESTS 79 30 0 1000
58085521 tourist9 B July 31, 2019, 3:25 p.m. OK GNU C++14 TESTS 79 30 0 1000
57847480 aagarwal1 B July 27, 2019, 11:47 a.m. OK GNU C++14 TESTS 79 30 0 1000
56814662 rennanrocha B July 10, 2019, 6:21 p.m. OK GNU C++14 TESTS 79 30 0 1000
55717118 starc_208 B June 18, 2019, 1:17 p.m. OK GNU C++14 TESTS 79 30 0 1000
57713432 mozhu621 B July 25, 2019, 1:29 a.m. OK GNU C++17 TESTS 79 15 0 1000
51313973 Noshin_1703086 B March 14, 2019, 9:37 p.m. OK GNU C++17 TESTS 79 15 0 1000
54962823 Hpnes B June 2, 2019, 4:51 a.m. OK GNU C++17 TESTS 79 30 0 1000
54987280 mohammadrobot B June 2, 2019, 4:24 p.m. OK GNU C++17 TESTS 79 30 0 1000
55094592 mohit1O98 B June 4, 2019, 4:23 p.m. OK GNU C++17 TESTS 79 30 0 1000
55239173 mr.adisbek B June 7, 2019, 9:57 a.m. OK GNU C++17 TESTS 79 30 0 1000
55415293 nhatabc123 B June 11, 2019, 1:30 a.m. OK GNU C++17 TESTS 79 30 0 1000
56787599 trycod3 B July 10, 2019, 9:06 a.m. OK GNU C++17 TESTS 79 30 0 1000
65525022 dbelov B Nov. 22, 2019, 10:02 a.m. OK GNU C++17 TESTS 79 30 0 1000
65937656 leap_of_faith B Nov. 29, 2019, 3:37 a.m. OK GNU C++17 TESTS 79 30 0 1000
52305798 maloy B April 4, 2019, 12:02 p.m. OK Go TESTS 79 31 0 1000
51393017 msg555 B March 17, 2019, 1:49 a.m. OK Go TESTS 79 31 0 1000
51324735 2008061626 B March 15, 2019, 9:09 a.m. OK Go TESTS 79 31 0 1000
51316317 cs_office B March 15, 2019, 12:44 a.m. OK Go TESTS 79 31 0 1000
61389177 sighduck B Sept. 27, 2019, 8:28 p.m. OK Go TESTS 79 46 0 1000
51188267 liligga B March 11, 2019, 5:44 p.m. OK Go TESTS 79 46 0 1000
51179957 suryanshv23 B March 11, 2019, 5:02 p.m. OK Go TESTS 79 46 0 1000
51242270 Setako B March 12, 2019, 11:55 p.m. OK Haskell TESTS 79 31 102400 1000
69076101 Justcodeit22 B Jan. 19, 2020, 3:15 a.m. OK Java 8 TESTS 79 109 0 1000
65724473 ijxjdjd B Nov. 25, 2019, 9:26 p.m. OK Java 8 TESTS 79 109 0 1000
59583340 arun319 B Aug. 27, 2019, 4:57 p.m. OK Java 8 TESTS 79 109 0 1000
59383499 CodAR B Aug. 24, 2019, 5:04 a.m. OK Java 8 TESTS 79 109 0 1000
58375995 LOBsTerr B Aug. 6, 2019, 8:17 a.m. OK Java 8 TESTS 79 109 0 1000
56293538 Sleep B June 30, 2019, 3:46 a.m. OK Java 8 TESTS 79 109 0 1000
52498829 rathi062 B April 8, 2019, 3:01 p.m. OK Java 8 TESTS 79 109 0 1000
52326271 xadmksh B April 5, 2019, 12:56 a.m. OK Java 8 TESTS 79 109 0 1000
52245048 vishwajeetk653 B April 2, 2019, 6:35 p.m. OK Java 8 TESTS 79 109 0 1000
51975788 Whiplash99 B March 29, 2019, 2:15 p.m. OK Java 8 TESTS 79 109 0 1000
62630960 madmonl B Oct. 15, 2019, 3:25 p.m. OK JavaScript TESTS 79 31 1024000 1000
51392581 Harolinch B March 17, 2019, 1:14 a.m. OK JavaScript TESTS 79 31 1024000 1000
51263140 sharepoLOVEDDD B March 13, 2019, 2:13 p.m. OK JavaScript TESTS 79 31 1024000 1000
51185233 yoga1290 B March 11, 2019, 5:26 p.m. OK JavaScript TESTS 79 31 1024000 1000
52956219 Faridoss B April 18, 2019, 1:51 p.m. OK JavaScript TESTS 79 46 0 1000
51188190 lisynok B March 11, 2019, 5:44 p.m. OK JavaScript TESTS 79 46 0 1000
53484033 I.A.K.O.V B April 29, 2019, 12:37 a.m. OK Kotlin TESTS 79 109 0 1000
59646899 Spheniscine B Aug. 29, 2019, 6:18 a.m. OK Kotlin TESTS 79 140 102400 1000
51257262 turbazik B March 13, 2019, 11:50 a.m. OK Kotlin TESTS 79 140 102400 1000
52022991 wbars B March 30, 2019, 1:35 p.m. OK Kotlin TESTS 79 155 0 1000
51182128 spookywooky B March 11, 2019, 5:11 p.m. OK Kotlin TESTS 79 155 0 1000
52021404 amit1509kumar B March 30, 2019, 12:55 p.m. OK Mono C# TESTS 79 46 0 1000
51290177 TRR B March 14, 2019, 9:42 a.m. OK Mono C# TESTS 79 46 0 1000
51745527 nastya1199 B March 23, 2019, 7:30 a.m. OK Mono C# TESTS 79 46 0 1000
51967011 MinProph B March 29, 2019, 10:31 a.m. OK Mono C# TESTS 79 46 0 1000
51396814 thetansquared B March 17, 2019, 5:04 a.m. OK Mono C# TESTS 79 61 0 1000
60073946 ansergeyg B Sept. 5, 2019, 12:01 p.m. OK Mono C# TESTS 79 61 0 1000
51296416 lewasupaman SaurumanS LapsleyJuno B March 14, 2019, 12:37 p.m. OK Mono C# TESTS 79 61 0 1000
51268346 nemars B March 13, 2019, 4:43 p.m. OK Mono C# TESTS 79 61 0 1000
51182457 igorrrain B March 11, 2019, 5:13 p.m. OK Mono C# TESTS 79 61 0 1000
54783946 camypaper B May 29, 2019, 1:57 a.m. OK Mono C# TESTS 79 62 0 1000
51779581 vjudge3 B March 24, 2019, 3:14 a.m. OK MS C++ TESTS 79 30 0 1000
65028877 vjudge3 B Nov. 15, 2019, 8:59 a.m. OK MS C++ TESTS 79 31 0 1000
65525859 vjudge2 B Nov. 22, 2019, 10:21 a.m. OK MS C++ TESTS 79 31 0 1000
60058806 DM1 B Sept. 5, 2019, 5:53 a.m. OK MS C++ TESTS 79 31 0 1000
60483177 vjudge4 B Sept. 13, 2019, 11:28 a.m. OK MS C++ TESTS 79 31 0 1000
60483273 vjudge2 B Sept. 13, 2019, 11:30 a.m. OK MS C++ TESTS 79 31 0 1000
60483942 vjudge5 B Sept. 13, 2019, 11:49 a.m. OK MS C++ TESTS 79 31 0 1000
63654854 mmmmcr B Oct. 28, 2019, 12:24 p.m. OK MS C++ TESTS 79 31 0 1000
57883342 vjudge5 B July 28, 2019, 8:47 a.m. OK MS C++ TESTS 79 31 0 1000
65027448 vjudge5 B Nov. 15, 2019, 8:22 a.m. OK MS C++ TESTS 79 31 0 1000
68374100 Mayar_Imad B Jan. 7, 2020, 6:56 p.m. OK MS C++ 2017 TESTS 79 31 0 1000
62852414 Mr.semicolon B Oct. 18, 2019, 7:54 a.m. OK MS C++ 2017 TESTS 79 31 0 1000
62250672 Moen1578 B Oct. 10, 2019, 9:10 a.m. OK MS C++ 2017 TESTS 79 31 0 1000
61978185 coder_pikachu B Oct. 6, 2019, 11:11 a.m. OK MS C++ 2017 TESTS 79 31 0 1000
59555580 catplatypus B Aug. 27, 2019, 6:01 a.m. OK MS C++ 2017 TESTS 79 31 0 1000
54999182 Lordxx B June 3, 2019, 3:04 a.m. OK MS C++ 2017 TESTS 79 31 0 1000
54481020 Mad112233 B May 22, 2019, 11:03 a.m. OK MS C++ 2017 TESTS 79 31 0 1000
53693043 hankJIN B May 3, 2019, 6:11 a.m. OK MS C++ 2017 TESTS 79 31 0 1000
53692843 harm B May 3, 2019, 6:02 a.m. OK MS C++ 2017 TESTS 79 31 0 1000
53405926 vyfy B April 27, 2019, 10:48 a.m. OK MS C++ 2017 TESTS 79 31 0 1000
52239794 sash0 B April 2, 2019, 3:19 p.m. OK Ocaml TESTS 79 31 0 1000
51233989 mostyka B March 12, 2019, 5:39 p.m. OK PascalABC.NET TESTS 79 187 0 1000
51192621 fanos B March 11, 2019, 6:15 p.m. OK PascalABC.NET TESTS 79 202 0 1000
56464131 Gimber B July 3, 2019, 8:09 a.m. OK PascalABC.NET TESTS 79 233 0 1000
51437047 gmusya B March 18, 2019, 7:15 a.m. OK PascalABC.NET TESTS 79 296 102400 1000
51475128 GolovkoDaniil2005 B March 19, 2019, 8:56 a.m. OK PascalABC.NET TESTS 79 296 307200 1000
51234933 mm944 B March 12, 2019, 6:07 p.m. OK PascalABC.NET TESTS 79 311 102400 1000
51181879 TERESHI B March 11, 2019, 5:10 p.m. OK PascalABC.NET TESTS 79 327 102400 1000
51188763 denis_g_142 B March 11, 2019, 5:48 p.m. OK PascalABC.NET TESTS 79 327 204800 1000
51181761 max.k373 B March 11, 2019, 5:09 p.m. OK PascalABC.NET TESTS 79 342 307200 1000
51556786 UuuuuxxxOwO B March 20, 2019, 5:28 a.m. OK Perl TESTS 79 46 0 1000
51188971 rsFalse B March 11, 2019, 5:49 p.m. OK Perl TESTS 79 46 0 1000
51198771 mayakin B March 11, 2019, 8:59 p.m. OK PHP TESTS 79 46 0 1000
51180416 supachai_pay B March 11, 2019, 5:04 p.m. OK PyPy 2 TESTS 79 124 0 1000
52489476 Mukundan314 B April 8, 2019, 10:56 a.m. OK PyPy 2 TESTS 79 124 0 1000
51893830 sy_chen B March 27, 2019, 10:34 a.m. OK PyPy 2 TESTS 79 124 0 1000
51620999 thenewguy39 B March 21, 2019, 2:19 p.m. OK PyPy 2 TESTS 79 124 0 1000
51425161 masonsbro B March 17, 2019, 6:47 p.m. OK PyPy 2 TESTS 79 124 0 1000
51307843 python_cat B March 14, 2019, 5:43 p.m. OK PyPy 2 TESTS 79 124 0 1000
51276029 Bashuk B March 13, 2019, 9:24 p.m. OK PyPy 2 TESTS 79 124 0 1000
51239830 daniel.carlos B March 12, 2019, 8:53 p.m. OK PyPy 2 TESTS 79 124 0 1000
51868907 lamnguyen98 B March 26, 2019, 4:29 p.m. OK PyPy 2 TESTS 79 139 0 1000
52489323 Mukundan314 B April 8, 2019, 10:53 a.m. OK PyPy 2 TESTS 79 139 0 1000
51998435 tardis39 B March 30, 2019, 4:42 a.m. OK PyPy 3 TESTS 79 124 0 1000
51301943 ConanYu B March 14, 2019, 2:49 p.m. OK PyPy 3 TESTS 79 124 0 1000
51232984 silentknight00 B March 12, 2019, 5:12 p.m. OK PyPy 3 TESTS 79 124 0 1000
51205741 prakhar_lohumi B March 12, 2019, 4:38 a.m. OK PyPy 3 TESTS 79 124 0 1000
51353424 Stephan B March 16, 2019, 1:43 a.m. OK PyPy 3 TESTS 79 139 0 1000
51933373 summereast B March 28, 2019, 11:28 a.m. OK PyPy 3 TESTS 79 139 0 1000
51413435 yellowflash B March 17, 2019, 1 p.m. OK PyPy 3 TESTS 79 139 0 1000
51326703 vovosch B March 15, 2019, 10:06 a.m. OK PyPy 3 TESTS 79 139 0 1000
51266053 CodeMaster B March 13, 2019, 3:35 p.m. OK PyPy 3 TESTS 79 139 0 1000
51251016 Z8N B March 13, 2019, 8:40 a.m. OK PyPy 3 TESTS 79 139 0 1000
52805313 franckmy B April 16, 2019, 3:36 a.m. OK Python 2 TESTS 79 171 0 1000
51966004 kchauhan.yogesh Baba B March 29, 2019, 9:59 a.m. OK Python 2 TESTS 79 171 0 1000
51361236 smunjal96 B March 16, 2019, 7:24 a.m. OK Python 2 TESTS 79 171 0 1000
51307873 DcRazyOne B March 14, 2019, 5:44 p.m. OK Python 2 TESTS 79 171 0 1000
51198984 bertrandovide B March 11, 2019, 9:05 p.m. OK Python 2 TESTS 79 171 0 1000
51232225 Zarzees B March 12, 2019, 4:52 p.m. OK Python 2 TESTS 79 186 0 1000
54275612 kaif_7 B May 17, 2019, 11:01 a.m. OK Python 2 TESTS 79 186 0 1000
51763087 jrobsonjr B March 23, 2019, 2:35 p.m. OK Python 2 TESTS 79 186 0 1000
51597405 danielfleischman B March 20, 2019, 11:39 p.m. OK Python 2 TESTS 79 186 0 1000
51187647 soyluy B March 11, 2019, 5:41 p.m. OK Python 2 TESTS 79 186 0 1000
51380839 kemcopag B March 16, 2019, 4:10 p.m. OK Python 3 TESTS 79 108 0 1000
51269344 EngineerLX B March 13, 2019, 5:12 p.m. OK Python 3 TESTS 79 108 0 1000
53055482 olyakrylo B April 20, 2019, 5:07 p.m. OK Python 3 TESTS 79 108 0 1000
67260341 divyansh_io B Dec. 20, 2019, 2:56 a.m. OK Python 3 TESTS 79 109 0 1000
66140273 Farhan__Sakib B Dec. 1, 2019, 2:04 p.m. OK Python 3 TESTS 79 109 0 1000
61678418 galim665 B Oct. 1, 2019, 10:11 p.m. OK Python 3 TESTS 79 109 0 1000
58857049 zahra.kh B Aug. 15, 2019, 9:46 a.m. OK Python 3 TESTS 79 109 0 1000
57681277 Vasiliy_48 B July 24, 2019, 3:53 p.m. OK Python 3 TESTS 79 109 0 1000
68311487 octocoder B Jan. 6, 2020, 11:23 a.m. OK Python 3 TESTS 79 109 0 1000
67698816 KamilRizatdinov B Dec. 27, 2019, 1:49 p.m. OK Python 3 TESTS 79 109 0 1000
51181303 duanhv B March 11, 2019, 5:07 p.m. OK Ruby TESTS 79 62 0 1000
51179612 macho_uno B March 11, 2019, 5:01 p.m. OK Rust TESTS 79 31 0 1000
52424096 alykov B April 6, 2019, 6:33 p.m. OK Rust TESTS 79 31 204800 1000
51618617 kobae964 B March 21, 2019, 1:25 p.m. OK Rust TESTS 79 31 307200 1000
51786509 kafun B March 24, 2019, 10:52 a.m. OK Rust TESTS 79 46 0 1000
51394160 jimiolugboyega B March 17, 2019, 2:52 a.m. OK Scala TESTS 79 420 0 1000
51246979 .counter B March 13, 2019, 5:58 a.m. OK Scala TESTS 79 451 0 1000
51197065 kakuzu B March 11, 2019, 8:16 p.m. OK Scala TESTS 79 468 0 1000

remove filters

Back to search problems