Codeforces Round 779 (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
1658 Codeforces Round 779 (Div. 2) FINISHED False 7200 88788263 March 27, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1082 ) E Gojou and Matrix Game PROGRAMMING data structures dp games math number theory sortings

B"Marin feels exhausted after a long day of cosplay, so Gojou invites her to play a game! Marin and Gojou take turns to place one of their tokens on an n x n grid with Marin starting first. There are some restrictions and allowances on where to place tokens: Whenever a player places a token on cell (x, y) , that player gets v_{x, y} points. All values of v on the grid are distinct. You still get points from a cell even if tokens were already placed onto the cell. The game finishes when each player makes 10^{100} moves. Marin and Gojou will play n^2 games. For each cell of the grid, there will be exactly one game where Marin places a token on that cell on her first move. Please answer for each game, if Marin and Gojou play optimally (after Marin's first move), who will have more points at the end? Or will the game end in a draw (both players have the same points at the end)? The first line contains two integers n , k ( 3 <= n <= 2000 , 1 <= q k <= q n - 2 ). Note that under these constraints it is always possible to make a move. The following n lines contains n integers each. The j -th integer in the i -th line is v_{i,j} ( 1 <= v_{i,j} <= n^2 ). All elements in v are distinct. You should print n lines. In the i -th line, print n characters, where the j -th character is the result of the game in which Marin places her first token in the cell (i, j) . Print 'M' if Marin wins, 'G' if Gojou wins, and 'D' if the game ends in a draw. Do not print spaces between the characters in one line. "...

Tutorials

