Codeforces Global Round 8

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
1368 Codeforces Global Round 8 FINISHED False 9000 139331699 June 18, 2020, 2:45 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 609 ) G Shifting Dominoes PROGRAMMING data structures geometry graphs trees

B"Bill likes to play with dominoes. He took an n x m board divided into equal square cells, and covered it with dominoes. Each domino covers two adjacent cells of the board either horizontally or vertically, and each cell is covered exactly once with a half of one domino (that is, there are no uncovered cells, and no two dominoes cover the same cell twice). After that Bill decided to play with the covered board and share some photos of it on social media. First, he removes exactly one domino from the board, freeing two of the cells. Next, he moves dominoes around. A domino can only be moved along the line parallel to its longer side. A move in the chosen direction is possible if the next cell in this direction is currently free. Bill doesn't want to lose track of what the original tiling looks like, so he makes sure that at any point each domino shares at least one cell with its original position. After removing a domino and making several (possibly, zero) moves Bill takes a photo of the board and posts it. However, with the amount of filters Bill is using, domino borders are not visible, so only the two free cells of the board can be identified. When the photo is posted, Bill reverts the board to its original state and starts the process again. Bill wants to post as many photos as possible, but he will not post any photo twice. How many distinct photos can he take? Recall that photos are different if the pairs of free cells in the photos are different. The first line contains two positive integers n and m ( nm <= q 2 cdot 10^5 ) -- height and width of the board respectively. The next n lines describe the tiling of the board, row by row from top to bottom. Each of these lines contains m characters, describing the cells in the corresponding row left to right. Each character is one of U, D, L, or R, meaning that the cell is covered with a top, bottom, left, or right half of a domino respectively. It is guaranteed that "...

Tutorials

Codeforces Global Round 8: editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
84260846 duality G June 18, 2020, 5:56 p.m. OK GNU C++11 TESTS 30 156 26521600
84282054 duality G June 19, 2020, 12:51 a.m. OK GNU C++11 TESTS 30 217 17817600
84287165 Maripium G June 19, 2020, 3:37 a.m. OK GNU C++14 TESTS 30 109 33280000
84261022 ainta G June 18, 2020, 5:57 p.m. OK GNU C++14 TESTS 30 124 34304000
84287066 apiadu G June 19, 2020, 3:35 a.m. OK GNU C++14 TESTS 30 140 36147200
84286895 apiadu G June 19, 2020, 3:31 a.m. OK GNU C++14 TESTS 30 156 36147200
84245078 ecnerwala G June 18, 2020, 4:44 p.m. OK GNU C++17 TESTS 30 93 24576000
84282613 Elegia G June 19, 2020, 1:16 a.m. OK GNU C++17 TESTS 30 93 30208000
84230234 tourist G June 18, 2020, 4:10 p.m. OK GNU C++17 TESTS 30 140 35737600
84270702 icecuber G June 18, 2020, 7:22 p.m. OK GNU C++17 TESTS 30 140 36864000
84257367 hank55663 G June 18, 2020, 5:12 p.m. OK GNU C++17 TESTS 30 140 38809600
84280522 MiFaFaOvO G June 18, 2020, 11:42 p.m. OK GNU C++17 TESTS 30 140 62566400
84236690 Um_nik G June 18, 2020, 4:24 p.m. OK GNU C++17 TESTS 30 171 31129600
84260679 Mohammad.Sj G June 18, 2020, 5:55 p.m. OK GNU C++17 TESTS 30 171 128819200
84283755 jiangly G June 19, 2020, 2:03 a.m. OK GNU C++17 TESTS 30 186 36454400
84242530 Marcin_smu G June 18, 2020, 4:38 p.m. OK GNU C++17 TESTS 30 187 28774400
84284181 ecnerwala G June 19, 2020, 2:16 a.m. OK GNU C++17 (64) TESTS 30 77 36659200
84285149 neal G June 19, 2020, 2:44 a.m. OK GNU C++17 (64) TESTS 30 124 37068800
84284828 neal G June 19, 2020, 2:35 a.m. OK GNU C++17 (64) TESTS 30 124 37068800
84286665 neal G June 19, 2020, 3:25 a.m. OK GNU C++17 (64) TESTS 30 139 37068800
84270029 neal G June 18, 2020, 7:11 p.m. OK GNU C++17 (64) TESTS 30 140 37068800
84284989 cuizhuyefei G June 19, 2020, 2:40 a.m. OK GNU C++17 (64) TESTS 30 140 49766400
84292335 WZYYN G June 19, 2020, 5:19 a.m. OK GNU C++17 (64) TESTS 30 140 56627200
84246345 Merkurev G June 18, 2020, 4:47 p.m. OK GNU C++17 (64) TESTS 30 155 30617600
84260799 jiangly G June 18, 2020, 5:56 p.m. OK GNU C++17 (64) TESTS 30 155 46796800
84247404 maroonrk G June 18, 2020, 4:50 p.m. OK GNU C++17 (64) TESTS 30 155 54784000
84256099 eatmore G June 18, 2020, 5:09 p.m. OK Java 11 TESTS 30 389 44544000
84261792 Lewin G June 18, 2020, 6:02 p.m. OK Java 11 TESTS 30 1263 75059200

remove filters

Back to search problems