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 |
---|---|---|---|---|---|---|
1379 | Codeforces Round 657 (Div. 2) | FINISHED | False | 7200 | 142030763 | July 19, 2020, 9 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 613 ) | F1 | Chess Strikes Back (easy version) | PROGRAMMING | binary search data structures | 2700 |
B'Note that the difference between easy and hard versions is that in hard version unavailable cells can become available again and in easy version can 't. You can make hacks only if all versions are solved. Ildar and Ivan are tired of chess, but they really like the chessboard, so they invented a new game. The field is a chessboard 2n x 2m : it has 2n rows, 2m columns, and the cell in row i and column j is colored white if i+j is even, and is colored black otherwise. The game proceeds as follows: Ildar marks some of the white cells of the chessboard as unavailable, and asks Ivan to place n x m kings on the remaining white cells in such way, so that there are no kings attacking each other. A king can attack another king if they are located in the adjacent cells, sharing an edge or a corner. Ildar would like to explore different combinations of cells. Initially all cells are marked as available, and then he has q queries. In each query he marks a cell as unavailable. After each query he would like to know whether it is possible to place the kings on the available cells in a desired way. Please help him! The first line of input contains three integers n , m , q ( 1 <= q n, m, q <= q 200 ,000 ) -- the size of the board and the number of queries. q lines follow, each of them contains a description of a query: two integers i and j , denoting a white cell (i, j) on the board ( 1 <= q i <= q 2n , 1 <= q j <= q 2m , i + j is even) that becomes unavailable. It 's guaranteed, that each cell (i, j) appears in input at most once. Output q lines, i -th line should contain answer for a board after i queries of Ildar. This line should contain "YES" if it is possible to place the kings on the available cells in the desired way, or "NO" otherwise. In the first example case after the second query only cells (1, 1) and (1, 5) are '... |
Codeforces Round #657 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
87331786 | team_scarlet | F1 | July 19, 2020, 10:37 a.m. | OK | GNU C++11 | TESTS | 58 | 108 | 9523200 | 2700 | |
87359134 | Koosha_Mv | F1 | July 19, 2020, 1:56 p.m. | OK | GNU C++11 | TESTS | 58 | 109 | 7065600 | 2700 | |
87329703 | MOAstray | F1 | July 19, 2020, 10:33 a.m. | OK | GNU C++11 | TESTS | 58 | 171 | 340582400 | 2700 | |
87346883 | zlc1114 | F1 | July 19, 2020, 11:51 a.m. | OK | GNU C++11 | TESTS | 58 | 234 | 82432000 | 2700 | |
87391431 | chenyewei_1234 | F1 | July 20, 2020, 1:41 a.m. | OK | GNU C++11 | TESTS | 58 | 280 | 50483200 | 2700 | |
87390608 | lavenderwithbluish | F1 | July 20, 2020, 1:07 a.m. | OK | GNU C++11 | TESTS | 58 | 358 | 27955200 | 2700 | |
87394178 | 2016wudi | F1 | July 20, 2020, 2:56 a.m. | OK | GNU C++11 | TESTS | 58 | 374 | 8806400 | 2700 | |
87356445 | Frame233 | F1 | July 19, 2020, 1:28 p.m. | OK | GNU C++11 | TESTS | 58 | 452 | 46080000 | 2700 | |
87390280 | albeXL | F1 | July 20, 2020, 12:50 a.m. | OK | GNU C++11 | TESTS | 58 | 452 | 113254400 | 2700 | |
87354820 | Koosha_Mv | F1 | July 19, 2020, 1:08 p.m. | OK | GNU C++11 | TESTS | 58 | 467 | 7065600 | 2700 | |
87384429 | krijgertje | F1 | July 19, 2020, 8:36 p.m. | OK | GNU C++14 | TESTS | 58 | 140 | 7372800 | 2700 | |
87389869 | SoiMae | F1 | July 20, 2020, 12:30 a.m. | OK | GNU C++14 | TESTS | 58 | 187 | 10137600 | 2700 | |
87372778 | xb0nS | F1 | July 19, 2020, 4:43 p.m. | OK | GNU C++14 | TESTS | 58 | 233 | 29593600 | 2700 | |
87335692 | bktl1love | F1 | July 19, 2020, 10:46 a.m. | OK | GNU C++14 | TESTS | 58 | 249 | 19763200 | 2700 | |
87359945 | YLWang | F1 | July 19, 2020, 2:05 p.m. | OK | GNU C++14 | TESTS | 58 | 264 | 35840000 | 2700 | |
87379870 | danya090699 | F1 | July 19, 2020, 6:48 p.m. | OK | GNU C++14 | TESTS | 58 | 296 | 42496000 | 2700 | |
87352453 | 4fecta | F1 | July 19, 2020, 12:44 p.m. | OK | GNU C++14 | TESTS | 58 | 327 | 58470400 | 2700 | |
87366775 | Kirill22 | F1 | July 19, 2020, 3:20 p.m. | OK | GNU C++14 | TESTS | 58 | 467 | 9011200 | 2700 | |
87366752 | Kirill22 | F1 | July 19, 2020, 3:20 p.m. | OK | GNU C++14 | TESTS | 58 | 701 | 13209600 | 2700 | |
87379603 | RedDreamer | F1 | July 19, 2020, 6:43 p.m. | OK | GNU C++14 | TESTS | 58 | 842 | 16588800 | 2700 | |
87314346 | Medeowex | F1 | July 19, 2020, 9:59 a.m. | OK | GNU C++17 | TESTS | 58 | 139 | 13312000 | 2700 | |
87346349 | vhnvn | F1 | July 19, 2020, 11:47 a.m. | OK | GNU C++17 | TESTS | 58 | 140 | 5324800 | 2700 | |
87379071 | mohammedehab2002 | F1 | July 19, 2020, 6:31 p.m. | OK | GNU C++17 | TESTS | 58 | 140 | 7680000 | 2700 | |
87364264 | Borbi | F1 | July 19, 2020, 2:51 p.m. | OK | GNU C++17 | TESTS | 58 | 140 | 8499200 | 2700 | |
87353880 | Ronnie007 | F1 | July 19, 2020, 12:58 p.m. | OK | GNU C++17 | TESTS | 58 | 155 | 16588800 | 2700 | |
87337260 | kaixinqi | F1 | July 19, 2020, 10:50 a.m. | OK | GNU C++17 | TESTS | 58 | 156 | 6963200 | 2700 | |
87377982 | mohit1O98 | F1 | July 19, 2020, 6:12 p.m. | OK | GNU C++17 | TESTS | 58 | 171 | 10137600 | 2700 | |
87377397 | _overrated_ | F1 | July 19, 2020, 6:02 p.m. | OK | GNU C++17 | TESTS | 58 | 187 | 6963200 | 2700 | |
87378510 | _Ash__ | F1 | July 19, 2020, 6:21 p.m. | OK | GNU C++17 | TESTS | 58 | 187 | 10854400 | 2700 | |
87337639 | Felerius | F1 | July 19, 2020, 10:50 a.m. | OK | GNU C++17 | TESTS | 58 | 202 | 7987200 | 2700 | |
87395278 | RiverHamster | F1 | July 20, 2020, 3:25 a.m. | OK | GNU C++17 (64) | TESTS | 58 | 78 | 11059200 | 2700 | |
87353306 | David_Garcia | F1 | July 19, 2020, 12:52 p.m. | OK | GNU C++17 (64) | TESTS | 58 | 202 | 31539200 | 2700 | |
87351758 | David_Garcia | F1 | July 19, 2020, 12:37 p.m. | OK | GNU C++17 (64) | TESTS | 58 | 218 | 18739200 | 2700 | |
87357476 | nagasawa | F1 | July 19, 2020, 1:38 p.m. | OK | GNU C++17 (64) | TESTS | 58 | 233 | 13926400 | 2700 | |
87359421 | jiangly | F1 | July 19, 2020, 1:59 p.m. | OK | GNU C++17 (64) | TESTS | 58 | 249 | 52531200 | 2700 | |
87390721 | 12tqian | F1 | July 20, 2020, 1:13 a.m. | OK | GNU C++17 (64) | TESTS | 58 | 249 | 64819200 | 2700 | |
87368897 | Geothermal | F1 | July 19, 2020, 3:46 p.m. | OK | GNU C++17 (64) | TESTS | 58 | 265 | 65126400 | 2700 | |
87385267 | Marckess | F1 | July 19, 2020, 8:59 p.m. | OK | GNU C++17 (64) | TESTS | 58 | 342 | 23654400 | 2700 | |
87365135 | galen_colin | F1 | July 19, 2020, 3 p.m. | OK | GNU C++17 (64) | TESTS | 58 | 343 | 60416000 | 2700 | |
87350550 | Roundgod | F1 | July 19, 2020, 12:25 p.m. | OK | GNU C++17 (64) | TESTS | 58 | 358 | 42086400 | 2700 | |
87384588 | MagentaCobra | F1 | July 19, 2020, 8:40 p.m. | OK | Java 8 | TESTS | 58 | 748 | 29593600 | 2700 | |
87393246 | Tlatoani | F1 | July 20, 2020, 2:32 a.m. | OK | Kotlin | TESTS | 58 | 373 | 31334400 | 2700 | |
87388901 | sansen | F1 | July 19, 2020, 11:31 p.m. | OK | Rust | TESTS | 58 | 233 | 52838400 | 2700 | |
87332393 | sansen | F1 | July 19, 2020, 10:39 a.m. | OK | Rust | TESTS | 58 | 998 | 49664000 | 2700 |
Back to search problems