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 |
|---|---|---|---|---|---|---|
| 780 | Технокубок 2017 - Финал (только для онсайт-финалистов) | FINISHED | False | 10800 | 287700323 | March 5, 2017, 9:15 a.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 704 ) | G | Andryusha and Nervous Barriers | PROGRAMMING | data structures dp | 2700 |
Andryusha has found a perplexing arcade machine. The machine is a vertically adjusted board divided into square cells. The board has w columns numbered from 1 to w from left to right, and h rows numbered from 1 to h from the bottom to the top. Further, there are barriers in some of board rows. There are n barriers in total, and i -th of them occupied the cells l i through r i of the row u i . Andryusha recollects well that no two barriers share the same row. Furthermore, no row is completely occupied with a barrier, that is, at least one cell in each row is free. The player can throw a marble to any column of the machine from above. A marble falls downwards until it encounters a barrier, or falls through the bottom of the board. A marble disappears once it encounters a barrier but is replaced by two more marbles immediately to the left and to the right of the same barrier. In a situation when the barrier is at an edge of the board, both marbles appear next to the barrier at the side opposite to the edge. More than one marble can occupy the same place of the board, without obstructing each other's movement. Ultimately, all marbles are bound to fall from the bottom of the machine. Peculiarly, sometimes marbles can go through barriers as if they were free cells. That is so because the barriers are in fact alive, and frightened when a marble was coming at them from a very high altitude. More specifically, if a marble falls towards the barrier i from relative height more than s i (that is, it started its fall strictly higher than u i + s i ), then the barrier evades the marble. If a marble is thrown from the top of the board, it is considered to appear at height ( h + 1) . Andryusha remembers to have thrown a marble once in each of the columns. Help him find the total number of marbles that came down at the bottom of the machine. Since the answer may be large, print it modulo 10 9 + 7 . The first line contains three integers h , w , and n ( 1 ≤ h ≤ 10 9 , 2 ≤ w |
| Technocup 2017 Finals and Codeforces Round #403 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 25573191 | jkxjkx1031 | G | March 17, 2017, 1:10 p.m. | OK | GNU C | TESTS | 27 | 280 | 10342400 | 2700 | |
| 40982083 | ReaLNero1 | G | July 30, 2018, 6:16 p.m. | OK | GNU C++ | TESTS | 27 | 124 | 10649600 | 2700 | |
| 25427440 | unicornt | G | March 12, 2017, 8:13 a.m. | OK | GNU C++ | TESTS | 27 | 202 | 11468800 | 2700 | |
| 41456818 | Luci4er | G | Aug. 11, 2018, 6:48 a.m. | OK | GNU C++ | TESTS | 27 | 233 | 12185600 | 2700 | |
| 30230275 | vjudge2 | G | Sept. 9, 2017, 4:46 p.m. | OK | GNU C++ | TESTS | 27 | 265 | 9728000 | 2700 | |
| 29852526 | vjudge2 | G | Aug. 28, 2017, 6:49 p.m. | OK | GNU C++ | TESTS | 27 | 312 | 32870400 | 2700 | |
| 31630971 | _SHENZHEBEI_ | G | Oct. 23, 2017, 1:44 p.m. | OK | GNU C++ | TESTS | 27 | 358 | 176230400 | 2700 | |
| 31620098 | vjudge2 | G | Oct. 23, 2017, 5:27 a.m. | OK | GNU C++ | TESTS | 27 | 405 | 166400000 | 2700 | |
| 30525362 | vjudge2 | G | Sept. 19, 2017, 6:11 p.m. | OK | GNU C++ | TESTS | 27 | 811 | 37683200 | 2700 | |
| 25967230 | _HYX_ | G | March 31, 2017, 3:36 a.m. | OK | GNU C++ | TESTS | 27 | 826 | 40140800 | 2700 | |
| 29529350 | vjudge2 | G | Aug. 17, 2017, 3:32 p.m. | OK | GNU C++ | TESTS | 27 | 904 | 38092800 | 2700 | |
| 25425370 | unicornt | G | March 12, 2017, 6:32 a.m. | OK | GNU C++11 | TESTS | 27 | 156 | 11468800 | 2700 | |
| 25243699 | demon1999 | G | March 5, 2017, 11:46 a.m. | OK | GNU C++11 | TESTS | 27 | 187 | 86425600 | 2700 | |
| 29849837 | vjudge3 | G | Aug. 28, 2017, 4:18 p.m. | OK | GNU C++11 | TESTS | 27 | 202 | 65740800 | 2700 | |
| 29552301 | vjudge4 | G | Aug. 18, 2017, 11:31 a.m. | OK | GNU C++11 | TESTS | 27 | 217 | 64000000 | 2700 | |
| 29849822 | chitanda | G | Aug. 28, 2017, 4:17 p.m. | OK | GNU C++11 | TESTS | 27 | 217 | 65740800 | 2700 | |
| 44426667 | daifucong | G | Oct. 17, 2018, 4:56 a.m. | OK | GNU C++11 | TESTS | 27 | 295 | 69632000 | 2700 | |
| 44528705 | luogu_bot1 | G | Oct. 19, 2018, 5:05 a.m. | OK | GNU C++11 | TESTS | 27 | 311 | 65638400 | 2700 | |
| 44426872 | time_manager | G | Oct. 17, 2018, 5:07 a.m. | OK | GNU C++11 | TESTS | 27 | 327 | 65638400 | 2700 | |
| 44535961 | gaojunonly1 | G | Oct. 19, 2018, 8:55 a.m. | OK | GNU C++11 | TESTS | 27 | 327 | 67993600 | 2700 | |
| 25244012 | Fedosik | G | March 5, 2017, 11:53 a.m. | OK | GNU C++11 | TESTS | 27 | 343 | 30617600 | 2700 | |
| 65715884 | vjudge5 | G | Nov. 25, 2019, 4:33 p.m. | OK | GNU C++14 | TESTS | 27 | 140 | 11673600 | 2700 | |
| 65715879 | oipotato | G | Nov. 25, 2019, 4:33 p.m. | OK | GNU C++14 | TESTS | 27 | 155 | 11673600 | 2700 | |
| 31378204 | Dalgerok | G | Oct. 15, 2017, 9:53 p.m. | OK | GNU C++14 | TESTS | 27 | 187 | 28569600 | 2700 | |
| 26590918 | tcchung | G | April 22, 2017, 7:52 p.m. | OK | GNU C++14 | TESTS | 27 | 202 | 65536000 | 2700 | |
| 25824126 | LordVoldebug | G | March 26, 2017, 4:53 p.m. | OK | GNU C++14 | TESTS | 27 | 311 | 11468800 | 2700 | |
| 25824193 | toster1287 | G | March 26, 2017, 4:56 p.m. | OK | GNU C++14 | TESTS | 27 | 327 | 11366400 | 2700 | |
| 29438741 | cabinfever | G | Aug. 13, 2017, 4:16 p.m. | OK | GNU C++14 | TESTS | 27 | 343 | 67686400 | 2700 | |
| 25479360 | dimas.kovas | G | March 14, 2017, 3:43 p.m. | OK | GNU C++14 | TESTS | 27 | 373 | 16896000 | 2700 | |
| 29489476 | 112 | G | Aug. 15, 2017, 7:41 p.m. | OK | GNU C++14 | TESTS | 27 | 405 | 12902400 | 2700 | |
| 25404272 | abeker | G | March 11, 2017, 12:22 p.m. | OK | GNU C++14 | TESTS | 27 | 405 | 16588800 | 2700 | |
| 61351950 | qcwlmqy | G | Sept. 27, 2019, 8:41 a.m. | OK | GNU C++17 | TESTS | 27 | 857 | 39014400 | 2700 | |
| 45252638 | _il1ke | G | Nov. 3, 2018, 5:29 p.m. | OK | GNU C++17 | TESTS | 27 | 936 | 43212800 | 2700 | |
| 65841079 | 8-_-8 | G | Nov. 27, 2019, 2:21 p.m. | OK | GNU C++17 | TESTS | 27 | 1075 | 49561600 | 2700 | |
| 46773984 | Slaaava | G | Dec. 8, 2018, 6:48 p.m. | OK | GNU C++17 | TESTS | 27 | 2230 | 203571200 | 2700 |
Back to search problems