Codeforces Global Round 5

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
1237 Codeforces Global Round 5 FINISHED False 9000 166202687 Oct. 16, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 911 ) F Balanced Domino Placements PROGRAMMING combinatorics dp 2600

B"Consider a square grid with h rows and w columns with some dominoes on it. Each domino covers exactly two cells of the grid that share a common side. Every cell is covered by at most one domino. Let's call a placement of dominoes on the grid perfectly balanced if no row and no column contains a pair of cells covered by two different dominoes. In other words, every row and column may contain no covered cells, one covered cell, or two covered cells that belong to the same domino. You are given a perfectly balanced placement of dominoes on a grid. Find the number of ways to place zero or more extra dominoes on this grid to keep the placement perfectly balanced. Output this number modulo 998 ,244 ,353 . The first line contains three integers h , w , and n ( 1 <= h, w <= 3600 ; 0 <= n <= 2400 ), denoting the dimensions of the grid and the number of already placed dominoes. The rows are numbered from 1 to h , and the columns are numbered from 1 to w . Each of the next n lines contains four integers r_{i, 1}, c_{i, 1}, r_{i, 2}, c_{i, 2} ( 1 <= r_{i, 1} <= r_{i, 2} <= h ; 1 <= c_{i, 1} <= c_{i, 2} <= w ), denoting the row id and the column id of the cells covered by the i -th domino. Cells (r_{i, 1}, c_{i, 1}) and (r_{i, 2}, c_{i, 2}) are distinct and share a common side. The given domino placement is perfectly balanced. Output the number of ways to place zero or more extra dominoes on the grid to keep the placement perfectly balanced, modulo 998 ,244 ,353 . In the first example, the initial grid looks like this: Here are 8 ways to place zero or more extra dominoes to keep the placement perfectly balanced: In the second example, the initial grid looks like this: No extra dominoes can be placed here. "...

Tutorials

