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 |
---|---|---|---|---|---|---|
1898 | Codeforces Round 910 (Div. 2) | FINISHED | False | 7200 | 36775463 | Nov. 19, 2023, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 831 ) | F | Vova Escapes the Matrix | PROGRAMMING | dfs and similar shortest paths |
B"Following a world tour, Vova got himself trapped inside an n x m matrix. Rows of this matrix are numbered by integers from 1 to n from top to bottom, and the columns are numbered by integers from 1 to m from left to right. The cell (i, j) is the cell on the intersection of row i and column j for 1 <= q i <= q n and 1 <= q j <= q m . Some cells of this matrix are blocked by obstacles, while all other cells are empty. Vova occupies one of the empty cells. It is guaranteed that cells (1, 1) , (1, m) , (n, 1) , (n, m) (that is, corners of the matrix) are blocked. Vova can move from one empty cell to another empty cell if they share a side. Vova can escape the matrix from any empty cell on the boundary of the matrix; these cells are called exits. Vova defines the type of the matrix based on the number of exits he can use to escape the matrix: Before Vova starts moving, Misha can create more obstacles to block more cells. However, he cannot change the type of the matrix. What is the maximum number of cells Misha can block, so that the type of the matrix remains the same? Misha cannot block the cell Vova is currently standing on. Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= q t <= q 10 ,000 ). The description of test cases follows. The first line of each test case contains two integers n and m ( 3 <= q n,m <= q 1000 ) -- the dimensions of the matrix. The next n lines contain the description of the matrix: the i -th ( 1 <= i <= n ) of them contains a string of length m , consisting of characters '.', '#', and 'V'. The j -th character of the i -th line describes the cell (i, j) of the matrix. The dot '.' denotes an empty cell, the sharp '#' denotes a blocked cell, and the letter 'V' denotes an empty cell where Vova initially is. It is guaranteed that the corners o"... |
Editorial for Codeforces Round #910 (Div. 2) |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
233517973 | BBD186587 | F | Nov. 20, 2023, 4:53 a.m. | OK | GNU C++14 | TESTS | 61 | 124 | 21708800 | ||
233509324 | omeganot | F | Nov. 20, 2023, 1:43 a.m. | OK | GNU C++14 | TESTS | 61 | 186 | 30515200 | ||
233515454 | MCuong | F | Nov. 20, 2023, 4:02 a.m. | OK | GNU C++17 | TESTS | 61 | 109 | 21811200 | ||
233475347 | Mtaylor | F | Nov. 19, 2023, 4:53 p.m. | OK | GNU C++17 | TESTS | 61 | 109 | 32665600 | ||
233515781 | kes0716 | F | Nov. 20, 2023, 4:10 a.m. | OK | GNU C++17 | TESTS | 61 | 124 | 17612800 | ||
233516847 | Nurss | F | Nov. 20, 2023, 4:32 a.m. | OK | GNU C++17 | TESTS | 61 | 124 | 21401600 | ||
233517951 | Kriz_Wu | F | Nov. 20, 2023, 4:53 a.m. | OK | GNU C++17 | TESTS | 61 | 124 | 21811200 | ||
233519878 | old_wrp | F | Nov. 20, 2023, 5:24 a.m. | OK | GNU C++17 | TESTS | 61 | 124 | 22016000 | ||
233470825 | SpaceJellyfish | F | Nov. 19, 2023, 4:26 p.m. | OK | GNU C++17 | TESTS | 61 | 139 | 21401600 | ||
233499939 | foammm | F | Nov. 19, 2023, 9:20 p.m. | OK | GNU C++17 | TESTS | 61 | 139 | 30105600 | ||
233507491 | AboAbdoMC | F | Nov. 20, 2023, 12:48 a.m. | OK | GNU C++17 | TESTS | 61 | 155 | 32768000 | ||
233483862 | CepryH9 | F | Nov. 19, 2023, 6:02 p.m. | OK | GNU C++17 | TESTS | 61 | 156 | 23040000 | ||
233508644 | AustinJiang | F | Nov. 20, 2023, 1:23 a.m. | OK | GNU C++17 (64) | TESTS | 61 | 140 | 29798400 | ||
233509558 | wsyear | F | Nov. 20, 2023, 1:50 a.m. | OK | GNU C++17 (64) | TESTS | 61 | 140 | 33792000 | ||
233511437 | ahey | F | Nov. 20, 2023, 2:36 a.m. | OK | GNU C++17 (64) | TESTS | 61 | 155 | 45670400 | ||
233514290 | LeavingZ | F | Nov. 20, 2023, 3:38 a.m. | OK | GNU C++17 (64) | TESTS | 61 | 171 | 17408000 | ||
233517002 | Worma | F | Nov. 20, 2023, 4:35 a.m. | OK | GNU C++17 (64) | TESTS | 61 | 186 | 29491200 | ||
233475363 | Wielomian | F | Nov. 19, 2023, 4:53 p.m. | OK | GNU C++17 (64) | TESTS | 61 | 187 | 40448000 | ||
233461934 | liympanda | F | Nov. 19, 2023, 3:58 p.m. | OK | GNU C++17 (64) | TESTS | 61 | 218 | 81920000 | ||
233509421 | Pointy | F | Nov. 20, 2023, 1:46 a.m. | OK | GNU C++17 (64) | TESTS | 61 | 264 | 25395200 | ||
233475971 | MarcosK | F | Nov. 19, 2023, 4:55 p.m. | OK | GNU C++17 (64) | TESTS | 61 | 358 | 75366400 | ||
233462809 | CUCO | F | Nov. 19, 2023, 4:01 p.m. | OK | GNU C++17 (64) | TESTS | 61 | 358 | 75366400 | ||
233516416 | paekae | F | Nov. 20, 2023, 4:23 a.m. | OK | GNU C++20 (64) | TESTS | 61 | 109 | 17510400 | ||
233508678 | ian_HLX | F | Nov. 20, 2023, 1:24 a.m. | OK | GNU C++20 (64) | TESTS | 61 | 124 | 12390400 | ||
233519111 | tarjen | F | Nov. 20, 2023, 5:12 a.m. | OK | GNU C++20 (64) | TESTS | 61 | 139 | 23449600 | ||
233461425 | Sulfox | F | Nov. 19, 2023, 3:57 p.m. | OK | GNU C++20 (64) | TESTS | 61 | 139 | 24473600 | ||
233476137 | mcqueencin | F | Nov. 19, 2023, 4:56 p.m. | OK | GNU C++20 (64) | TESTS | 61 | 140 | 18227200 | ||
233475633 | minato | F | Nov. 19, 2023, 4:54 p.m. | OK | GNU C++20 (64) | TESTS | 61 | 140 | 22630400 | ||
233489942 | fcw | F | Nov. 19, 2023, 7:05 p.m. | OK | GNU C++20 (64) | TESTS | 61 | 140 | 23040000 | ||
233467320 | Kude | F | Nov. 19, 2023, 4:15 p.m. | OK | GNU C++20 (64) | TESTS | 61 | 140 | 23347200 | ||
233509498 | shaosy | F | Nov. 20, 2023, 1:49 a.m. | OK | GNU C++20 (64) | TESTS | 61 | 140 | 27750400 | ||
233476323 | JovanB | F | Nov. 19, 2023, 4:57 p.m. | OK | GNU C++20 (64) | TESTS | 61 | 140 | 32665600 | ||
233476617 | misorin | F | Nov. 19, 2023, 4:59 p.m. | OK | PyPy 3-64 | TESTS | 61 | 670 | 117248000 | ||
233519340 | Little_Sheep_Yawn | F | Nov. 20, 2023, 5:15 a.m. | OK | PyPy 3-64 | TESTS | 61 | 1247 | 90214400 |
Back to search problems