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 |
|---|---|---|---|---|---|---|
| 268 | Codeforces Round 164 (Div. 2) | FINISHED | False | 7200 | 417018623 | Jan. 28, 2013, 3:30 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 576 ) | D | Wall Bars | PROGRAMMING | dp | 2600 |
Manao is working for a construction company. Recently, an order came to build wall bars in a children's park. Manao was commissioned to develop a plan of construction, which will enable the company to save the most money. After reviewing the formal specifications for the wall bars, Manao discovered a number of controversial requirements and decided to treat them to the company's advantage. His resulting design can be described as follows: Let's introduce some unit of length. The construction center is a pole of height n . At heights 1, 2, ..., n exactly one horizontal bar sticks out from the pole. Each bar sticks in one of four pre-fixed directions. A child can move from one bar to another if the distance between them does not exceed h and they stick in the same direction. If a child is on the ground, he can climb onto any of the bars at height between 1 and h . In Manao's construction a child should be able to reach at least one of the bars at heights n - h + 1, n - h + 2, ..., n if he begins at the ground. Manao is wondering how many distinct construction designs that satisfy his requirements exist. As this number can be rather large, print the remainder after dividing it by 1000000009 (10 9 + 9) . Two designs are considered distinct if there is such height i , that the bars on the height i in these designs don't stick out in the same direction. A single line contains two space-separated integers, n and h ( 1 ≤ n ≤ 1000 , 1 ≤ h ≤ min ( n , 30) ). In a single line print the remainder after dividing the number of designs by 1000000009 (10 9 + 9) . Consider several designs for h = 2 . A design with the first bar sticked out in direction d 1 , the second — in direction d 2 and so on ( 1 ≤ d i ≤ 4 ) is denoted as string d 1 d 2 ... d n . Design "1231" (the first three bars are sticked out in different directions, the last one — in the same as first). A child can reach neither the bar at height 3 nor the bar at height 4. Design "414141". A child can reach the |
| Codeforces Round #164 (Div. 2) — Problems Analysis |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 40990255 | ReaLNero1 | D | July 30, 2018, 11:45 p.m. | OK | GNU C++ | TESTS | 18 | 312 | 512000 | 2600 | |
| 29610847 | owen_creeper | D | Aug. 20, 2017, 1:22 a.m. | OK | GNU C++ | TESTS | 18 | 436 | 512000 | 2600 | |
| 21207433 | vjudge4 | D | Oct. 5, 2016, 11:54 a.m. | OK | GNU C++ | TESTS | 18 | 436 | 512000 | 2600 | |
| 27721284 | zhhx | D | June 11, 2017, 1:02 p.m. | OK | GNU C++ | TESTS | 18 | 498 | 307200 | 2600 | |
| 27721348 | zhhx | D | June 11, 2017, 1:06 p.m. | OK | GNU C++ | TESTS | 18 | 560 | 307200 | 2600 | |
| 17832482 | duyixian | D | May 10, 2016, 1:44 p.m. | OK | GNU C++ | TESTS | 18 | 592 | 2764800 | 2600 | |
| 36626067 | nhho | D | March 25, 2018, 7:28 p.m. | OK | GNU C++ | TESTS | 18 | 684 | 35635200 | 2600 | |
| 40517825 | AH_ljq | D | July 18, 2018, 2:14 p.m. | OK | GNU C++ | TESTS | 18 | 1152 | 289484800 | 2600 | |
| 18766208 | Universe_hcy | D | June 28, 2016, 11:04 a.m. | OK | GNU C++ | TESTS | 18 | 1278 | 241152000 | 2600 | |
| 28794711 | vjudge5 | D | July 23, 2017, 7:32 a.m. | OK | GNU C++ | TESTS | 18 | 1402 | 290406400 | 2600 | |
| 56823363 | zrmpaul | D | July 11, 2019, 2:26 a.m. | OK | GNU C++11 | TESTS | 18 | 62 | 288460800 | 2600 | |
| 56807854 | zrmpaul | D | July 10, 2019, 2:40 p.m. | OK | GNU C++11 | TESTS | 18 | 62 | 288460800 | 2600 | |
| 56823359 | zrmpaul | D | July 11, 2019, 2:26 a.m. | OK | GNU C++11 | TESTS | 18 | 92 | 263065600 | 2600 | |
| 56807946 | zrmpaul | D | July 10, 2019, 2:42 p.m. | OK | GNU C++11 | TESTS | 18 | 92 | 288460800 | 2600 | |
| 56821644 | BEAR0131 | D | July 11, 2019, 1:03 a.m. | OK | GNU C++11 | TESTS | 18 | 186 | 614400 | 2600 | |
| 56807643 | zrmpaul | D | July 10, 2019, 2:34 p.m. | OK | GNU C++11 | TESTS | 18 | 186 | 288460800 | 2600 | |
| 56793532 | vjudge5 | D | July 10, 2019, 11:36 a.m. | OK | GNU C++11 | TESTS | 18 | 248 | 345395200 | 2600 | |
| 56797814 | vjudge4 | D | July 10, 2019, 1:12 p.m. | OK | GNU C++11 | TESTS | 18 | 280 | 345395200 | 2600 | |
| 56864694 | sjc061031 | D | July 12, 2019, 2:13 a.m. | OK | GNU C++11 | TESTS | 18 | 312 | 1126400 | 2600 | |
| 56821408 | taojunhan | D | July 11, 2019, 12:46 a.m. | OK | GNU C++11 | TESTS | 18 | 342 | 512000 | 2600 | |
| 56864781 | BEAR0131 | D | July 12, 2019, 2:17 a.m. | OK | GNU C++14 | TESTS | 18 | 154 | 3379200 | 2600 | |
| 56869124 | vjudge4 | D | July 12, 2019, 5:27 a.m. | OK | GNU C++14 | TESTS | 18 | 186 | 41779200 | 2600 | |
| 56824667 | numberes | D | July 11, 2019, 3:16 a.m. | OK | GNU C++14 | TESTS | 18 | 248 | 288358400 | 2600 | |
| 56824495 | eddysboy | D | July 11, 2019, 3:09 a.m. | OK | GNU C++14 | TESTS | 18 | 404 | 518144000 | 2600 | |
| 56838880 | chenxw_GGSDDU | D | July 11, 2019, 10:31 a.m. | OK | GNU C++14 | TESTS | 18 | 436 | 32051200 | 2600 | |
| 56866634 | vjudge4 | D | July 12, 2019, 3:32 a.m. | OK | GNU C++14 | TESTS | 18 | 466 | 71884800 | 2600 | |
| 56285071 | vivace_jr | D | June 29, 2019, 7:05 p.m. | OK | GNU C++14 | TESTS | 18 | 498 | 1024000 | 2600 | |
| 56866651 | xuziyuan | D | July 12, 2019, 3:33 a.m. | OK | GNU C++14 | TESTS | 18 | 498 | 71884800 | 2600 | |
| 56866626 | xuziyuan | D | July 12, 2019, 3:32 a.m. | OK | GNU C++14 | TESTS | 18 | 498 | 71884800 | 2600 | |
| 56874521 | eddysboy | D | July 12, 2019, 7:47 a.m. | OK | GNU C++14 | TESTS | 18 | 498 | 82841600 | 2600 | |
| 56863604 | DerekFeng | D | July 12, 2019, 1:31 a.m. | OK | GNU C++17 | TESTS | 18 | 124 | 41676800 | 2600 | |
| 56864584 | sjc061031 | D | July 12, 2019, 2:09 a.m. | OK | GNU C++17 | TESTS | 18 | 124 | 44236800 | 2600 | |
| 56847554 | vjudge5 | D | July 11, 2019, 2:13 p.m. | OK | GNU C++17 | TESTS | 18 | 154 | 41676800 | 2600 | |
| 56808587 | luogu_bot4 | D | July 10, 2019, 2:59 p.m. | OK | GNU C++17 | TESTS | 18 | 156 | 512000 | 2600 | |
| 56808560 | Tgiwx | D | July 10, 2019, 2:58 p.m. | OK | GNU C++17 | TESTS | 18 | 156 | 512000 | 2600 | |
| 56808462 | vjudge3 | D | July 10, 2019, 2:56 p.m. | OK | GNU C++17 | TESTS | 18 | 156 | 512000 | 2600 | |
| 56869295 | sir.kay | D | July 12, 2019, 5:33 a.m. | OK | GNU C++17 | TESTS | 18 | 216 | 41779200 | 2600 | |
| 56869313 | vjudge4 | D | July 12, 2019, 5:34 a.m. | OK | GNU C++17 | TESTS | 18 | 218 | 41779200 | 2600 | |
| 56822697 | sjc061031 | D | July 11, 2019, 1:58 a.m. | OK | GNU C++17 | TESTS | 18 | 278 | 290918400 | 2600 | |
| 56825527 | Mackerel_Pike | D | July 11, 2019, 3:56 a.m. | OK | GNU C++17 | TESTS | 18 | 310 | 11776000 | 2600 | |
| 44950004 | Anonymous | D | Oct. 27, 2018, 11:39 a.m. | OK | Java 8 | TESTS | 18 | 2338 | 450662400 | 2600 | |
| 39678804 | fahad17049 | D | June 26, 2018, 2:51 p.m. | OK | Java 8 | TESTS | 18 | 3180 | 470937600 | 2600 | |
| 56872160 | udscbt | D | July 12, 2019, 6:53 a.m. | OK | Rust | TESTS | 18 | 1028 | 526950400 | 2600 |
Back to search problems