Educational Codeforces Round 123 (Rated for 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
1644 Educational Codeforces Round 123 (Rated for Div. 2) FINISHED False 7200 91725863 Feb. 22, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 27571 ) A Doors and Keys PROGRAMMING implementation

B"The knight is standing in front of a long and narrow hallway. A princess is waiting at the end of it. In a hallway there are three doors: a red door, a green door and a blue door. The doors are placed one after another, however, possibly in a different order. To proceed to the next door, the knight must first open the door before. Each door can be only opened with a key of the corresponding color. So three keys: a red key, a green key and a blue key -- are also placed somewhere in the hallway. To open the door, the knight should first pick up the key of its color. The knight has a map of the hallway. It can be transcribed as a string, consisting of six characters: Each of these six characters appears in the string exactly once. The knight is standing at the beginning of the hallway -- on the left on the map. Given a map of the hallway, determine if the knight can open all doors and meet the princess at the end of the hallway. The first line contains a single integer t ( 1 <= t <= 720 ) -- the number of testcases. Each testcase consists of a single string. Each character is one of R, G, B (for the doors), r, g, b (for the keys), and each of them appears exactly once. For each testcase, print YES if the knight can open all doors. Otherwise, print NO. In the first testcase, the knight first collects all keys, then opens all doors with them. In the second testcase, there is a red door right in front of the knight, but he doesn't have a key for it. In the third testcase, the key to each door is in front of each respective door, so the knight collects the key and uses it immediately three times. In the fourth testcase, the knight can't open the blue door. "...

Tutorials

