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 |
---|---|---|---|---|---|---|
1451 | Codeforces Round 685 (Div. 2) | FINISHED | False | 8100 | 131383510 | Nov. 21, 2020, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1005 ) | F | Nullify The Matrix | PROGRAMMING | bitmasks games |
B'Jeel and Ashish play a game on an n x m matrix. The rows are numbered 1 to n from top to bottom and the columns are numbered 1 to m from left to right. They play turn by turn. Ashish goes first. Initially, each cell of the matrix contains a non-negative integer. Each turn, a player must perform all of the following actions in order. If the starting and ending cells are the same, then as per the rules, the value of the cell is decreased. No other operations are performed. The game ends when all the values become zero. The player who is unable to make a move loses. It can be shown that the game will end in a finite number of moves if both players play optimally. Given the initial matrix, if both players play optimally, can you predict who will win? The first line contains a single integer t ( 1 <= q t <= q 10 ) -- the number of test cases. The description of each test case is as follows. The first line of each test case contains two integers n and m ( 1 <= q n, m <= q 100 ) -- the dimensions of the matrix. The next n lines contain m space separated integers a_{i,j} ( 0 <= q a_{i,j} <= q 10^6 ) -- the values of each cell of the matrix. For each test case, if Ashish wins the game, print "Ashish", otherwise print "Jeel" (without the quotes). In the first test case, the only cell of the matrix is 0. There are no moves Ashish can make. Jeel is the winner. In the second test case, Ashish can choose (r_1, c_1) = (r_2, c_2) = (1,3) and reduce the cell to 0 , leaving [0, 0, 0] . Jeel cannot perform any moves. Ashish wins. '... |
Editorial — Codeforces Round #685 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
99219751 | lanChe | F | Nov. 22, 2020, 5:49 a.m. | OK | GNU C++11 | TESTS | 63 | 31 | 0 | ||
99214330 | 2016wudi | F | Nov. 22, 2020, 4:24 a.m. | OK | GNU C++11 | TESTS | 63 | 31 | 0 | ||
99212685 | leapfrog | F | Nov. 22, 2020, 3:53 a.m. | OK | GNU C++11 | TESTS | 63 | 31 | 0 | ||
99212143 | Zhaoph_ | F | Nov. 22, 2020, 3:40 a.m. | OK | GNU C++11 | TESTS | 63 | 31 | 0 | ||
99210103 | gswsc30 | F | Nov. 22, 2020, 2:49 a.m. | OK | GNU C++11 | TESTS | 63 | 31 | 0 | ||
99206193 | Daniel_Jiang | F | Nov. 22, 2020, 12:48 a.m. | OK | GNU C++11 | TESTS | 63 | 31 | 0 | ||
99194011 | georgerapeanu | F | Nov. 21, 2020, 7:23 p.m. | OK | GNU C++11 | TESTS | 63 | 31 | 102400 | ||
99219458 | jhknmj | F | Nov. 22, 2020, 5:44 a.m. | OK | GNU C++11 | TESTS | 63 | 31 | 3993600 | ||
99194764 | jack112739 | F | Nov. 21, 2020, 7:27 p.m. | OK | GNU C++11 | TESTS | 63 | 31 | 3993600 | ||
99213237 | Prabowo | F | Nov. 22, 2020, 4:05 a.m. | OK | GNU C++11 | TESTS | 63 | 46 | 0 | ||
99219280 | Mr.Doap | F | Nov. 22, 2020, 5:42 a.m. | OK | GNU C++14 | TESTS | 63 | 31 | 0 | ||
99212682 | Persephone | F | Nov. 22, 2020, 3:53 a.m. | OK | GNU C++14 | TESTS | 63 | 31 | 102400 | ||
99214802 | 0wuming0 | F | Nov. 22, 2020, 4:32 a.m. | OK | GNU C++14 | TESTS | 63 | 46 | 0 | ||
99213001 | Nero | F | Nov. 22, 2020, 4:01 a.m. | OK | GNU C++14 | TESTS | 63 | 46 | 0 | ||
99207577 | kmjp | F | Nov. 22, 2020, 1:39 a.m. | OK | GNU C++14 | TESTS | 63 | 46 | 0 | ||
99202565 | Seyaua | F | Nov. 21, 2020, 9:59 p.m. | OK | GNU C++14 | TESTS | 63 | 46 | 0 | ||
99195733 | danya090699 | F | Nov. 21, 2020, 7:36 p.m. | OK | GNU C++14 | TESTS | 63 | 46 | 0 | ||
99198746 | NaimSS | F | Nov. 21, 2020, 8:22 p.m. | OK | GNU C++14 | TESTS | 63 | 46 | 204800 | ||
99211114 | ghoshsai5000 | F | Nov. 22, 2020, 3:15 a.m. | OK | GNU C++14 | TESTS | 63 | 93 | 0 | ||
99208407 | Moririn2528 | F | Nov. 22, 2020, 2:04 a.m. | OK | GNU C++14 | TESTS | 63 | 93 | 0 | ||
99210589 | 9baka_Cirno | F | Nov. 22, 2020, 3:02 a.m. | OK | GNU C++17 | TESTS | 63 | 31 | 0 | ||
99181864 | timf1089 | F | Nov. 21, 2020, 4:31 p.m. | OK | GNU C++17 | TESTS | 63 | 31 | 0 | ||
99181141 | kamer | F | Nov. 21, 2020, 4:29 p.m. | OK | GNU C++17 | TESTS | 63 | 31 | 0 | ||
99193868 | leaf1415 | F | Nov. 21, 2020, 7:22 p.m. | OK | GNU C++17 | TESTS | 63 | 31 | 102400 | ||
99206457 | nauynix | F | Nov. 22, 2020, 1 a.m. | OK | GNU C++17 | TESTS | 63 | 31 | 204800 | ||
99206132 | D4nnyLee | F | Nov. 22, 2020, 12:45 a.m. | OK | GNU C++17 | TESTS | 63 | 31 | 204800 | ||
99194462 | Bench0310 | F | Nov. 21, 2020, 7:25 p.m. | OK | GNU C++17 | TESTS | 63 | 31 | 204800 | ||
99188221 | nuip | F | Nov. 21, 2020, 4:48 p.m. | OK | GNU C++17 | TESTS | 63 | 31 | 204800 | ||
99182260 | darian123 | F | Nov. 21, 2020, 4:32 p.m. | OK | GNU C++17 | TESTS | 63 | 31 | 204800 | ||
99187376 | wiwitrifai | F | Nov. 21, 2020, 4:46 p.m. | OK | GNU C++17 | TESTS | 63 | 31 | 307200 | ||
99215962 | lucifer1004 | F | Nov. 22, 2020, 4:52 a.m. | OK | GNU C++17 (64) | TESTS | 63 | 31 | 0 | ||
99210840 | Binary_Search_Tree | F | Nov. 22, 2020, 3:09 a.m. | OK | GNU C++17 (64) | TESTS | 63 | 31 | 0 | ||
99208880 | QFYNH | F | Nov. 22, 2020, 2:18 a.m. | OK | GNU C++17 (64) | TESTS | 63 | 31 | 0 | ||
99207940 | _Ash__ | F | Nov. 22, 2020, 1:50 a.m. | OK | GNU C++17 (64) | TESTS | 63 | 31 | 0 | ||
99205394 | m.hasan01 | F | Nov. 22, 2020, 12:08 a.m. | OK | GNU C++17 (64) | TESTS | 63 | 31 | 0 | ||
99203280 | Fly_37 | F | Nov. 21, 2020, 10:26 p.m. | OK | GNU C++17 (64) | TESTS | 63 | 31 | 0 | ||
99202671 | Wernier | F | Nov. 21, 2020, 10:04 p.m. | OK | GNU C++17 (64) | TESTS | 63 | 31 | 0 | ||
99198317 | pseuda | F | Nov. 21, 2020, 8:14 p.m. | OK | GNU C++17 (64) | TESTS | 63 | 31 | 0 | ||
99194500 | ankeet | F | Nov. 21, 2020, 7:25 p.m. | OK | GNU C++17 (64) | TESTS | 63 | 31 | 0 | ||
99194135 | tfg | F | Nov. 21, 2020, 7:23 p.m. | OK | GNU C++17 (64) | TESTS | 63 | 31 | 0 | ||
99184264 | uwi | F | Nov. 21, 2020, 4:38 p.m. | OK | Java 11 | TESTS | 63 | 280 | 0 | ||
99198163 | Scotty_pwnz | F | Nov. 21, 2020, 8:11 p.m. | OK | Kotlin | TESTS | 63 | 156 | 0 | ||
99179564 | generic_placeholder_name | F | Nov. 21, 2020, 4:24 p.m. | OK | PyPy 3 | TESTS | 63 | 264 | 3276800 | ||
99215263 | sh1194 | F | Nov. 22, 2020, 4:40 a.m. | OK | Python 3 | TESTS | 63 | 124 | 512000 | ||
99215164 | sh1194 | F | Nov. 22, 2020, 4:39 a.m. | OK | Python 3 | TESTS | 63 | 124 | 512000 |
Back to search problems