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 |
---|---|---|---|---|---|---|
1225 | Technocup 2020 - Elimination Round 2 | FINISHED | False | 7200 | 159735299 | Oct. 26, 2019, 11:05 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1901 ) | E | Rock Is Push | PROGRAMMING | binary search dp | 2200 |
B'You are at the top left cell (1, 1) of an n x m labyrinth. Your goal is to get to the bottom right cell (n, m) . You can only move right or down, one cell per step. Moving right from a cell (x, y) takes you to the cell (x, y + 1) , while moving down takes you to the cell (x + 1, y) . Some cells of the labyrinth contain rocks. When you move to a cell with rock, the rock is pushed to the next cell in the direction you 're moving. If the next cell contains a rock, it gets pushed further, and so on. The labyrinth is surrounded by impenetrable walls, thus any move that would put you or any rock outside of the labyrinth is illegal. Count the number of different legal paths you can take from the start to the goal modulo 10^9 + 7 . Two paths are considered different if there is at least one cell that is visited in one path, but not visited in the other. The first line contains two integers n, m -- dimensions of the labyrinth ( 1 <= q n, m <= q 2000 ). Next n lines describe the labyrinth. Each of these lines contains m characters. The j -th character of the i -th of these lines is equal to "R" if the cell (i, j) contains a rock, or "." if the cell (i, j) is empty. It is guaranteed that the starting cell (1, 1) is empty. Print a single integer -- the number of different legal paths from (1, 1) to (n, m) modulo 10^9 + 7 . In the first sample case we can 't (and don 't have to) move, hence the only path consists of a single cell (1, 1) . In the second sample case the goal is blocked and is unreachable. Illustrations for the third sample case can be found here: https://assets.codeforces.com/rounds/1225/index.html '... |
70898 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
63784083 | daifucong | E | Oct. 30, 2019, 11:50 a.m. | OK | GNU C++11 | TESTS | 27 | 78 | 64819200 | 2200 | |
63687857 | luogu_bot2 | E | Oct. 29, 2019, 12:05 a.m. | OK | GNU C++11 | TESTS | 27 | 93 | 68505600 | 2200 | |
63687841 | PaulShi | E | Oct. 29, 2019, 12:04 a.m. | OK | GNU C++11 | TESTS | 27 | 93 | 68505600 | 2200 | |
63772359 | CTP_314 | E | Oct. 30, 2019, 8:26 a.m. | OK | GNU C++11 | TESTS | 27 | 93 | 96460800 | 2200 | |
64478031 | countercurrent-time | E | Nov. 7, 2019, 3 p.m. | OK | GNU C++11 | TESTS | 27 | 93 | 96972800 | 2200 | |
68712705 | luogu_bot5 | E | Jan. 13, 2020, 1:29 p.m. | OK | GNU C++11 | TESTS | 27 | 93 | 100659200 | 2200 | |
64061577 | jangjie | E | Nov. 2, 2019, 4:06 a.m. | OK | GNU C++11 | TESTS | 27 | 108 | 68812800 | 2200 | |
63705989 | Blood_Wu_Ren | E | Oct. 29, 2019, 8:26 a.m. | OK | GNU C++11 | TESTS | 27 | 108 | 97177600 | 2200 | |
67463663 | vjudge1 | E | Dec. 23, 2019, 10:13 a.m. | OK | GNU C++11 | TESTS | 27 | 108 | 105267200 | 2200 | |
63761729 | w616561153 | E | Oct. 30, 2019, 4:13 a.m. | OK | GNU C++11 | TESTS | 27 | 108 | 105267200 | 2200 | |
64139091 | BeNoble | E | Nov. 3, 2019, 8 a.m. | OK | GNU C++14 | TESTS | 27 | 108 | 64409600 | 2200 | |
63921498 | BeNoble | E | Oct. 31, 2019, 11:50 a.m. | OK | GNU C++14 | TESTS | 27 | 109 | 64409600 | 2200 | |
66182360 | xyyf | E | Dec. 2, 2019, 1:15 p.m. | OK | GNU C++14 | TESTS | 27 | 109 | 97177600 | 2200 | |
66673180 | sruthi_1729 | E | Dec. 12, 2019, 10:13 a.m. | OK | GNU C++14 | TESTS | 27 | 124 | 68505600 | 2200 | |
64153834 | LanrTabe | E | Nov. 3, 2019, 12:11 p.m. | OK | GNU C++14 | TESTS | 27 | 124 | 68710400 | 2200 | |
68474727 | yyhslfw | E | Jan. 10, 2020, 4:46 a.m. | OK | GNU C++14 | TESTS | 27 | 124 | 100659200 | 2200 | |
63556278 | BtnK_ij | E | Oct. 27, 2019, 12:58 p.m. | OK | GNU C++14 | TESTS | 27 | 124 | 101171200 | 2200 | |
63729723 | BestMSN | E | Oct. 29, 2019, 1:40 p.m. | OK | GNU C++14 | TESTS | 27 | 124 | 112742400 | 2200 | |
66196283 | x20 | E | Dec. 2, 2019, 6:34 p.m. | OK | GNU C++14 | TESTS | 27 | 139 | 75264000 | 2200 | |
68327497 | animeFORever | E | Jan. 6, 2020, 5:25 p.m. | OK | GNU C++14 | TESTS | 27 | 140 | 69324800 | 2200 | |
64774062 | Edwivv | E | Nov. 13, 2019, 2:42 a.m. | OK | GNU C++17 | TESTS | 27 | 108 | 68812800 | 2200 | |
63726301 | qhqh | E | Oct. 29, 2019, 12:46 p.m. | OK | GNU C++17 | TESTS | 27 | 108 | 68812800 | 2200 | |
63621611 | mr_d | E | Oct. 27, 2019, 11:40 p.m. | OK | GNU C++17 | TESTS | 27 | 109 | 101171200 | 2200 | |
63732014 | Fyodor | E | Oct. 29, 2019, 2:18 p.m. | OK | GNU C++17 | TESTS | 27 | 124 | 36044800 | 2200 | |
66010852 | wish2lucky | E | Nov. 30, 2019, 2:24 a.m. | OK | GNU C++17 | TESTS | 27 | 124 | 68198400 | 2200 | |
66010895 | wish2lucky | E | Nov. 30, 2019, 2:26 a.m. | OK | GNU C++17 | TESTS | 27 | 124 | 68812800 | 2200 | |
64293481 | F.J | E | Nov. 5, 2019, 7:52 a.m. | OK | GNU C++17 | TESTS | 27 | 124 | 71577600 | 2200 | |
67165537 | G3meux | E | Dec. 18, 2019, 3:25 p.m. | OK | GNU C++17 | TESTS | 27 | 140 | 84582400 | 2200 | |
67571638 | gharrma | E | Dec. 24, 2019, 10:15 p.m. | OK | GNU C++17 | TESTS | 27 | 140 | 123596800 | 2200 | |
63781547 | Dalenator | E | Oct. 30, 2019, 11:11 a.m. | OK | GNU C++17 | TESTS | 27 | 155 | 100352000 | 2200 | |
64435086 | 4mda4mda | E | Nov. 7, 2019, 12:40 a.m. | OK | Java 8 | TESTS | 27 | 421 | 122777600 | 2200 | |
65898753 | tmwilliamlin168 | E | Nov. 28, 2019, 7:39 a.m. | OK | Java 8 | TESTS | 27 | 436 | 122777600 | 2200 | |
63990389 | Spheniscine | E | Nov. 1, 2019, 12:57 p.m. | OK | Kotlin | TESTS | 27 | 390 | 39833600 | 2200 | |
63987534 | Spheniscine | E | Nov. 1, 2019, 12:13 p.m. | OK | Kotlin | TESTS | 27 | 451 | 39833600 | 2200 | |
63678252 | AndreWiking | E | Oct. 28, 2019, 7:01 p.m. | OK | MS C++ 2017 | TESTS | 27 | 171 | 42393600 | 2200 | |
63683178 | AndreWiking | E | Oct. 28, 2019, 8:55 p.m. | OK | MS C++ 2017 | TESTS | 27 | 186 | 42291200 | 2200 | |
63683365 | AndreWiking | E | Oct. 28, 2019, 9 p.m. | OK | MS C++ 2017 | TESTS | 27 | 186 | 42393600 | 2200 | |
63645145 | AndreWiking | E | Oct. 28, 2019, 9:25 a.m. | OK | MS C++ 2017 | TESTS | 27 | 187 | 42291200 | 2200 | |
63645392 | AndreWiking | E | Oct. 28, 2019, 9:29 a.m. | OK | MS C++ 2017 | TESTS | 27 | 217 | 52121600 | 2200 | |
63950136 | Slamur | E | Oct. 31, 2019, 8:46 p.m. | OK | MS C++ 2017 | TESTS | 27 | 342 | 209715200 | 2200 | |
63620659 | AndreWiking | E | Oct. 27, 2019, 10:38 p.m. | OK | MS C++ 2017 | TESTS | 27 | 608 | 68198400 | 2200 | |
63620762 | AndreWiking | E | Oct. 27, 2019, 10:45 p.m. | OK | MS C++ 2017 | TESTS | 27 | 639 | 68198400 | 2200 | |
63620354 | AndreWiking | E | Oct. 27, 2019, 10:23 p.m. | OK | MS C++ 2017 | TESTS | 27 | 779 | 70246400 | 2200 | |
63519751 | zjuwyz | E | Oct. 27, 2019, 3:09 a.m. | OK | MS C++ 2017 | TESTS | 27 | 826 | 84172800 | 2200 | |
66152526 | pajenegod | E | Dec. 1, 2019, 7:47 p.m. | OK | PyPy 2 | TESTS | 27 | 452 | 91238400 | 2200 |
Back to search problems