Codeforces Round 578 (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
1200 Codeforces Round 578 (Div. 2) FINISHED False 7200 171912287 Aug. 11, 2019, 12:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 20578 ) A Hotelier PROGRAMMING brute force data structures implementation 1000

B"Amugae has a hotel consisting of 10 rooms. The rooms are numbered from 0 to 9 from left to right. The hotel has two entrances -- one from the left end, and another from the right end. When a customer arrives to the hotel through the left entrance, they are assigned to an empty room closest to the left entrance. Similarly, when a customer arrives at the hotel through the right entrance, they are assigned to an empty room closest to the right entrance. One day, Amugae lost the room assignment list. Thankfully Amugae's memory is perfect, and he remembers all of the customers: when a customer arrived, from which entrance, and when they left the hotel. Initially the hotel was empty. Write a program that recovers the room assignment list from Amugae's memory. The first line consists of an integer n ( 1 <= n <= 10^5 ), the number of events in Amugae's memory. The second line consists of a string of length n describing the events in chronological order. Each character represents: It is guaranteed that there is at least one empty room when a customer arrives, and there is a customer in the room x when x ( 0 , 1 , ..., 9 ) is given. Also, all the rooms are initially empty. In the only line, output the hotel room's assignment status, from room 0 to room 9 . Represent an empty room as '0', and an occupied room as '1', without spaces. In the first example, hotel room's assignment status after each action is as follows. So after all, hotel room's final assignment status is 1010000011. In the second example, hotel room's assignment status after each action is as follows. So after all, hotel room's final assignment status is 1100000010. "...

Tutorials

