Codeforces Round 532 (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
1100 Codeforces Round 532 (Div. 2) FINISHED False 7200 190049087 Jan. 13, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 879 ) D Dasha and Chess PROGRAMMING constructive algorithms games interactive 2400

B"This is an interactive task. Dasha and NN like playing chess. While playing a match they decided that normal chess isn't interesting enough for them, so they invented a game described below. There are 666 black rooks and 1 white king on the chess board of size 999 x 999 . The white king wins if he gets checked by rook, or, in other words, if he moves onto the square which shares either a row or column with a black rook. The sides take turns, starting with white. NN plays as a white king and on each of his turns he moves a king to one of the squares that are adjacent to his current position either by side or diagonally, or, formally, if the king was on the square (x, y) , it can move to the square (nx, ny) if and only max (|nx - x|, |ny - y|) = 1 , 1 <= q nx, ny <= q 999 . NN is also forbidden from moving onto the squares occupied with black rooks, however, he can move onto the same row or column as a black rook. Dasha, however, neglects playing by the chess rules, and instead of moving rooks normally she moves one of her rooks on any space devoid of other chess pieces. It is also possible that the rook would move onto the same square it was before and the position wouldn't change. However, she can't move the rook on the same row or column with the king. Each player makes 2000 turns, if the white king wasn't checked by a black rook during those turns, black wins. NN doesn't like losing, but thinks the task is too difficult for him, so he asks you to write a program that will always win playing for the white king. Note that Dasha can see your king and play depending on its position. In the beginning your program will receive 667 lines from input. Each line contains two integers x and y ( 1 <= q x, y <= q 999 ) -- the piece's coordinates. The first line contains the coordinates of the king and the next 666 contain the coordinates of the rooks. The first coordinate denotes the num"...

Tutorials