T

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
62728629 hos.lyric F Oct. 16, 2019, 4:50 p.m. OK D TESTS 77 436 72704000 2600
62820111 rainboy F Oct. 17, 2019, 4:24 p.m. OK GNU C11 TESTS 77 234 102400 2600
62728626 matipau F Oct. 16, 2019, 4:50 p.m. OK GNU C11 TESTS 77 420 192512000 2600
62881566 Chipe1 F Oct. 18, 2019, 4:55 p.m. OK GNU C11 TESTS 77 421 64614400 2600
62905014 BeNoble F Oct. 19, 2019, 5:33 a.m. OK GNU C++11 TESTS 77 93 307200 2600
63927888 Dream-chasing_Juvenile F Oct. 31, 2019, 1:31 p.m. OK GNU C++11 TESTS 77 109 102400 2600
62906152 BeNoble F Oct. 19, 2019, 5:53 a.m. OK GNU C++11 TESTS 77 109 204800 2600
62902542 BeNoble F Oct. 19, 2019, 4:43 a.m. OK GNU C++11 TESTS 77 109 512000 2600
64798945 xpysss F Nov. 13, 2019, 1:54 p.m. OK GNU C++11 TESTS 77 109 1228800 2600
63531962 vjudge4 F Oct. 27, 2019, 6:58 a.m. OK GNU C++11 TESTS 77 124 204800 2600
62900178 BeNoble F Oct. 19, 2019, 3:42 a.m. OK GNU C++11 TESTS 77 124 512000 2600
62900811 BeNoble F Oct. 19, 2019, 4:04 a.m. OK GNU C++11 TESTS 77 124 512000 2600
62870323 Manasa12 F Oct. 18, 2019, 1:34 p.m. OK GNU C++11 TESTS 77 124 52224000 2600
63051743 WZYYN F Oct. 21, 2019, 3:06 a.m. OK GNU C++11 TESTS 77 124 200908800 2600
62905171 BeNoble F Oct. 19, 2019, 5:36 a.m. OK GNU C++14 TESTS 77 93 204800 2600
62899974 BeNoble F Oct. 19, 2019, 3:35 a.m. OK GNU C++14 TESTS 77 109 204800 2600
62725145 zeliboba F Oct. 16, 2019, 4:34 p.m. OK GNU C++14 TESTS 77 124 204800 2600
62731482 natsugiri F Oct. 16, 2019, 5:02 p.m. OK GNU C++14 TESTS 77 155 204800 2600
62752448 860579 F Oct. 17, 2019, 2:23 a.m. OK GNU C++14 TESTS 77 155 26419200 2600
62762296 Zory F Oct. 17, 2019, 7:19 a.m. OK GNU C++14 TESTS 77 155 129024000 2600
62711580 ecnerwala F Oct. 16, 2019, 3:39 p.m. OK GNU C++14 TESTS 77 156 102400 2600
62728927 mFTXySE3cyZFL7iI F Oct. 16, 2019, 4:51 p.m. OK GNU C++14 TESTS 77 170 156672000 2600
62718200 krijgertje F Oct. 16, 2019, 4:04 p.m. OK GNU C++14 TESTS 77 171 207974400 2600
62748433 Kostroma F Oct. 16, 2019, 11:17 p.m. OK GNU C++14 TESTS 77 187 3379200 2600
62757859 neal F Oct. 17, 2019, 5:37 a.m. OK GNU C++17 TESTS 77 78 307200 2600
62757476 neal F Oct. 17, 2019, 5:26 a.m. OK GNU C++17 TESTS 77 93 43315200 2600
63025630 user202729_ F Oct. 20, 2019, 4:09 p.m. OK GNU C++17 TESTS 77 109 102400 2600
62723105 PavelKunyavskiy F Oct. 16, 2019, 4:26 p.m. OK GNU C++17 TESTS 77 109 102400 2600
62740363 Benq F Oct. 16, 2019, 7:33 p.m. OK GNU C++17 TESTS 77 109 307200 2600
62757332 neal F Oct. 17, 2019, 5:22 a.m. OK GNU C++17 TESTS 77 109 43212800 2600
62757529 neal F Oct. 17, 2019, 5:28 a.m. OK GNU C++17 TESTS 77 109 43212800 2600
62742894 fdironia F Oct. 16, 2019, 8:23 p.m. OK GNU C++17 TESTS 77 140 51916800 2600
62729867 neal F Oct. 16, 2019, 4:55 p.m. OK GNU C++17 TESTS 77 140 52531200 2600
62725937 gisp_zjz F Oct. 16, 2019, 4:38 p.m. OK GNU C++17 TESTS 77 140 64409600 2600
62708700 Petr F Oct. 16, 2019, 3:29 p.m. OK Java 8 TESTS 77 358 0 2600
62716464 Egor F Oct. 16, 2019, 3:57 p.m. OK Java 8 TESTS 77 374 0 2600
62725652 ilyakor F Oct. 16, 2019, 4:37 p.m. OK Java 8 TESTS 77 436 78233600 2600
62820110 Dukkha F Oct. 17, 2019, 4:24 p.m. OK Java 8 TESTS 77 498 0 2600
62724598 VArtem F Oct. 16, 2019, 4:32 p.m. OK Java 8 TESTS 77 498 92876800 2600
62711821 qwerty787788 F Oct. 16, 2019, 3:40 p.m. OK Java 8 TESTS 77 499 76697600 2600
62727798 Lewin F Oct. 16, 2019, 4:46 p.m. OK Java 8 TESTS 77 545 113664000 2600
62729311 andrewzta F Oct. 16, 2019, 4:53 p.m. OK Java 8 TESTS 77 608 143872000 2600
64894373 Ahmad F Nov. 14, 2019, 3:58 p.m. OK Java 8 TESTS 77 702 146944000 2600
62857570 dalt F Oct. 18, 2019, 9:47 a.m. OK Java 8 TESTS 77 794 77516800 2600
65546714 sansen F Nov. 22, 2019, 5:23 p.m. OK Rust TESTS 77 187 512000 2600
68026131 gearjack F Jan. 1, 2020, 5:54 a.m. OK Rust TESTS 77 702 104550400 2600

remove filters

Back to search problems