Codeforces Round #779 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
151200635 Winterfrost E March 28, 2022, 3:58 a.m. OK GNU C++14 TESTS 19 530 113049600
151203508 win10 E March 28, 2022, 4:53 a.m. OK GNU C++14 TESTS 19 795 66355200
151197786 wrc E March 28, 2022, 2:52 a.m. OK GNU C++14 TESTS 19 935 53350400
151195492 bcofwy060 E March 28, 2022, 1:51 a.m. OK GNU C++14 TESTS 19 1091 36761600
151190237 NotImplemented E March 27, 2022, 10:55 p.m. OK GNU C++14 TESTS 19 1091 66048000
151168923 Code937 E March 27, 2022, 5:05 p.m. OK GNU C++14 TESTS 19 1200 68198400
151197934 XZC__Bobby E March 28, 2022, 2:56 a.m. OK GNU C++14 TESTS 19 1248 68505600
151198013 XZC__Bobby E March 28, 2022, 2:58 a.m. OK GNU C++14 TESTS 19 1263 69017600
151171627 Jimanbanashi E March 27, 2022, 5:26 p.m. OK GNU C++14 TESTS 19 1294 68403200
151186175 cridaflo E March 27, 2022, 8:57 p.m. OK GNU C++14 TESTS 19 1481 79769600
151201918 Awcotn_tct E March 28, 2022, 4:24 a.m. OK GNU C++17 TESTS 19 857 53555200
151193998 nskybytskyi E March 28, 2022, 1:04 a.m. OK GNU C++17 TESTS 19 888 53555200
151186927 forgothandle E March 27, 2022, 9:16 p.m. OK GNU C++17 TESTS 19 951 32768000
151160901 OctaneC8H18 E March 27, 2022, 4:24 p.m. OK GNU C++17 TESTS 19 997 32051200
151174983 izlyforever E March 27, 2022, 6:02 p.m. OK GNU C++17 TESTS 19 1123 36352000
151202411 stff577 E March 28, 2022, 4:33 a.m. OK GNU C++17 TESTS 19 1200 48128000
151205382 infinity0 E March 28, 2022, 5:25 a.m. OK GNU C++17 TESTS 19 1201 64409600
151158954 TeaPot E March 27, 2022, 4:19 p.m. OK GNU C++17 TESTS 19 1232 49868800
151179139 JhonnyZaz E March 27, 2022, 6:55 p.m. OK GNU C++17 TESTS 19 1294 36352000
151175642 RoundRoundUP E March 27, 2022, 6:10 p.m. OK GNU C++17 TESTS 19 1309 68505600
151184013 neal E March 27, 2022, 8:15 p.m. OK GNU C++17 (64) TESTS 19 202 33689600
151180391 rgnerdplayer E March 27, 2022, 7:13 p.m. OK GNU C++17 (64) TESTS 19 701 36454400
151195005 bandiaoz E March 28, 2022, 1:36 a.m. OK GNU C++17 (64) TESTS 19 748 53452800
151183908 neal E March 27, 2022, 8:13 p.m. OK GNU C++17 (64) TESTS 19 795 33587200
151194713 SmolBrain E March 28, 2022, 1:26 a.m. OK GNU C++17 (64) TESTS 19 888 128614400
151194857 SmolBrain E March 28, 2022, 1:31 a.m. OK GNU C++17 (64) TESTS 19 904 128614400
151159030 SSRS_ E March 27, 2022, 4:19 p.m. OK GNU C++17 (64) TESTS 19 920 85504000
151163806 rniya E March 27, 2022, 4:30 p.m. OK GNU C++17 (64) TESTS 19 998 97177600
151198774 BreezeMYqwq E March 28, 2022, 3:17 a.m. OK GNU C++17 (64) TESTS 19 1076 78540800
151164738 MateoCV E March 27, 2022, 4:31 p.m. OK GNU C++17 (64) TESTS 19 1153 76083200
151196169 sky123 E March 28, 2022, 2:11 a.m. OK GNU C++20 (64) TESTS 19 608 36454400
151175430 huangxiaohua E March 27, 2022, 6:07 p.m. OK GNU C++20 (64) TESTS 19 623 36352000
151171108 Thallium54 E March 27, 2022, 5:22 p.m. OK GNU C++20 (64) TESTS 19 623 53452800
151200502 swz E March 28, 2022, 3:56 a.m. OK GNU C++20 (64) TESTS 19 624 53452800
151193913 20161222 E March 28, 2022, 1:01 a.m. OK GNU C++20 (64) TESTS 19 624 53452800
151161389 ytkn E March 27, 2022, 4:25 p.m. OK GNU C++20 (64) TESTS 19 639 57753600
151197070 Fysty E March 28, 2022, 2:35 a.m. OK GNU C++20 (64) TESTS 19 701 100352000
151203275 j.w E March 28, 2022, 4:49 a.m. OK GNU C++20 (64) TESTS 19 702 49152000
151168992 karinohito E March 27, 2022, 5:05 p.m. OK GNU C++20 (64) TESTS 19 717 49152000
151163263 WongChun1234 E March 27, 2022, 4:29 p.m. OK GNU C++20 (64) TESTS 19 748 97792000
151161565 knightL E March 27, 2022, 4:25 p.m. OK Java 11 TESTS 19 1388 79974400
151188665 LongWalk E March 27, 2022, 10:02 p.m. OK Java 11 TESTS 19 2199 142643200
151202430 6ziv E March 28, 2022, 4:33 a.m. OK MS C++ 2017 TESTS 19 2168 79872000
151171543 ruimina E March 27, 2022, 5:26 p.m. OK PyPy 3 TESTS 19 1170 141414400
151169319 misorin E March 27, 2022, 5:07 p.m. OK PyPy 3 TESTS 19 1497 139878400
151174663 DBabichev E March 27, 2022, 5:59 p.m. OK PyPy 3-64 TESTS 19 1138 252211200
151172091 DBabichev E March 27, 2022, 5:31 p.m. OK PyPy 3-64 TESTS 19 1341 252518400
151190713 stand_by E March 27, 2022, 11:12 p.m. OK PyPy 3-64 TESTS 19 3307 126771200
151190924 stand_by E March 27, 2022, 11:19 p.m. OK PyPy 3-64 TESTS 19 3384 126771200
151161505 apilat E March 27, 2022, 4:25 p.m. OK Rust 2021 TESTS 19 1466 154624000

remove filters

Back to search problems