Unofficial Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
57565409 vjudge5 D July 23, 2019, 2:46 a.m. OK Clang++17 Diagnostics TESTS 68 124 1228800 2400
48360705 YuzuChan D Jan. 13, 2019, 6:29 p.m. OK Clang++17 Diagnostics TESTS 68 171 5324800 2400
48393312 rainboy D Jan. 14, 2019, 4:24 p.m. OK GNU C11 TESTS 68 62 0 2400
48363558 tgudlek D Jan. 13, 2019, 7:57 p.m. OK GNU C++11 TESTS 68 31 0 2400
48469592 Kognition D Jan. 16, 2019, 7:16 p.m. OK GNU C++11 TESTS 68 31 0 2400
48654301 ReaLNero1 D Jan. 21, 2019, 1:28 a.m. OK GNU C++11 TESTS 68 31 1024000 2400
48444775 00zj D Jan. 16, 2019, 6:49 a.m. OK GNU C++11 TESTS 68 31 1024000 2400
49138524 Alance D Jan. 29, 2019, 8:59 a.m. OK GNU C++11 TESTS 68 46 0 2400
48462801 ooiiuu D Jan. 16, 2019, 3:35 p.m. OK GNU C++11 TESTS 68 46 0 2400
48379360 SendThemToHell D Jan. 14, 2019, 9:37 a.m. OK GNU C++11 TESTS 68 46 0 2400
48363531 tgudlek D Jan. 13, 2019, 7:56 p.m. OK GNU C++11 TESTS 68 46 0 2400
48360428 memopaper D Jan. 13, 2019, 6:23 p.m. OK GNU C++11 TESTS 68 46 0 2400
54969787 jebouin D June 2, 2019, 8:05 a.m. OK GNU C++11 TESTS 68 46 0 2400
48664986 giuseppe55 D Jan. 21, 2019, 7:43 a.m. OK GNU C++14 TESTS 68 46 0 2400
48644037 Weheineman D Jan. 20, 2019, 4:32 p.m. OK GNU C++14 TESTS 68 46 0 2400
48502079 cristian1997 D Jan. 17, 2019, 3:38 p.m. OK GNU C++14 TESTS 68 46 0 2400
48444780 master_me D Jan. 16, 2019, 6:49 a.m. OK GNU C++14 TESTS 68 46 0 2400
48404055 Soul_Full_Of_Thunder D Jan. 15, 2019, 1:37 a.m. OK GNU C++14 TESTS 68 46 0 2400
48400856 bitman_123 D Jan. 14, 2019, 9 p.m. OK GNU C++14 TESTS 68 46 0 2400
48393340 Graphter D Jan. 14, 2019, 4:25 p.m. OK GNU C++14 TESTS 68 46 0 2400
48379160 SBOne D Jan. 14, 2019, 9:30 a.m. OK GNU C++14 TESTS 68 46 0 2400
48377318 walht D Jan. 14, 2019, 8:22 a.m. OK GNU C++14 TESTS 68 46 0 2400
51964980 phillotunru1 SamuelLH D March 29, 2019, 9:23 a.m. OK GNU C++14 TESTS 68 46 0 2400
48405513 Rafaaaaaaaaaaaam D Jan. 15, 2019, 3:13 a.m. OK GNU C++17 TESTS 68 46 0 2400
48361219 aeremin D Jan. 13, 2019, 6:43 p.m. OK GNU C++17 TESTS 68 46 0 2400
60896922 Umi D Sept. 19, 2019, 7:13 p.m. OK GNU C++17 TESTS 68 46 0 2400
48362105 proofbycontradiction D Jan. 13, 2019, 7:09 p.m. OK GNU C++17 TESTS 68 46 204800 2400
48871648 cjnwq D Jan. 24, 2019, 6:14 a.m. OK GNU C++17 TESTS 68 46 307200 2400
48574062 LavishGulati D Jan. 19, 2019, 1:16 p.m. OK GNU C++17 TESTS 68 46 307200 2400
67701495 afdanilkin D Dec. 27, 2019, 2:42 p.m. OK GNU C++17 TESTS 68 46 307200 2400
48429142 Morokei D Jan. 15, 2019, 4:24 p.m. OK GNU C++17 TESTS 68 46 307200 2400
48392865 Kirundel D Jan. 14, 2019, 4:10 p.m. OK GNU C++17 TESTS 68 46 307200 2400
48470904 romanovsavelij D Jan. 16, 2019, 8:15 p.m. OK GNU C++17 TESTS 68 46 307200 2400
48421337 Pradyumn.Agrawal D Jan. 15, 2019, 12:57 p.m. OK Java 8 TESTS 68 171 0 2400
48424691 Srinivasa_Ramanujan D Jan. 15, 2019, 2:20 p.m. OK Java 8 TESTS 68 171 0 2400
48421780 Pradyumn.Agrawal D Jan. 15, 2019, 1:08 p.m. OK Java 8 TESTS 68 171 0 2400
48421727 Pradyumn.Agrawal D Jan. 15, 2019, 1:07 p.m. OK Java 8 TESTS 68 171 0 2400
48421608 Pradyumn.Agrawal D Jan. 15, 2019, 1:04 p.m. OK Java 8 TESTS 68 171 0 2400
48412602 kukreja-vlk D Jan. 15, 2019, 8:37 a.m. OK Java 8 TESTS 68 171 0 2400
48349877 Harpae D Jan. 13, 2019, 3:49 p.m. OK Java 8 TESTS 68 186 0 2400
48393311 Dukkha D Jan. 14, 2019, 4:24 p.m. OK Java 8 TESTS 68 187 0 2400
48579291 catforce D Jan. 19, 2019, 3:45 p.m. OK Java 8 TESTS 68 202 0 2400
48415263 slava812 D Jan. 15, 2019, 10:01 a.m. OK Java 8 TESTS 68 202 0 2400
48989952 Quaternion D Jan. 26, 2019, 1:57 p.m. OK Kotlin TESTS 68 249 1945600 2400
48364297 omikad D Jan. 13, 2019, 8:25 p.m. OK Mono C# TESTS 68 93 5017600 2400
48372985 eki D Jan. 14, 2019, 5:52 a.m. OK Mono C# TESTS 68 108 4300800 2400
59513117 vjudge5 D Aug. 26, 2019, 8:42 a.m. OK MS C++ TESTS 68 46 1024000 2400
59513415 vjudge3 D Aug. 26, 2019, 8:47 a.m. OK MS C++ TESTS 68 46 1024000 2400
48435636 Dru D Jan. 15, 2019, 8:11 p.m. OK MS C++ TESTS 68 61 102400 2400
48592503 dyxx D Jan. 20, 2019, 3:50 a.m. OK MS C++ TESTS 68 61 307200 2400
59513258 vjudge2 D Aug. 26, 2019, 8:44 a.m. OK MS C++ TESTS 68 61 1024000 2400
48346195 math957963 D Jan. 13, 2019, 3:28 p.m. OK MS C++ TESTS 68 61 3993600 2400
48437242 grey D Jan. 15, 2019, 9:44 p.m. OK MS C++ TESTS 68 62 0 2400
48435820 Dru D Jan. 15, 2019, 8:21 p.m. OK MS C++ TESTS 68 62 102400 2400
48667018 sk0 D Jan. 21, 2019, 8:38 a.m. OK Ocaml TESTS 68 61 3993600 2400
48361011 Darooha D Jan. 13, 2019, 6:37 p.m. OK Ocaml TESTS 68 109 307200 2400
49884581 gatsko D Feb. 13, 2019, 8:16 p.m. OK PyPy 2 TESTS 68 264 6246400 2400
48389586 YESMAths D Jan. 14, 2019, 2:39 p.m. OK PyPy 2 TESTS 68 280 6963200 2400
48347353 pajenegod D Jan. 13, 2019, 3:34 p.m. OK PyPy 2 TESTS 68 295 5324800 2400
48389780 YESMAths D Jan. 14, 2019, 2:44 p.m. OK PyPy 2 TESTS 68 327 6656000 2400
48365414 EA5 D Jan. 13, 2019, 9:27 p.m. OK PyPy 3 TESTS 68 249 7065600 2400
48426386 titia D Jan. 15, 2019, 3:07 p.m. OK PyPy 3 TESTS 68 296 4198400 2400
48361979 lollihunter D Jan. 13, 2019, 7:05 p.m. OK PyPy 3 TESTS 68 311 2662400 2400
48504033 nadchu D Jan. 17, 2019, 4:41 p.m. OK PyPy 3 TESTS 68 343 2867200 2400
48362525 bigbigbigcat111 D Jan. 13, 2019, 7:22 p.m. OK PyPy 3 TESTS 68 358 4403200 2400
58216269 tiantian5 D Aug. 3, 2019, 10:52 a.m. OK PyPy 3 TESTS 68 404 10752000 2400
48366002 WNG D Jan. 13, 2019, 10:10 p.m. OK Python 2 TESTS 68 202 102400 2400
50155951 Luxo D Feb. 19, 2019, 10:03 a.m. OK Python 2 TESTS 68 218 102400 2400
48364887 EA5 D Jan. 13, 2019, 8:55 p.m. OK Python 3 TESTS 68 187 5836800 2400
48365356 EA5 D Jan. 13, 2019, 9:23 p.m. OK Python 3 TESTS 68 202 5836800 2400
48372455 eddy1021 D Jan. 14, 2019, 5:28 a.m. OK Python 3 TESTS 68 326 307200 2400
48353074 Kiri8128 D Jan. 13, 2019, 4:10 p.m. OK Python 3 TESTS 68 327 307200 2400
48426399 titia D Jan. 15, 2019, 3:07 p.m. OK Python 3 TESTS 68 467 614400 2400
48362354 yakamoto D Jan. 13, 2019, 7:17 p.m. OK Scala TESTS 68 529 0 2400

remove filters

Back to search problems