Codeforces Round #578 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
58576880 rr_ A Aug. 11, 2019, 12:39 p.m. OK D TESTS 51 31 4198400 1000
58577976 iica A Aug. 11, 2019, 12:41 p.m. OK D TESTS 51 31 4300800 1000
58577953 daut-dlang A Aug. 11, 2019, 12:41 p.m. OK D TESTS 51 46 4198400 1000
58585883 Nartov_dima A Aug. 11, 2019, 12:56 p.m. OK Delphi TESTS 51 46 307200 1000
58578290 ruban A Aug. 11, 2019, 12:41 p.m. OK Delphi TESTS 51 46 4300800 1000
58585931 naranja011223 A Aug. 11, 2019, 12:56 p.m. OK FPC TESTS 51 31 0 1000
58587371 hengxin11111jy A Aug. 11, 2019, 12:59 p.m. OK FPC TESTS 51 31 102400 1000
58579276 HQT2003 A Aug. 11, 2019, 12:43 p.m. OK FPC TESTS 51 31 307200 1000
58581057 bao-gpmn A Aug. 11, 2019, 12:46 p.m. OK FPC TESTS 51 31 307200 1000
58579580 giahung.nguyentrong A Aug. 11, 2019, 12:44 p.m. OK FPC TESTS 51 31 307200 1000
58591380 hthuy1623 A Aug. 11, 2019, 1:07 p.m. OK FPC TESTS 51 31 614400 1000
58582587 omlgg A Aug. 11, 2019, 12:50 p.m. OK FPC TESTS 51 31 614400 1000
58581657 2548631 A Aug. 11, 2019, 12:48 p.m. OK FPC TESTS 51 31 614400 1000
58581429 TranKha A Aug. 11, 2019, 12:47 p.m. OK FPC TESTS 51 31 614400 1000
58578828 LaSWeeG A Aug. 11, 2019, 12:42 p.m. OK FPC TESTS 51 31 614400 1000
58584172 BD_MCMai A Aug. 11, 2019, 12:53 p.m. OK GNU C11 TESTS 51 30 0 1000
58580193 ted071024 A Aug. 11, 2019, 12:45 p.m. OK GNU C11 TESTS 51 31 0 1000
58590390 Y5Yash A Aug. 11, 2019, 1:05 p.m. OK GNU C11 TESTS 51 31 0 1000
58597568 FunnySage A Aug. 11, 2019, 1:23 p.m. OK GNU C11 TESTS 51 31 0 1000
58579543 NetravatPendsey A Aug. 11, 2019, 12:43 p.m. OK GNU C11 TESTS 51 31 0 1000
58589644 real_zer0 A Aug. 11, 2019, 1:04 p.m. OK GNU C11 TESTS 51 31 0 1000
58614020 Muditrocks13 A Aug. 11, 2019, 2:19 p.m. OK GNU C11 TESTS 51 31 102400 1000
58608891 Emon_Roy_Bappy A Aug. 11, 2019, 1:59 p.m. OK GNU C11 TESTS 51 31 102400 1000
58610914 Shakib_SRK A Aug. 11, 2019, 2:07 p.m. OK GNU C11 TESTS 51 31 102400 1000
58612062 Striker22 A Aug. 11, 2019, 2:11 p.m. OK GNU C11 TESTS 51 31 102400 1000
58578826 Xu_Zhiyuan A Aug. 11, 2019, 12:42 p.m. OK GNU C++11 TESTS 51 30 0 1000
58579698 Orange_JuiCE A Aug. 11, 2019, 12:44 p.m. OK GNU C++11 TESTS 51 30 0 1000
58578474 X_o_r A Aug. 11, 2019, 12:41 p.m. OK GNU C++11 TESTS 51 30 0 1000
58577881 Arya_Erin A Aug. 11, 2019, 12:40 p.m. OK GNU C++11 TESTS 51 30 102400 1000
58602980 mading A Aug. 11, 2019, 1:39 p.m. OK GNU C++11 TESTS 51 31 0 1000
58612421 Vicent123 A Aug. 11, 2019, 2:13 p.m. OK GNU C++11 TESTS 51 31 0 1000
58617328 Wonka A Aug. 11, 2019, 2:31 p.m. OK GNU C++11 TESTS 51 31 0 1000
58618465 Shallowshades A Aug. 11, 2019, 2:34 p.m. OK GNU C++11 TESTS 51 31 0 1000
58603598 2018030801044 A Aug. 11, 2019, 1:41 p.m. OK GNU C++11 TESTS 51 31 0 1000
58603074 Mr_Leceue A Aug. 11, 2019, 1:39 p.m. OK GNU C++11 TESTS 51 31 0 1000
58590800 leejseo A Aug. 11, 2019, 1:06 p.m. OK GNU C++14 TESTS 51 15 102400 1000
58576488 toxzi A Aug. 11, 2019, 12:38 p.m. OK GNU C++14 TESTS 51 15 307200 1000
58587263 spidy7 A Aug. 11, 2019, 12:59 p.m. OK GNU C++14 TESTS 51 15 307200 1000
58584634 Daria_Kulikova A Aug. 11, 2019, 12:54 p.m. OK GNU C++14 TESTS 51 30 0 1000
58591531 gyunghoe_ A Aug. 11, 2019, 1:08 p.m. OK GNU C++14 TESTS 51 30 0 1000
58582151 18tin_nlqphung A Aug. 11, 2019, 12:49 p.m. OK GNU C++14 TESTS 51 30 0 1000
58578639 jiwansandhu A Aug. 11, 2019, 12:42 p.m. OK GNU C++14 TESTS 51 30 0 1000
58577166 AgentFury A Aug. 11, 2019, 12:39 p.m. OK GNU C++14 TESTS 51 30 0 1000
58576672 oleg76 A Aug. 11, 2019, 12:38 p.m. OK GNU C++14 TESTS 51 30 0 1000
58582152 ccxl A Aug. 11, 2019, 12:49 p.m. OK GNU C++14 TESTS 51 30 102400 1000
58587519 temp6 A Aug. 11, 2019, 12:59 p.m. OK GNU C++17 TESTS 51 15 0 1000
58576595 ConferenceCall A Aug. 11, 2019, 12:38 p.m. OK GNU C++17 TESTS 51 15 102400 1000
58578997 WaleedEhab_ChelseaFC A Aug. 11, 2019, 12:42 p.m. OK GNU C++17 TESTS 51 30 0 1000
58580068 kkqq A Aug. 11, 2019, 12:45 p.m. OK GNU C++17 TESTS 51 30 0 1000
58580247 PauloMiranda98 A Aug. 11, 2019, 12:45 p.m. OK GNU C++17 TESTS 51 30 0 1000
58582084 JLU_GLHF A Aug. 11, 2019, 12:49 p.m. OK GNU C++17 TESTS 51 30 0 1000
58592682 ikolcov A Aug. 11, 2019, 1:10 p.m. OK GNU C++17 TESTS 51 30 0 1000
58577648 arsh99 A Aug. 11, 2019, 12:40 p.m. OK GNU C++17 TESTS 51 30 0 1000
58578268 Pswami A Aug. 11, 2019, 12:41 p.m. OK GNU C++17 TESTS 51 30 0 1000
58577123 OctoBronze A Aug. 11, 2019, 12:39 p.m. OK GNU C++17 TESTS 51 30 0 1000
58581350 hypo A Aug. 11, 2019, 12:47 p.m. OK Go TESTS 51 31 0 1000
58585722 porksteak A Aug. 11, 2019, 12:56 p.m. OK Go TESTS 51 311 0 1000
58595106 bamzy A Aug. 11, 2019, 1:17 p.m. OK Haskell TESTS 51 62 3174400 1000
58579555 mithunmk93 A Aug. 11, 2019, 12:43 p.m. OK Java 8 TESTS 51 109 0 1000
58585224 Knecht A Aug. 11, 2019, 12:55 p.m. OK Java 8 TESTS 51 109 0 1000
58580706 BerserkVl A Aug. 11, 2019, 12:46 p.m. OK Java 8 TESTS 51 109 0 1000
58577705 RitvikMittal A Aug. 11, 2019, 12:40 p.m. OK Java 8 TESTS 51 109 0 1000
58577575 Witless_Deer A Aug. 11, 2019, 12:40 p.m. OK Java 8 TESTS 51 109 0 1000
58576804 xodiac A Aug. 11, 2019, 12:38 p.m. OK Java 8 TESTS 51 109 0 1000
58606604 ahmed_hany232 A Aug. 11, 2019, 1:51 p.m. OK Java 8 TESTS 51 124 0 1000
58605856 cyberAce A Aug. 11, 2019, 1:48 p.m. OK Java 8 TESTS 51 124 0 1000
58594188 parthbhope1 A Aug. 11, 2019, 1:14 p.m. OK Java 8 TESTS 51 124 0 1000
58593380 dharmaraj_5610 A Aug. 11, 2019, 1:12 p.m. OK Java 8 TESTS 51 124 0 1000
58577490 mongolrgata A Aug. 11, 2019, 12:40 p.m. OK JavaScript TESTS 51 46 204800 1000
58578852 mastrayer A Aug. 11, 2019, 12:42 p.m. OK JavaScript TESTS 51 62 0 1000
58582196 amirrr A Aug. 11, 2019, 12:49 p.m. OK Kotlin TESTS 51 124 0 1000
58579930 andrew.albert A Aug. 11, 2019, 12:44 p.m. OK Kotlin TESTS 51 171 0 1000
58580928 jonlik2 A Aug. 11, 2019, 12:46 p.m. OK Kotlin TESTS 51 171 819200 1000
58579628 wbars A Aug. 11, 2019, 12:44 p.m. OK Kotlin TESTS 51 187 512000 1000
58576776 Spheniscine A Aug. 11, 2019, 12:38 p.m. OK Kotlin TESTS 51 202 921600 1000
58581471 amit1509kumar A Aug. 11, 2019, 12:47 p.m. OK Mono C# TESTS 51 61 307200 1000
58596145 Korosh_ A Aug. 11, 2019, 1:19 p.m. OK Mono C# TESTS 51 62 307200 1000
58590046 _DKS_ A Aug. 11, 2019, 1:05 p.m. OK Mono C# TESTS 51 62 307200 1000
58578926 boomx A Aug. 11, 2019, 12:42 p.m. OK Mono C# TESTS 51 62 307200 1000
58577651 kuuso A Aug. 11, 2019, 12:40 p.m. OK Mono C# TESTS 51 62 307200 1000
58577471 keymoon A Aug. 11, 2019, 12:40 p.m. OK Mono C# TESTS 51 62 307200 1000
58576536 omikad A Aug. 11, 2019, 12:38 p.m. OK Mono C# TESTS 51 62 307200 1000
58608818 Ruban_Denic A Aug. 11, 2019, 1:59 p.m. OK Mono C# TESTS 51 62 1126400 1000
58597487 NeoFortes A Aug. 11, 2019, 1:23 p.m. OK Mono C# TESTS 51 62 1126400 1000
58608414 MWagihM A Aug. 11, 2019, 1:57 p.m. OK Mono C# TESTS 51 62 1126400 1000
58577385 kevin19984 A Aug. 11, 2019, 12:40 p.m. OK MS C++ TESTS 51 31 102400 1000
58586239 The-RedArrow A Aug. 11, 2019, 12:57 p.m. OK MS C++ TESTS 51 31 102400 1000
58586896 zxjls A Aug. 11, 2019, 12:58 p.m. OK MS C++ TESTS 51 31 102400 1000
58578764 CalCuUuS A Aug. 11, 2019, 12:42 p.m. OK MS C++ TESTS 51 31 102400 1000
58580176 TitorDong2333 A Aug. 11, 2019, 12:45 p.m. OK MS C++ TESTS 51 31 102400 1000
58581669 lsroi A Aug. 11, 2019, 12:48 p.m. OK MS C++ TESTS 51 31 102400 1000
58584064 qkm A Aug. 11, 2019, 12:53 p.m. OK MS C++ TESTS 51 31 102400 1000
58586160 coword A Aug. 11, 2019, 12:57 p.m. OK MS C++ TESTS 51 31 102400 1000
58586472 Azadeh A Aug. 11, 2019, 12:57 p.m. OK MS C++ TESTS 51 31 307200 1000
58577995 boa A Aug. 11, 2019, 12:41 p.m. OK MS C++ TESTS 51 31 307200 1000
58581175 succ1815406055 A Aug. 11, 2019, 12:47 p.m. OK MS C++ 2017 TESTS 51 31 102400 1000
58578663 2462478392 A Aug. 11, 2019, 12:42 p.m. OK MS C++ 2017 TESTS 51 31 102400 1000
58588078 persisdent A Aug. 11, 2019, 1 p.m. OK MS C++ 2017 TESTS 51 31 102400 1000
58587480 ritikagoyal372 A Aug. 11, 2019, 12:59 p.m. OK MS C++ 2017 TESTS 51 31 102400 1000
58585382 eyesofgod123 A Aug. 11, 2019, 12:55 p.m. OK MS C++ 2017 TESTS 51 31 102400 1000
58584325 L2279296959 A Aug. 11, 2019, 12:53 p.m. OK MS C++ 2017 TESTS 51 31 102400 1000
58583863 ZSTU-2018329621261 A Aug. 11, 2019, 12:52 p.m. OK MS C++ 2017 TESTS 51 31 102400 1000
58581920 zhigu A Aug. 11, 2019, 12:48 p.m. OK MS C++ 2017 TESTS 51 31 102400 1000
58581351 YHHxBULIATANIA A Aug. 11, 2019, 12:47 p.m. OK MS C++ 2017 TESTS 51 31 102400 1000
58581215 guoriyue A Aug. 11, 2019, 12:47 p.m. OK MS C++ 2017 TESTS 51 31 102400 1000
58595601 pop-corn A Aug. 11, 2019, 1:18 p.m. OK Node.js TESTS 51 202 2252800 1000
58586516 RatSteel A Aug. 11, 2019, 12:57 p.m. OK PascalABC.NET TESTS 51 217 0 1000
58580919 dymeon A Aug. 11, 2019, 12:46 p.m. OK PascalABC.NET TESTS 51 217 0 1000
58588911 a.nasretdinov A Aug. 11, 2019, 1:02 p.m. OK PascalABC.NET TESTS 51 420 0 1000
58588835 erbolat0311 A Aug. 11, 2019, 1:02 p.m. OK PHP TESTS 51 61 512000 1000
58586203 Yocho A Aug. 11, 2019, 12:57 p.m. OK PyPy 2 TESTS 51 124 921600 1000
58581631 MVP A Aug. 11, 2019, 12:48 p.m. OK PyPy 2 TESTS 51 139 512000 1000
58577599 wunder9l A Aug. 11, 2019, 12:40 p.m. OK PyPy 2 TESTS 51 140 512000 1000
58576855 dukati8 A Aug. 11, 2019, 12:39 p.m. OK PyPy 2 TESTS 51 140 819200 1000
58577558 bcollet A Aug. 11, 2019, 12:40 p.m. OK PyPy 2 TESTS 51 140 921600 1000
58576958 c1729 A Aug. 11, 2019, 12:39 p.m. OK PyPy 2 TESTS 51 140 1126400 1000
58581257 Mukundan314 A Aug. 11, 2019, 12:47 p.m. OK PyPy 2 TESTS 51 140 1331200 1000
58579391 iamprayush A Aug. 11, 2019, 12:43 p.m. OK PyPy 2 TESTS 51 171 2457600 1000
58581848 Soul_Silver A Aug. 11, 2019, 12:48 p.m. OK PyPy 2 TESTS 51 186 7372800 1000
58603926 kpiiitb A Aug. 11, 2019, 1:42 p.m. OK PyPy 2 TESTS 51 202 1740800 1000
58581226 nikeshthapa255 A Aug. 11, 2019, 12:47 p.m. OK PyPy 3 TESTS 51 155 2355200 1000
58576552 Cytusine A Aug. 11, 2019, 12:38 p.m. OK PyPy 3 TESTS 51 155 2457600 1000
58590155 aquavess A Aug. 11, 2019, 1:05 p.m. OK PyPy 3 TESTS 51 155 2560000 1000
58584334 nitiksha A Aug. 11, 2019, 12:53 p.m. OK PyPy 3 TESTS 51 155 2560000 1000
58577348 PhilTheFish A Aug. 11, 2019, 12:39 p.m. OK PyPy 3 TESTS 51 155 2560000 1000
58596624 Korolyuk A Aug. 11, 2019, 1:20 p.m. OK PyPy 3 TESTS 51 155 2662400 1000
58581990 js24 A Aug. 11, 2019, 12:48 p.m. OK PyPy 3 TESTS 51 155 2764800 1000
58586681 YashShah A Aug. 11, 2019, 12:58 p.m. OK PyPy 3 TESTS 51 155 2764800 1000
58581501 9shiki A Aug. 11, 2019, 12:47 p.m. OK PyPy 3 TESTS 51 155 2764800 1000
58580687 cirpis A Aug. 11, 2019, 12:46 p.m. OK PyPy 3 TESTS 51 155 2764800 1000
58585071 elistark A Aug. 11, 2019, 12:55 p.m. OK Python 2 TESTS 51 233 204800 1000
58577725 jrobsonjr A Aug. 11, 2019, 12:40 p.m. OK Python 2 TESTS 51 233 614400 1000
58577859 shubhankarsharma00 A Aug. 11, 2019, 12:40 p.m. OK Python 2 TESTS 51 249 204800 1000
58582991 alexandrerf A Aug. 11, 2019, 12:50 p.m. OK Python 2 TESTS 51 264 204800 1000
58588856 daniel.carlos A Aug. 11, 2019, 1:02 p.m. OK Python 2 TESTS 51 265 614400 1000
58595478 riteshsomani2211 A Aug. 11, 2019, 1:17 p.m. OK Python 3 TESTS 51 155 307200 1000
58602687 Charlkie A Aug. 11, 2019, 1:38 p.m. OK Python 3 TESTS 51 155 307200 1000
58589203 jungw00 A Aug. 11, 2019, 1:03 p.m. OK Python 3 TESTS 51 155 307200 1000
58588098 agw02010 A Aug. 11, 2019, 1 p.m. OK Python 3 TESTS 51 155 307200 1000
58587827 EA5 A Aug. 11, 2019, 1 p.m. OK Python 3 TESTS 51 155 307200 1000
58583152 ShivY08 A Aug. 11, 2019, 12:51 p.m. OK Python 3 TESTS 51 155 307200 1000
58582150 eugalt A Aug. 11, 2019, 12:49 p.m. OK Python 3 TESTS 51 155 307200 1000
58582078 orazbek A Aug. 11, 2019, 12:49 p.m. OK Python 3 TESTS 51 155 307200 1000
58581117 anushkaaa A Aug. 11, 2019, 12:47 p.m. OK Python 3 TESTS 51 155 307200 1000
58580402 shaikh_ubaid A Aug. 11, 2019, 12:45 p.m. OK Python 3 TESTS 51 155 307200 1000
58578502 Kaidora A Aug. 11, 2019, 12:41 p.m. OK Ruby TESTS 51 124 204800 1000
58595384 funz A Aug. 11, 2019, 1:17 p.m. OK Ruby TESTS 51 140 15462400 1000
58594235 cynic2912 A Aug. 11, 2019, 1:14 p.m. OK Rust TESTS 51 31 409600 1000
58579711 yoshrc A Aug. 11, 2019, 12:44 p.m. OK Rust TESTS 51 31 409600 1000
58580637 terraformer A Aug. 11, 2019, 12:46 p.m. OK Rust TESTS 51 31 819200 1000
58579417 manta1130 A Aug. 11, 2019, 12:43 p.m. OK Rust TESTS 51 31 1024000 1000
58579621 macho_uno A Aug. 11, 2019, 12:44 p.m. OK Rust TESTS 51 46 819200 1000
58576887 limed A Aug. 11, 2019, 12:39 p.m. OK Scala TESTS 51 467 0 1000
58580512 smas A Aug. 11, 2019, 12:45 p.m. OK Scala TESTS 51 483 0 1000

remove filters

Back to search problems