Codeforces Round 742 (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
1567 Codeforces Round 742 (Div. 2) FINISHED False 7200 100970699 Sept. 5, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 30213 ) A Domino Disaster PROGRAMMING implementation strings

B'Alice has a grid with 2 rows and n columns. She fully covers the grid using n dominoes of size 1 x 2 -- Alice may place them vertically or horizontally, and each cell should be covered by exactly one domino. Now, she decided to show one row of the grid to Bob. Help Bob and figure out what the other row of the grid looks like! The input consists of multiple test cases. The first line contains an integer t ( 1 <= q t <= q 5000 ) -- the number of test cases. The description of the test cases follows. The first line of each test case contains an integer n ( 1 <= q n <= q 100 ) -- the width of the grid. The second line of each test case contains a string s consisting of n characters, each of which is either L, R, U, or D, representing the left, right, top, or bottom half of a domino, respectively (see notes for better understanding). This string represents one of the rows of the grid. Additional constraint on the input: each input corresponds to at least one valid tiling. For each test case, output one string -- the other row of the grid, using the same format as the input string. If there are multiple answers, print any. In the first test case, Alice shows Bob the top row, the whole grid may look like: In the second test case, Alice shows Bob the bottom row, the whole grid may look like: In the third test case, Alice shows Bob the bottom row, the whole grid may look like: In the fourth test case, Alice shows Bob the top row, the whole grid may look like: '...

Tutorials

