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 |
|---|---|---|---|---|---|---|
| 581 | Codeforces Round 322 (Div. 2) | FINISHED | False | 7200 | 332974823 | Sept. 28, 2015, 9 a.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 219 ) | E | Kojiro and Furrari | PROGRAMMING | dp greedy | 2600 |
Motorist Kojiro spent 10 years saving up for his favorite car brand, Furrari. Finally Kojiro's dream came true! Kojiro now wants to get to his girlfriend Johanna to show off his car to her. Kojiro wants to get to his girlfriend, so he will go to her along a coordinate line. For simplicity, we can assume that Kojiro is at the point f of a coordinate line, and Johanna is at point e . Some points of the coordinate line have gas stations. Every gas station fills with only one type of fuel: Regular-92 , Premium-95 or Super-98 . Thus, each gas station is characterized by a pair of integers t i and x i — the number of the gas type and its position. One liter of fuel is enough to drive for exactly 1 km (this value does not depend on the type of fuel). Fuels of three types differ only in quality, according to the research, that affects the lifetime of the vehicle motor. A Furrari tank holds exactly s liters of fuel (regardless of the type of fuel). At the moment of departure from point f Kojiro's tank is completely filled with fuel Super-98 . At each gas station Kojiro can fill the tank with any amount of fuel, but of course, at no point in time, the amount of fuel in the tank can be more than s liters. Note that the tank can simultaneously have different types of fuel. The car can moves both left and right. To extend the lifetime of the engine Kojiro seeks primarily to minimize the amount of fuel of type Regular-92 . If there are several strategies to go from f to e , using the minimum amount of fuel of type Regular-92 , it is necessary to travel so as to minimize the amount of used fuel of type Premium-95 . Write a program that can for the m possible positions of the start f i minimize firstly, the amount of used fuel of type Regular-92 and secondly, the amount of used fuel of type Premium-95 . The first line of the input contains four positive integers e , s , n , m ( 1 ≤ e , s ≤ 10 9 , 1 ≤ n , m ≤ 2·10 5 ) — the coordinate of the point where Johanna is, the cap |
| Codeforces Round #322 (Div.2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 19829293 | vv_sswwww | E | Aug. 12, 2016, 1:16 p.m. | OK | FPC | TESTS | 44 | 530 | 8192000 | 2600 | |
| 40986064 | ReaLNero1 | E | July 30, 2018, 8:20 p.m. | OK | GNU C++ | TESTS | 44 | 202 | 5632000 | 2600 | |
| 19829327 | crazy_cloud | E | Aug. 12, 2016, 1:18 p.m. | OK | GNU C++ | TESTS | 44 | 202 | 7680000 | 2600 | |
| 30826262 | yhy | E | Sept. 29, 2017, 11:12 a.m. | OK | GNU C++ | TESTS | 44 | 218 | 6348800 | 2600 | |
| 19562870 | vjudge1 | E | Aug. 1, 2016, 2:34 p.m. | OK | GNU C++ | TESTS | 44 | 234 | 11264000 | 2600 | |
| 21666433 | returnzoo | E | Oct. 22, 2016, 12:20 p.m. | OK | GNU C++ | TESTS | 44 | 249 | 8601600 | 2600 | |
| 13489373 | y0rkl1u | E | Oct. 8, 2015, 8:11 a.m. | OK | GNU C++ | TESTS | 44 | 265 | 39014400 | 2600 | |
| 13555184 | zyf940104357 | E | Oct. 12, 2015, 8:03 a.m. | OK | GNU C++ | TESTS | 44 | 280 | 5734400 | 2600 | |
| 13555019 | zyf940104357 | E | Oct. 12, 2015, 7:46 a.m. | OK | GNU C++ | TESTS | 44 | 280 | 5734400 | 2600 | |
| 19958947 | vjudge4 | E | Aug. 19, 2016, 7:02 a.m. | OK | GNU C++ | TESTS | 44 | 280 | 8396800 | 2600 | |
| 19829493 | YxuanwKeith | E | Aug. 12, 2016, 1:26 p.m. | OK | GNU C++ | TESTS | 44 | 280 | 10956800 | 2600 | |
| 14006555 | sqc1999 | E | Nov. 1, 2015, 11:30 a.m. | OK | GNU C++11 | TESTS | 44 | 202 | 16384000 | 2600 | |
| 14003316 | sqc1999 | E | Nov. 1, 2015, 8:33 a.m. | OK | GNU C++11 | TESTS | 44 | 218 | 6348800 | 2600 | |
| 14003297 | sqc1999 | E | Nov. 1, 2015, 8:31 a.m. | OK | GNU C++11 | TESTS | 44 | 218 | 6348800 | 2600 | |
| 57576232 | luogu_bot5 | E | July 23, 2019, 7:09 a.m. | OK | GNU C++11 | TESTS | 44 | 233 | 10444800 | 2600 | |
| 29328937 | Rain_Forest | E | Aug. 10, 2017, 2:33 p.m. | OK | GNU C++11 | TESTS | 44 | 249 | 7680000 | 2600 | |
| 13712479 | Raulesto | E | Oct. 18, 2015, 12:32 p.m. | OK | GNU C++11 | TESTS | 44 | 249 | 12185600 | 2600 | |
| 13808373 | krijgertje | E | Oct. 23, 2015, 12:36 p.m. | OK | GNU C++11 | TESTS | 44 | 249 | 17203200 | 2600 | |
| 57884396 | lopare | E | July 28, 2019, 9:11 a.m. | OK | GNU C++11 | TESTS | 44 | 264 | 7577600 | 2600 | |
| 29328962 | Rain_Forest | E | Aug. 10, 2017, 2:35 p.m. | OK | GNU C++11 | TESTS | 44 | 264 | 7680000 | 2600 | |
| 44476473 | yangyuchen | E | Oct. 18, 2018, 9:14 a.m. | OK | GNU C++11 | TESTS | 44 | 265 | 6348800 | 2600 | |
| 44474065 | vjudge4 | E | Oct. 18, 2018, 7:54 a.m. | OK | GNU C++14 | TESTS | 44 | 233 | 11161600 | 2600 | |
| 27520335 | 754986421653 | E | June 2, 2017, 9:40 a.m. | OK | GNU C++14 | TESTS | 44 | 327 | 7475200 | 2600 | |
| 38612469 | qiqi20021026 | E | May 25, 2018, 2:55 p.m. | OK | GNU C++14 | TESTS | 44 | 343 | 7884800 | 2600 | |
| 40993936 | pzdba | E | July 31, 2018, 2:20 a.m. | OK | GNU C++14 | TESTS | 44 | 343 | 10649600 | 2600 | |
| 68922693 | Tuank99lhp | E | Jan. 16, 2020, 9:43 a.m. | OK | GNU C++14 | TESTS | 44 | 545 | 18841600 | 2600 | |
| 28717526 | Fistice | E | July 20, 2017, 8:11 a.m. | OK | GNU C++14 | TESTS | 44 | 1076 | 87756800 | 2600 | |
| 63412797 | hjk1030 | E | Oct. 26, 2019, 2:06 a.m. | OK | GNU C++17 | TESTS | 44 | 249 | 12800000 | 2600 | |
| 66660252 | ruo | E | Dec. 12, 2019, 3:57 a.m. | OK | GNU C++17 | TESTS | 44 | 327 | 9113600 | 2600 | |
| 48906214 | weistruss | E | Jan. 24, 2019, 8:37 p.m. | OK | GNU C++17 | TESTS | 44 | 389 | 56320000 | 2600 | |
| 57955032 | Gediminas | E | July 29, 2019, 6:16 p.m. | OK | GNU C++17 | TESTS | 44 | 390 | 12697600 | 2600 | |
| 68892899 | tranquanghuy | E | Jan. 16, 2020, 3:08 a.m. | OK | GNU C++17 | TESTS | 44 | 405 | 7577600 | 2600 | |
| 68754555 | ngfam | E | Jan. 14, 2020, 7:50 a.m. | OK | GNU C++17 | TESTS | 44 | 514 | 22630400 | 2600 | |
| 52917629 | chinmay0906 | E | April 17, 2019, 4:28 p.m. | OK | GNU C++17 | TESTS | 44 | 795 | 48742400 | 2600 | |
| 67939589 | xiaowuc1 | E | Dec. 29, 2019, 11:04 p.m. | OK | GNU C++17 | TESTS | 44 | 858 | 54988800 | 2600 | |
| 60779480 | .__. | E | Sept. 18, 2019, 3:44 p.m. | OK | GNU C++17 | TESTS | 44 | 1965 | 108953600 | 2600 | |
| 13427313 | ilya-s | E | Oct. 6, 2015, 6:55 a.m. | OK | Java 8 | TESTS | 44 | 1247 | 26214400 | 2600 | |
| 13749972 | vanvector | E | Oct. 20, 2015, 11:14 a.m. | OK | MS C++ | TESTS | 44 | 295 | 27340800 | 2600 | |
| 13750300 | vanvector | E | Oct. 20, 2015, 11:40 a.m. | OK | MS C++ | TESTS | 44 | 296 | 27238400 | 2600 | |
| 13835105 | logickaiser | E | Oct. 25, 2015, 7:49 a.m. | OK | MS C++ | TESTS | 44 | 311 | 5222400 | 2600 | |
| 13625896 | AlexProk | E | Oct. 15, 2015, 3:40 p.m. | OK | Scala | TESTS | 44 | 1201 | 123494400 | 2600 |
Back to search problems