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 |
|---|---|---|---|---|---|---|
| 936 | Codeforces Round 467 (Div. 1) | FINISHED | False | 7200 | 256830923 | Feb. 25, 2018, 4:05 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 396 ) | D | World of Tank | PROGRAMMING | dp greedy | 3000 |
Vitya loves programming and problem solving, but sometimes, to distract himself a little, he plays computer games. Once he found a new interesting game about tanks, and he liked it so much that he went through almost all levels in one day. Remained only the last level, which was too tricky. Then Vitya remembered that he is a programmer, and wrote a program that helped him to pass this difficult level. Try do the same. The game is organized as follows. There is a long road, two cells wide and n cells long. Some cells have obstacles. You control a tank that occupies one cell. Initially, the tank is located before the start of the road, in a cell with coordinates (0, 1) . Your task is to move the tank to the end of the road, to the cell ( n + 1, 1) or ( n + 1, 2) . Every second the tank moves one cell to the right: the coordinate x is increased by one. When you press the up or down arrow keys, the tank instantly changes the lane, that is, the y coordinate. When you press the spacebar, the tank shoots, and the nearest obstacle along the lane in which the tank rides is instantly destroyed. In order to load a gun, the tank needs t seconds. Initially, the gun is not loaded, that means, the first shot can be made only after t seconds after the tank starts to move. If at some point the tank is in the same cell with an obstacle not yet destroyed, it burns out. If you press the arrow exactly at the moment when the tank moves forward, the tank will first move forward, and then change the lane, so it will not be possible to move diagonally. Your task is to find out whether it is possible to pass the level, and if possible, to find the order of actions the player need to make. The first line contains four integers n , m 1 , m 2 and t , the length of the field, the number of obstacles in the first lane, the number of obstacles in the second lane and the number of tank steps before reloading, respectively ( 1 ≤ n ≤ 10 9 ; 0 ≤ m 1 , m 2 ≤ n ; 0 ≤ m 1 + m 2 ≤ 10 6 ; 1 ≤ t ≤ |
| Codeforces Round #467, Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 36323911 | gaoadt | D | March 16, 2018, 11:25 a.m. | OK | Delphi | TESTS | 100 | 421 | 12390400 | 3000 | |
| 36646841 | vjudge5 | D | March 26, 2018, 3:28 p.m. | OK | GNU C | TESTS | 100 | 545 | 47718400 | 3000 | |
| 40978117 | ReaLNero1 | D | July 30, 2018, 4:29 p.m. | OK | GNU C++ | TESTS | 100 | 296 | 120217600 | 3000 | |
| 38711256 | thx | D | May 29, 2018, 6:52 a.m. | OK | GNU C++ | TESTS | 100 | 373 | 120217600 | 3000 | |
| 35956719 | cz_xuyixuan | D | March 5, 2018, 5:39 a.m. | OK | GNU C++ | TESTS | 100 | 405 | 130355200 | 3000 | |
| 36031099 | Blue233333 | D | March 7, 2018, 1:58 a.m. | OK | GNU C++ | TESTS | 100 | 560 | 78028800 | 3000 | |
| 35729271 | skywalkert | D | Feb. 26, 2018, 11:16 a.m. | OK | GNU C++ | TESTS | 100 | 639 | 38297600 | 3000 | |
| 35801892 | 131131yhx | D | March 1, 2018, 4:46 a.m. | OK | GNU C++ | TESTS | 100 | 779 | 190976000 | 3000 | |
| 39702073 | vjudge5 | D | June 27, 2018, 12:58 p.m. | OK | GNU C++ | TESTS | 100 | 936 | 222412800 | 3000 | |
| 39702039 | zichen0535 | D | June 27, 2018, 12:57 p.m. | OK | GNU C++ | TESTS | 100 | 936 | 222412800 | 3000 | |
| 38710842 | Sacrifice | D | May 29, 2018, 6:29 a.m. | OK | GNU C++ | TESTS | 100 | 1481 | 141516800 | 3000 | |
| 63389791 | luogu_bot3 | D | Oct. 25, 2019, 2:51 p.m. | OK | GNU C++11 | TESTS | 100 | 373 | 66457600 | 3000 | |
| 63389765 | luogu_bot4 | D | Oct. 25, 2019, 2:50 p.m. | OK | GNU C++11 | TESTS | 100 | 373 | 66457600 | 3000 | |
| 59899191 | miaokehao | D | Sept. 2, 2019, 1:06 p.m. | OK | GNU C++11 | TESTS | 100 | 373 | 66457600 | 3000 | |
| 38473909 | emoairx | D | May 21, 2018, 4:25 a.m. | OK | GNU C++11 | TESTS | 100 | 421 | 150630400 | 3000 | |
| 40205063 | Charles_Han | D | July 11, 2018, 2:57 p.m. | OK | GNU C++11 | TESTS | 100 | 436 | 120217600 | 3000 | |
| 36273250 | danya090699 | D | March 14, 2018, 11:34 a.m. | OK | GNU C++11 | TESTS | 100 | 514 | 34713600 | 3000 | |
| 35705316 | tqyaaaaang | D | Feb. 25, 2018, 5:47 p.m. | OK | GNU C++11 | TESTS | 100 | 530 | 90828800 | 3000 | |
| 51383010 | bhargav_0085 | D | March 16, 2019, 5:17 p.m. | OK | GNU C++11 | TESTS | 100 | 545 | 218112000 | 3000 | |
| 37887405 | jslijin | D | May 4, 2018, 4:13 p.m. | OK | GNU C++11 | TESTS | 100 | 546 | 77926400 | 3000 | |
| 58428880 | luogu_bot3 | D | Aug. 7, 2019, 11 a.m. | OK | GNU C++11 | TESTS | 100 | 546 | 179712000 | 3000 | |
| 35737388 | whzzt | D | Feb. 26, 2018, 3:47 p.m. | OK | GNU C++14 | TESTS | 100 | 404 | 78848000 | 3000 | |
| 68078890 | daixiahu114514 | D | Jan. 2, 2020, 1:39 p.m. | OK | GNU C++14 | TESTS | 100 | 499 | 209100800 | 3000 | |
| 58262787 | daniel14311531 | D | Aug. 4, 2019, 1:06 p.m. | OK | GNU C++14 | TESTS | 100 | 514 | 88166400 | 3000 | |
| 53425315 | vjudge4 | D | April 27, 2019, 1:22 p.m. | OK | GNU C++14 | TESTS | 100 | 529 | 76083200 | 3000 | |
| 35743457 | Los_Angelos_Laycurse | D | Feb. 26, 2018, 7:28 p.m. | OK | GNU C++14 | TESTS | 100 | 545 | 90214400 | 3000 | |
| 35743373 | Los_Angelos_Laycurse | D | Feb. 26, 2018, 7:25 p.m. | OK | GNU C++14 | TESTS | 100 | 545 | 90214400 | 3000 | |
| 35743437 | Los_Angelos_Laycurse | D | Feb. 26, 2018, 7:27 p.m. | OK | GNU C++14 | TESTS | 100 | 561 | 90214400 | 3000 | |
| 35720506 | apink | D | Feb. 26, 2018, 5:30 a.m. | OK | GNU C++14 | TESTS | 100 | 608 | 95129600 | 3000 | |
| 35706026 | krijgertje | D | Feb. 25, 2018, 5:51 p.m. | OK | GNU C++14 | TESTS | 100 | 639 | 80076800 | 3000 | |
| 35830847 | ffbh | D | March 2, 2018, 9:29 a.m. | OK | GNU C++14 | TESTS | 100 | 639 | 121139200 | 3000 | |
| 53425347 | pppkun | D | April 27, 2019, 1:22 p.m. | OK | GNU C++17 | TESTS | 100 | 545 | 76083200 | 3000 | |
| 37701954 | openopentw | D | April 29, 2018, 6:48 a.m. | OK | GNU C++17 | TESTS | 100 | 623 | 155648000 | 3000 | |
| 37702033 | openopentw | D | April 29, 2018, 6:52 a.m. | OK | GNU C++17 | TESTS | 100 | 654 | 155648000 | 3000 | |
| 60458560 | saketh | D | Sept. 12, 2019, 7:15 p.m. | OK | GNU C++17 | TESTS | 100 | 685 | 61132800 | 3000 | |
| 35775831 | Aimi | D | Feb. 27, 2018, 9:57 p.m. | OK | GNU C++17 | TESTS | 100 | 701 | 94924800 | 3000 | |
| 40977660 | ReaLNero1 | D | July 30, 2018, 4:18 p.m. | OK | GNU C++17 | TESTS | 100 | 701 | 120217600 | 3000 | |
| 50327160 | Redhood | D | Feb. 22, 2019, 5 p.m. | OK | GNU C++17 | TESTS | 100 | 732 | 117452800 | 3000 | |
| 35706184 | V--o_o--V | D | Feb. 25, 2018, 5:52 p.m. | OK | GNU C++17 | TESTS | 100 | 748 | 164864000 | 3000 | |
| 58168828 | Okrut | D | Aug. 2, 2019, 10:18 a.m. | OK | GNU C++17 | TESTS | 100 | 780 | 226304000 | 3000 | |
| 36728415 | embrane | D | March 29, 2018, 5:32 p.m. | OK | GNU C++17 | TESTS | 100 | 842 | 124416000 | 3000 | |
| 35991825 | mmaxio | D | March 6, 2018, 12:43 p.m. | OK | Java 8 | TESTS | 100 | 452 | 56832000 | 3000 | |
| 36344837 | tmwilliamlin168 | D | March 17, 2018, 6:50 a.m. | OK | Java 8 | TESTS | 100 | 608 | 71782400 | 3000 | |
| 35703108 | Petr | D | Feb. 25, 2018, 5:28 p.m. | OK | Java 8 | TESTS | 100 | 685 | 147456000 | 3000 | |
| 35706610 | qwerty787788 | D | Feb. 25, 2018, 5:54 p.m. | OK | Java 8 | TESTS | 100 | 1045 | 124416000 | 3000 | |
| 35743474 | Los_Angelos_Laycurse | D | Feb. 26, 2018, 7:28 p.m. | OK | MS C++ | TESTS | 100 | 530 | 90419200 | 3000 | |
| 35714647 | Taube | D | Feb. 25, 2018, 10:40 p.m. | OK | MS C++ | TESTS | 100 | 530 | 170393600 | 3000 | |
| 35727850 | absi2011 | D | Feb. 26, 2018, 10:19 a.m. | OK | MS C++ | TESTS | 100 | 639 | 136601600 | 3000 |
Back to search problems