Codeforces Round #742 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
128001802 gxlois A Sept. 6, 2021, 12:23 a.m. OK D TESTS 5 61 6656000
128010301 Bargav A Sept. 6, 2021, 4:11 a.m. OK GNU C11 TESTS 5 62 3686400
127984608 hasanalmamun A Sept. 5, 2021, 5:27 p.m. OK GNU C11 TESTS 5 62 3686400
127985802 KishanDelvadiya A Sept. 5, 2021, 5:36 p.m. OK GNU C11 TESTS 5 1622 3686400
127988114 noipak A Sept. 5, 2021, 6:05 p.m. OK GNU C++14 TESTS 5 15 3686400
128006945 shreyas_171 A Sept. 6, 2021, 2:53 a.m. OK GNU C++14 TESTS 5 15 3788800
127986938 Coolguy_20 A Sept. 5, 2021, 5:49 p.m. OK GNU C++14 TESTS 5 15 3891200
127986813 lio_123 A Sept. 5, 2021, 5:48 p.m. OK GNU C++14 TESTS 5 15 3891200
128007459 pushkar.vns16 A Sept. 6, 2021, 3:07 a.m. OK GNU C++14 TESTS 5 15 3891200
128014359 Darsh1031 A Sept. 6, 2021, 5:31 a.m. OK GNU C++14 TESTS 5 15 3891200
128008752 Abhishekcs001 A Sept. 6, 2021, 3:38 a.m. OK GNU C++14 TESTS 5 15 3891200
128008037 Ninja_hu A Sept. 6, 2021, 3:21 a.m. OK GNU C++14 TESTS 5 15 3891200
127992667 Mouaz_Abbas A Sept. 5, 2021, 7:21 p.m. OK GNU C++14 TESTS 5 15 3891200
127987510 shivansh256 ankitcf ankuralld5999 A Sept. 5, 2021, 5:57 p.m. OK GNU C++14 TESTS 5 15 3891200
128002992 roadtoh A Sept. 6, 2021, 1:06 a.m. OK GNU C++17 TESTS 5 15 3686400
127996401 Maxim A Sept. 5, 2021, 8:51 p.m. OK GNU C++17 TESTS 5 15 3686400
128004411 ErwinNeo A Sept. 6, 2021, 1:47 a.m. OK GNU C++17 TESTS 5 15 3788800
128003852 lichangrong A Sept. 6, 2021, 1:31 a.m. OK GNU C++17 TESTS 5 15 3788800
128010460 NAMIKazE_13 A Sept. 6, 2021, 4:15 a.m. OK GNU C++17 TESTS 5 15 3891200
128015637 hritwickmanna24 A Sept. 6, 2021, 5:52 a.m. OK GNU C++17 TESTS 5 15 3891200
128015128 Tobiasblack A Sept. 6, 2021, 5:43 a.m. OK GNU C++17 TESTS 5 15 3891200
128011982 Ayushmanjha_30 A Sept. 6, 2021, 4:47 a.m. OK GNU C++17 TESTS 5 15 3891200
128011455 TheLoneWolf12 A Sept. 6, 2021, 4:36 a.m. OK GNU C++17 TESTS 5 15 3891200
128003535 yash2200 A Sept. 6, 2021, 1:22 a.m. OK GNU C++17 TESTS 5 15 3891200
128012625 archana_24 A Sept. 6, 2021, 4:59 a.m. OK GNU C++17 (64) TESTS 5 15 4300800
128010790 H-i-M-A A Sept. 6, 2021, 4:22 a.m. OK GNU C++17 (64) TESTS 5 15 4300800
128007417 rum3r A Sept. 6, 2021, 3:06 a.m. OK GNU C++17 (64) TESTS 5 15 4300800
128004273 Absinthium A Sept. 6, 2021, 1:43 a.m. OK GNU C++17 (64) TESTS 5 15 4300800
128003050 AutumnKite A Sept. 6, 2021, 1:08 a.m. OK GNU C++17 (64) TESTS 5 15 4300800
128000611 AutumnKite A Sept. 5, 2021, 11:38 p.m. OK GNU C++17 (64) TESTS 5 15 4300800
127998768 otera A Sept. 5, 2021, 10:17 p.m. OK GNU C++17 (64) TESTS 5 15 4300800
127997266 lucid_dreamer A Sept. 5, 2021, 9:18 p.m. OK GNU C++17 (64) TESTS 5 15 4300800
127996274 MazenBatrawi A Sept. 5, 2021, 8:48 p.m. OK GNU C++17 (64) TESTS 5 15 4300800
127993680 _fire_fly_ A Sept. 5, 2021, 7:43 p.m. OK GNU C++17 (64) TESTS 5 15 4300800
128015304 greatheygaen A Sept. 6, 2021, 5:46 a.m. OK Go TESTS 5 62 10649600
127996940 lvxvl A Sept. 5, 2021, 9:08 p.m. OK Go TESTS 5 93 16281600
127998390 maximda A Sept. 5, 2021, 10:01 p.m. OK Go TESTS 5 1465 16281600
127985740 garg_lucifer A Sept. 5, 2021, 5:35 p.m. OK Java 11 TESTS 5 171 23756800
128008145 aym_05 A Sept. 6, 2021, 3:24 a.m. OK Java 11 TESTS 5 171 23756800
127990346 TheRunner A Sept. 5, 2021, 6:38 p.m. OK Java 11 TESTS 5 186 23756800
128002358 BestEveryman A Sept. 6, 2021, 12:43 a.m. OK Java 11 TESTS 5 187 23756800
127984445 ivanshubin A Sept. 5, 2021, 5:26 p.m. OK Java 11 TESTS 5 187 23859200
127992931 procrastinate7 A Sept. 5, 2021, 7:28 p.m. OK Java 11 TESTS 5 187 23859200
127984946 Amir_Coderest A Sept. 5, 2021, 5:28 p.m. OK Java 11 TESTS 5 202 23756800
127985550 Debojit219 A Sept. 5, 2021, 5:33 p.m. OK Java 11 TESTS 5 217 23961600
127993449 Pushkar-PM A Sept. 5, 2021, 7:38 p.m. OK Java 11 TESTS 5 217 24371200
128007677 Toinfinity A Sept. 6, 2021, 3:12 a.m. OK Java 11 TESTS 5 218 23859200
127991237 abdo123 A Sept. 5, 2021, 6:53 p.m. OK Java 8 TESTS 5 109 20480000
128006723 thedesalizes A Sept. 6, 2021, 2:48 a.m. OK Java 8 TESTS 5 124 20480000
128015663 dogranmol A Sept. 6, 2021, 5:52 a.m. OK Java 8 TESTS 5 124 20480000
127991484 ontheqt A Sept. 5, 2021, 6:58 p.m. OK Java 8 TESTS 5 171 20480000
128001565 kbadrinath A Sept. 6, 2021, 12:15 a.m. OK Java 8 TESTS 5 171 20582400
127994454 vaidygogetit A Sept. 5, 2021, 8:01 p.m. OK Java 8 TESTS 5 217 21299200
128000686 md_tashhirul_islam A Sept. 5, 2021, 11:41 p.m. OK Java 8 TESTS 5 249 21299200
127984376 amit_roy A Sept. 5, 2021, 5:26 p.m. OK Java 8 TESTS 5 1528 20480000
127978013 UZMath A Sept. 5, 2021, 4:22 p.m. OK Kotlin TESTS 5 280 50483200
127978326 yoji_20 A Sept. 5, 2021, 4:23 p.m. OK Kotlin TESTS 5 1653 20582400
127989454 940720 A Sept. 5, 2021, 6:24 p.m. OK MS C++ 2017 TESTS 5 46 3788800
128012681 swz A Sept. 6, 2021, 5 a.m. OK MS C++ 2017 TESTS 5 46 3788800
128003627 klaus1 A Sept. 6, 2021, 1:25 a.m. OK MS C++ 2017 TESTS 5 46 3788800
128003340 capability_Wu A Sept. 6, 2021, 1:17 a.m. OK MS C++ 2017 TESTS 5 46 3788800
127974864 VitKulch A Sept. 5, 2021, 4:12 p.m. OK MS C++ 2017 TESTS 5 46 4608000
127987975 IlyinAD A Sept. 5, 2021, 6:03 p.m. OK MS C++ 2017 TESTS 5 62 3788800
128003654 2018460 A Sept. 6, 2021, 1:26 a.m. OK MS C++ 2017 TESTS 5 62 4505600
127985099 Tangerine A Sept. 5, 2021, 5:29 p.m. OK MS C++ 2017 TESTS 5 77 3788800
127996484 Viktor36 A Sept. 5, 2021, 8:53 p.m. OK MS C++ 2017 TESTS 5 77 3788800
127987535 JohnO A Sept. 5, 2021, 5:57 p.m. OK MS C++ 2017 TESTS 5 77 3788800
128013424 tabibi A Sept. 6, 2021, 5:14 a.m. OK .NET Core C# TESTS 5 108 14131200
128003166 Ahad726 A Sept. 6, 2021, 1:12 a.m. OK .NET Core C# TESTS 5 108 14131200
127973373 qLate A Sept. 5, 2021, 4:07 p.m. OK .NET Core C# TESTS 5 109 18432000
127973428 Jcellb A Sept. 5, 2021, 4:07 p.m. OK PascalABC.NET TESTS 5 530 28774400
127986233 Marshmello A Sept. 5, 2021, 5:40 p.m. OK PyPy 2 TESTS 5 467 32153600
128006883 jerinjoseantony A Sept. 6, 2021, 2:52 a.m. OK PyPy 3 TESTS 5 171 25190400
128015328 behindyou A Sept. 6, 2021, 5:47 a.m. OK PyPy 3 TESTS 5 202 25600000
127989768 silvertint A Sept. 5, 2021, 6:29 p.m. OK PyPy 3 TESTS 5 202 25907200
128010822 dutt_shouvik A Sept. 6, 2021, 4:23 a.m. OK PyPy 3 TESTS 5 202 91648000
128007263 peisea0830 A Sept. 6, 2021, 3:02 a.m. OK PyPy 3 TESTS 5 217 26214400
128016082 Chef_17 A Sept. 6, 2021, 5:58 a.m. OK PyPy 3 TESTS 5 217 28057600
127974177 Sangram_Jagadale A Sept. 5, 2021, 4:10 p.m. OK PyPy 3 TESTS 5 218 25702400
127984372 violist A Sept. 5, 2021, 5:26 p.m. OK PyPy 3 TESTS 5 218 25907200
128009190 M0u1ea5 A Sept. 6, 2021, 3:47 a.m. OK PyPy 3 TESTS 5 218 26112000
128012663 Chef_17 A Sept. 6, 2021, 5 a.m. OK PyPy 3 TESTS 5 218 26521600
127992944 eugalt A Sept. 5, 2021, 7:28 p.m. OK Python 3 TESTS 5 46 9113600
127994137 eugalt A Sept. 5, 2021, 7:54 p.m. OK Python 3 TESTS 5 62 9113600
127992790 eugalt A Sept. 5, 2021, 7:24 p.m. OK Python 3 TESTS 5 77 9216000
127999356 radoan.sharkar.richi A Sept. 5, 2021, 10:42 p.m. OK Python 3 TESTS 5 78 9625600
127979548 mdmobarok936889 A Sept. 5, 2021, 4:28 p.m. OK Python 3 TESTS 5 93 6758400
127985396 JeremySH A Sept. 5, 2021, 5:32 p.m. OK Python 3 TESTS 5 108 6758400
127986436 jainmilind A Sept. 5, 2021, 5:43 p.m. OK Python 3 TESTS 5 139 6963200
127994265 srikar.may5 A Sept. 5, 2021, 7:57 p.m. OK Python 3 TESTS 5 140 6963200
128007413 edusanketdk A Sept. 6, 2021, 3:06 a.m. OK Python 3 TESTS 5 140 7168000
127992252 eugalt A Sept. 5, 2021, 7:12 p.m. OK Python 3 TESTS 5 140 11980800
127992652 apilat A Sept. 5, 2021, 7:21 p.m. OK Rust TESTS 5 31 3788800
128000241 Spheniscine A Sept. 5, 2021, 11:22 p.m. OK Rust TESTS 5 46 3993600
127985402 SorKierkegaard A Sept. 5, 2021, 5:32 p.m. OK Rust TESTS 5 62 5324800

remove filters

Back to search problems