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 |
|---|---|---|---|---|---|---|
| 158 | VK Cup 2012 Qualification Round 1 | FINISHED | False | 86400 | 445600823 | March 3, 2012, 8 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 1537 ) | E | Phone Talks | PROGRAMMING | *special dp sortings | 2300 |
Cool J has recently become a businessman Mr. Jackson, and he has to make a lot of phone calls now. Today he has n calls planned. For each call we know the moment t i (in seconds since the start of the day) when it is scheduled to start and its duration d i (in seconds). All t i are different. Mr. Jackson is a very important person, so he never dials anybody himself, all calls will be incoming. Mr. Jackson isn't Caesar and he can't do several things at once. If somebody calls him while he hasn't finished the previous conversation, Mr. Jackson puts the new call on hold in the queue. In this case immediately after the end of the current call Mr. Jackson takes the earliest incoming call from the queue and starts the conversation. If Mr. Jackson started the call at the second t , and the call continues for d seconds, then Mr. Jackson is busy at seconds t , t + 1, ..., t + d - 1 , and he can start a new call at second t + d . Note that if Mr. Jackson is not busy talking when somebody calls, he can't put this call on hold. Mr. Jackson isn't Napoleon either, he likes to sleep. So sometimes he allows himself the luxury of ignoring a call, as if it never was scheduled. He can ignore at most k calls. Note that a call which comes while he is busy talking can be ignored as well. What is the maximum number of seconds Mr. Jackson can sleep today, assuming that he can choose an arbitrary continuous time segment from the current day (that is, with seconds from the 1-st to the 86400-th, inclusive) when he is not busy talking? Note that some calls can be continued or postponed to the next day or even later. However, the interval for sleep should be completely within the current day. The first input line contains a pair of integers n , k ( 0 ≤ k ≤ n ≤ 4000 ) separated by a space. Following n lines contain the description of calls for today. The description of each call is located on the single line and consists of two space-separated integers t i and d i , ( 1 ≤ t i , d i ≤ 8 |
| Simple solution to vk cup Qualification Round 1 and 2 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 60644716 | rainboy | E | Sept. 15, 2019, 4:41 p.m. | OK | GNU C11 | TESTS | 87 | 1716 | 716800 | 2300 | |
| 63979045 | XyzL | E | Nov. 1, 2019, 9:34 a.m. | OK | GNU C++11 | TESTS | 87 | 92 | 64716800 | 2300 | |
| 59233084 | zxyl | E | Aug. 21, 2019, 4:17 p.m. | OK | GNU C++11 | TESTS | 87 | 124 | 64307200 | 2300 | |
| 58513164 | Phortox | E | Aug. 9, 2019, 8:23 p.m. | OK | GNU C++11 | TESTS | 87 | 248 | 64204800 | 2300 | |
| 58998457 | Expert.YashSingh DeepanshuSaxena | E | Aug. 18, 2019, 12:33 p.m. | OK | GNU C++11 | TESTS | 87 | 248 | 200499200 | 2300 | |
| 69273965 | sirjan13 | E | Jan. 22, 2020, 12:03 a.m. | OK | GNU C++14 | TESTS | 87 | 154 | 129433600 | 2300 | |
| 63394818 | Amireza | E | Oct. 25, 2019, 4:20 p.m. | OK | GNU C++14 | TESTS | 87 | 186 | 129228800 | 2300 | |
| 58344616 | BRs82 | E | Aug. 5, 2019, 2:28 p.m. | OK | GNU C++14 | TESTS | 87 | 216 | 129638400 | 2300 | |
| 63110969 | aarr | E | Oct. 22, 2019, 7:25 a.m. | OK | GNU C++14 | TESTS | 87 | 248 | 128614400 | 2300 | |
| 63080243 | Mahdivelayatipour | E | Oct. 21, 2019, 2:53 p.m. | OK | GNU C++14 | TESTS | 87 | 778 | 1638400 | 2300 | |
| 64745375 | Joselsneto | E | Nov. 12, 2019, 1:21 p.m. | OK | GNU C++17 | TESTS | 87 | 92 | 64512000 | 2300 | |
| 58918219 | rareone0602 | E | Aug. 16, 2019, 3:53 p.m. | OK | GNU C++17 | TESTS | 87 | 92 | 100249600 | 2300 | |
| 61746655 | ST_C | E | Oct. 3, 2019, 12:53 a.m. | OK | GNU C++17 | TESTS | 87 | 92 | 100659200 | 2300 | |
| 62854789 | jahangard | E | Oct. 18, 2019, 8:50 a.m. | OK | GNU C++17 | TESTS | 87 | 154 | 64921600 | 2300 | |
| 58355141 | aryanv | E | Aug. 5, 2019, 7:06 p.m. | OK | GNU C++17 | TESTS | 87 | 154 | 67276800 | 2300 | |
| 62853592 | Mohammad_Amin | E | Oct. 18, 2019, 8:22 a.m. | OK | GNU C++17 | TESTS | 87 | 154 | 67379200 | 2300 | |
| 63126151 | tornado_rider | E | Oct. 22, 2019, 12:52 p.m. | OK | GNU C++17 | TESTS | 87 | 218 | 144384000 | 2300 | |
| 60644715 | Dukkha | E | Sept. 15, 2019, 4:41 p.m. | OK | Java 8 | TESTS | 87 | 2994 | 0 | 2300 |
Back to search problems