100227

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
147356570 rknarayan076 A Feb. 22, 2022, 5:34 p.m. OK Clang++17 Diagnostics TESTS 2 15 0
147377663 wang_ A Feb. 23, 2022, 12:01 a.m. OK Clang++17 Diagnostics TESTS 2 15 0
147358842 aaronnoah1112 A Feb. 22, 2022, 5:57 p.m. OK Clang++17 Diagnostics TESTS 2 30 0
147356061 CoihSiniy A Feb. 22, 2022, 5:29 p.m. OK Clang++17 Diagnostics TESTS 2 30 0
147392668 2001f A Feb. 23, 2022, 5:40 a.m. OK Clang++17 Diagnostics TESTS 2 31 0
147377874 upu295 A Feb. 23, 2022, 12:08 a.m. OK FPC TESTS 2 15 102400
147349980 ringku_ A Feb. 22, 2022, 4:42 p.m. OK GNU C11 TESTS 2 0 0
147367690 prav1512 A Feb. 22, 2022, 7:53 p.m. OK GNU C11 TESTS 2 0 0
147342016 darshan1805 A Feb. 22, 2022, 4:19 p.m. OK GNU C11 TESTS 2 0 0
147357527 oneness A Feb. 22, 2022, 5:43 p.m. OK GNU C11 TESTS 2 0 0
147343400 devansh_5402 A Feb. 22, 2022, 4:23 p.m. OK GNU C11 TESTS 2 0 204800
147359314 laksh123 A Feb. 22, 2022, 6:03 p.m. OK GNU C11 TESTS 2 15 0
147363325 shawn-33 A Feb. 22, 2022, 6:50 p.m. OK GNU C11 TESTS 2 15 0
147384841 drbean A Feb. 23, 2022, 3:28 a.m. OK GNU C11 TESTS 2 15 0
147357526 lmtlmhzn A Feb. 22, 2022, 5:43 p.m. OK GNU C11 TESTS 2 15 0
147356509 Ashish_Varma A Feb. 22, 2022, 5:34 p.m. OK GNU C11 TESTS 2 15 0
147393845 ghostwriter A Feb. 23, 2022, 5:55 a.m. OK GNU C++14 TESTS 2 0 0
147393263 huchenyu A Feb. 23, 2022, 5:48 a.m. OK GNU C++14 TESTS 2 0 0
147393193 typewriter999 A Feb. 23, 2022, 5:47 a.m. OK GNU C++14 TESTS 2 0 0
147393192 wxy2005 A Feb. 23, 2022, 5:47 a.m. OK GNU C++14 TESTS 2 0 0
147392370 suman_061 A Feb. 23, 2022, 5:36 a.m. OK GNU C++14 TESTS 2 0 0
147392341 liumuxin A Feb. 23, 2022, 5:36 a.m. OK GNU C++14 TESTS 2 0 0
147391144 iling A Feb. 23, 2022, 5:20 a.m. OK GNU C++14 TESTS 2 0 0
147391086 88ion A Feb. 23, 2022, 5:19 a.m. OK GNU C++14 TESTS 2 0 0
147390900 tarun_kishore A Feb. 23, 2022, 5:16 a.m. OK GNU C++14 TESTS 2 0 0
147390854 SHIZUKA___ A Feb. 23, 2022, 5:16 a.m. OK GNU C++14 TESTS 2 0 0
147392745 Samiha_Maisha_Jeba A Feb. 23, 2022, 5:41 a.m. OK GNU C++17 TESTS 2 0 0
147392716 Prinon098 A Feb. 23, 2022, 5:41 a.m. OK GNU C++17 TESTS 2 0 0
147392789 EmergentProperties A Feb. 23, 2022, 5:42 a.m. OK GNU C++17 TESTS 2 0 0
147392879 anirudha_dargar A Feb. 23, 2022, 5:43 a.m. OK GNU C++17 TESTS 2 0 0
147392987 smeagol14 A Feb. 23, 2022, 5:44 a.m. OK GNU C++17 TESTS 2 0 0
147393493 L26 A Feb. 23, 2022, 5:50 a.m. OK GNU C++17 TESTS 2 0 0
147393757 HidingInTheBlue A Feb. 23, 2022, 5:54 a.m. OK GNU C++17 TESTS 2 0 0
147393800 piro_noob A Feb. 23, 2022, 5:54 a.m. OK GNU C++17 TESTS 2 0 0
147394014 tranducbo A Feb. 23, 2022, 5:57 a.m. OK GNU C++17 TESTS 2 0 0
147394052 black_horse_ A Feb. 23, 2022, 5:57 a.m. OK GNU C++17 TESTS 2 0 0
147389742 HYLTianMeng A Feb. 23, 2022, 5:01 a.m. OK GNU C++17 (64) TESTS 2 0 0
147394050 yiwu A Feb. 23, 2022, 5:57 a.m. OK GNU C++17 (64) TESTS 2 0 0
147393551 garv_89 A Feb. 23, 2022, 5:51 a.m. OK GNU C++17 (64) TESTS 2 0 0
147393532 Dmi34 A Feb. 23, 2022, 5:51 a.m. OK GNU C++17 (64) TESTS 2 0 0
147392755 imayush7na A Feb. 23, 2022, 5:41 a.m. OK GNU C++17 (64) TESTS 2 0 0
147392183 Chra A Feb. 23, 2022, 5:34 a.m. OK GNU C++17 (64) TESTS 2 0 0
147391680 trouble... A Feb. 23, 2022, 5:27 a.m. OK GNU C++17 (64) TESTS 2 0 0
147391089 vandoor A Feb. 23, 2022, 5:19 a.m. OK GNU C++17 (64) TESTS 2 0 0
147390397 dnazirzhanov05 A Feb. 23, 2022, 5:10 a.m. OK GNU C++17 (64) TESTS 2 0 0
147388026 aps_20 A Feb. 23, 2022, 4:33 a.m. OK GNU C++17 (64) TESTS 2 0 0
147392262 WinterLove A Feb. 23, 2022, 5:35 a.m. OK GNU C++20 (64) TESTS 2 0 0
147391276 nikhilkameena A Feb. 23, 2022, 5:22 a.m. OK GNU C++20 (64) TESTS 2 0 0
147392324 __jarvis A Feb. 23, 2022, 5:36 a.m. OK GNU C++20 (64) TESTS 2 0 0
147392361 iamsahil_2703 A Feb. 23, 2022, 5:36 a.m. OK GNU C++20 (64) TESTS 2 0 0
147392622 nerako A Feb. 23, 2022, 5:40 a.m. OK GNU C++20 (64) TESTS 2 0 0
147393422 rakshith21mohan A Feb. 23, 2022, 5:49 a.m. OK GNU C++20 (64) TESTS 2 0 0
147393507 Pranav.exe A Feb. 23, 2022, 5:51 a.m. OK GNU C++20 (64) TESTS 2 0 0
147393811 AshutoshKJha A Feb. 23, 2022, 5:54 a.m. OK GNU C++20 (64) TESTS 2 0 0
147394101 shaosy A Feb. 23, 2022, 5:58 a.m. OK GNU C++20 (64) TESTS 2 0 0
147394109 Abdullah_Shaaban A Feb. 23, 2022, 5:58 a.m. OK GNU C++20 (64) TESTS 2 0 0
147351773 TomazGomes A Feb. 22, 2022, 4:53 p.m. OK Haskell TESTS 2 15 0
147387360 timrolsh A Feb. 23, 2022, 4:21 a.m. OK Java 11 TESTS 2 140 0
147346780 KareemAshraf_ A Feb. 22, 2022, 4:31 p.m. OK Java 11 TESTS 2 140 0
147377228 Gustavo13 A Feb. 22, 2022, 11:45 p.m. OK Java 11 TESTS 2 155 0
147392707 Krish_Krash A Feb. 23, 2022, 5:41 a.m. OK Java 11 TESTS 2 155 0
147391145 krishnagskr983 A Feb. 23, 2022, 5:20 a.m. OK Java 11 TESTS 2 155 0
147364134 ritviksetty A Feb. 22, 2022, 7:02 p.m. OK Java 11 TESTS 2 155 0
147355513 vijender_8601 A Feb. 22, 2022, 5:24 p.m. OK Java 11 TESTS 2 155 0
147355238 vijender_8601 A Feb. 22, 2022, 5:21 p.m. OK Java 11 TESTS 2 155 0
147354214 tarun_200109 A Feb. 22, 2022, 5:12 p.m. OK Java 11 TESTS 2 155 0
147350455 gsi34 A Feb. 22, 2022, 4:44 p.m. OK Java 11 TESTS 2 155 0
147374795 YahiaSherif A Feb. 22, 2022, 10:20 p.m. OK Java 8 TESTS 2 77 0
147374606 BogoSortIsBest A Feb. 22, 2022, 10:15 p.m. OK Java 8 TESTS 2 77 0
147367848 DEMO23 A Feb. 22, 2022, 7:56 p.m. OK Java 8 TESTS 2 78 0
147341286 zscscsdcd A Feb. 22, 2022, 4:17 p.m. OK Java 8 TESTS 2 92 0
147350324 kocko A Feb. 22, 2022, 4:44 p.m. OK Java 8 TESTS 2 93 0
147362035 SparkX A Feb. 22, 2022, 6:34 p.m. OK Java 8 TESTS 2 93 0
147356535 tishrah A Feb. 22, 2022, 5:34 p.m. OK Java 8 TESTS 2 93 0
147369537 nicolattu A Feb. 22, 2022, 8:24 p.m. OK Java 8 TESTS 2 93 0
147362099 akarshanand2810 A Feb. 22, 2022, 6:34 p.m. OK Java 8 TESTS 2 93 0
147366831 Shemo A Feb. 22, 2022, 7:40 p.m. OK Java 8 TESTS 2 108 0
147351407 arvindf232 A Feb. 22, 2022, 4:50 p.m. OK Kotlin 1.4 TESTS 2 108 0
147380744 Potti0103 A Feb. 23, 2022, 1:45 a.m. OK Kotlin 1.5 TESTS 2 155 0
147369877 Cypher70 A Feb. 22, 2022, 8:30 p.m. OK Kotlin 1.5 TESTS 2 171 0
147360603 Potassium A Feb. 22, 2022, 6:17 p.m. OK Kotlin 1.5 TESTS 2 202 0
147368825 mskk A Feb. 22, 2022, 8:11 p.m. OK MS C++ 2017 TESTS 2 0 0
147345030 930851771G A Feb. 22, 2022, 4:26 p.m. OK MS C++ 2017 TESTS 2 0 0
147385208 nha9888 A Feb. 23, 2022, 3:36 a.m. OK MS C++ 2017 TESTS 2 0 0
147384175 daijilaowang A Feb. 23, 2022, 3:13 a.m. OK MS C++ 2017 TESTS 2 0 0
147362445 Abdelrahmanmagdi A Feb. 22, 2022, 6:39 p.m. OK MS C++ 2017 TESTS 2 0 0
147360731 edfearay11 A Feb. 22, 2022, 6:18 p.m. OK MS C++ 2017 TESTS 2 15 0
147352492 kl2000031454 A Feb. 22, 2022, 4:58 p.m. OK MS C++ 2017 TESTS 2 15 0
147384710 capability_Wu A Feb. 23, 2022, 3:25 a.m. OK MS C++ 2017 TESTS 2 15 0
147355349 Olasiliksizci A Feb. 22, 2022, 5:22 p.m. OK .NET Core C# TESTS 2 61 0
147352167 ysredd99 A Feb. 22, 2022, 4:56 p.m. OK .NET Core C# TESTS 2 77 102400
147353996 Orazgeldi A Feb. 22, 2022, 5:11 p.m. OK PascalABC.NET TESTS 2 202 102400
147347514 aditisaxena1271 A Feb. 22, 2022, 4:32 p.m. OK PyPy 2 TESTS 2 62 0
147350905 aditisaxena1271 A Feb. 22, 2022, 4:47 p.m. OK PyPy 2 TESTS 2 62 1228800
147384733 tanuki_10 A Feb. 23, 2022, 3:25 a.m. OK PyPy 3 TESTS 2 61 0
147365424 omarnvidia A Feb. 22, 2022, 7:20 p.m. OK PyPy 3 TESTS 2 62 0
147365284 whatshisbucket A Feb. 22, 2022, 7:18 p.m. OK PyPy 3 TESTS 2 77 1536000
147373811 noobsatish A Feb. 22, 2022, 9:55 p.m. OK PyPy 3 TESTS 2 77 1945600
147366638 Leofun A Feb. 22, 2022, 7:37 p.m. OK PyPy 3 TESTS 2 77 2048000
147346442 XijiaoLi A Feb. 22, 2022, 4:30 p.m. OK PyPy 3 TESTS 2 92 2048000
147359437 Jaideep19 A Feb. 22, 2022, 6:04 p.m. OK PyPy 3 TESTS 2 93 2048000
147349640 YouCanCallMeNoob A Feb. 22, 2022, 4:40 p.m. OK PyPy 3 TESTS 2 93 2048000
147378194 crapcode A Feb. 23, 2022, 12:20 a.m. OK PyPy 3 TESTS 2 93 3072000
147375488 MEMMI A Feb. 22, 2022, 10:43 p.m. OK PyPy 3 TESTS 2 93 3072000
147378914 xiesunsun A Feb. 23, 2022, 12:48 a.m. OK PyPy 3-64 TESTS 2 30 614400
147351827 Rustam2 A Feb. 22, 2022, 4:53 p.m. OK PyPy 3-64 TESTS 2 46 0
147389467 rutz12 A Feb. 23, 2022, 4:57 a.m. OK PyPy 3-64 TESTS 2 61 2662400
147361022 KALDESH A Feb. 22, 2022, 6:22 p.m. OK PyPy 3-64 TESTS 2 61 2969600
147364439 SSMB A Feb. 22, 2022, 7:06 p.m. OK PyPy 3-64 TESTS 2 62 1536000
147389459 nicku123 A Feb. 23, 2022, 4:57 a.m. OK PyPy 3-64 TESTS 2 77 512000
147373426 Bhuvnesh_n A Feb. 22, 2022, 9:45 p.m. OK PyPy 3-64 TESTS 2 77 512000
147350381 Dontcare2308 A Feb. 22, 2022, 4:44 p.m. OK PyPy 3-64 TESTS 2 77 1536000
147358522 iron_nicko A Feb. 22, 2022, 5:54 p.m. OK PyPy 3-64 TESTS 2 77 1536000
147389685 NapoleonB A Feb. 23, 2022, 5:01 a.m. OK PyPy 3-64 TESTS 2 77 2662400
147362090 OLOGY A Feb. 22, 2022, 6:34 p.m. OK Python 2 TESTS 2 15 0
147363319 Jexamission A Feb. 22, 2022, 6:50 p.m. OK Python 2 TESTS 2 15 0
147359993 sankalpsodagum7 A Feb. 22, 2022, 6:10 p.m. OK Python 3 TESTS 2 15 0
147347238 ShatrughanRai_123 A Feb. 22, 2022, 4:32 p.m. OK Python 3 TESTS 2 15 0
147359299 Dazai_too A Feb. 22, 2022, 6:03 p.m. OK Python 3 TESTS 2 15 0
147356221 dazlersan1 A Feb. 22, 2022, 5:31 p.m. OK Python 3 TESTS 2 15 0
147347262 sai_09 A Feb. 22, 2022, 4:32 p.m. OK Python 3 TESTS 2 15 0
147359367 Dazai_san A Feb. 22, 2022, 6:03 p.m. OK Python 3 TESTS 2 15 0
147343629 sankalpsodagum7 A Feb. 22, 2022, 4:23 p.m. OK Python 3 TESTS 2 15 0
147391076 nibirjoydhar A Feb. 23, 2022, 5:19 a.m. OK Python 3 TESTS 2 15 0
147390690 codeproamz A Feb. 23, 2022, 5:14 a.m. OK Python 3 TESTS 2 30 0
147387603 yashp_ A Feb. 23, 2022, 4:25 a.m. OK Python 3 TESTS 2 30 0
147384462 MoonPie A Feb. 23, 2022, 3:19 a.m. OK Rust 2021 TESTS 2 0 0

remove filters

Back to search problems