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 |
---|---|---|---|---|---|---|
926 | VK Cup 2018 - Wild-card Round 1 | FINISHED | False | 7200 | 210522299 | March 17, 2018, 3:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 235 ) | F | Mobile Communications | PROGRAMMING | 2400 |
B"A sum of p rubles is charged from Arkady's mobile phone account every day in the morning. Among the following m days, there are n days when Arkady will top up the account: in the day di he will deposit ti rubles on his mobile phone account. Arkady will always top up the account before the daily payment will be done. There will be no other payments nor tops up in the following m days. Determine the number of days starting from the 1-st to the m-th such that the account will have a negative amount on it after the daily payment (i. e. in evening). Initially the account's balance is zero rubles. The first line contains three integers n, p and m (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100 xe2 x80 x89000, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89p xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109, n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m) -- the number of days Arkady will top up the account, the amount of the daily payment, and the number of days you should check. The i-th of the following n lines contains two integers di and ti (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89di xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ti xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- the index of the day when Arkady will make the i-th top up, and the amount he will deposit on this day. It is guaranteed that the indices of the days are distinct and are given in increasing order, i. e. di xe2 x80 x89> xe2 x80 x89di xe2 x80 x89- xe2 x80 x891 for all i from 2 to n. Print the number of days from the 1-st to the m-th such that the account will have a negative amount on it after the daily payment. In the first example the balance will change as following (remember, initially the balance is zero): Thus, in the end of the first, third and sixth days the balance will be negative in the end of the day. "... |
Разбор VK Cup 2018 — Уайлд-кард Раунд 1 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
36364864 | Dmitriy.Belichenko Z8N | F | March 17, 2018, 5 p.m. | OK | D | TESTS | 79 | 46 | 8601600 | 2400 | |
36359746 | Ne0n | F | March 17, 2018, 3:57 p.m. | OK | Delphi | TESTS | 79 | 61 | 3993600 | 2400 | |
36366937 | DenisPushkin heimdall | F | March 17, 2018, 5:29 p.m. | OK | FPC | TESTS | 79 | 62 | 6246400 | 2400 | |
41827732 | Jonothor_Darry | F | Aug. 19, 2018, 12:57 p.m. | OK | GNU C | TESTS | 79 | 62 | 0 | 2400 | |
36364790 | DAyamaCTF ShinyaKato | F | March 17, 2018, 4:59 p.m. | OK | GNU C | TESTS | 79 | 62 | 4096000 | 2400 | |
36371206 | belkka dendi239 | F | March 17, 2018, 8:37 p.m. | OK | GNU C11 | TESTS | 79 | 46 | 3276800 | 2400 | |
56749379 | cheetose | F | July 9, 2019, 11:18 a.m. | OK | GNU C11 | TESTS | 79 | 62 | 1638400 | 2400 | |
36367367 | Finder Mama_Bullki | F | March 17, 2018, 5:34 p.m. | OK | GNU C11 | TESTS | 79 | 62 | 3276800 | 2400 | |
36429559 | DeaphetS | F | March 20, 2018, 10:12 a.m. | OK | GNU C++11 | TESTS | 79 | 46 | 5120000 | 2400 | |
66547679 | SKChaurasia | F | Dec. 9, 2019, 1:47 p.m. | OK | GNU C++11 | TESTS | 79 | 920 | 819200 | 2400 | |
36366324 | 4cd87a didenko.ilia | F | March 17, 2018, 5:21 p.m. | OK | GNU C++14 | TESTS | 79 | 77 | 3379200 | 2400 | |
65562407 | beginner1010 | F | Nov. 23, 2019, 3:51 a.m. | OK | GNU C++14 | TESTS | 79 | 77 | 4812800 | 2400 | |
36368275 | hotckiss | F | March 17, 2018, 6 p.m. | OK | GNU C++14 | TESTS | 79 | 390 | 6553600 | 2400 | |
36427791 | ShJ | F | March 20, 2018, 8:26 a.m. | OK | GNU C++17 | TESTS | 79 | 62 | 3379200 | 2400 | |
48037476 | chinmay0906 | F | Jan. 6, 2019, 4:36 p.m. | OK | GNU C++17 | TESTS | 79 | 77 | 16281600 | 2400 | |
36367096 | The.Fusy CurtizJ | F | March 17, 2018, 5:31 p.m. | OK | GNU C++17 | TESTS | 79 | 78 | 3379200 | 2400 | |
36384003 | nivusg | F | March 18, 2018, 9:46 a.m. | OK | GNU C++17 | TESTS | 79 | 358 | 4915200 | 2400 | |
40001429 | Scampish Valentin_E | F | July 5, 2018, 5:42 p.m. | OK | Java 8 | TESTS | 79 | 436 | 0 | 2400 | |
36365709 | pseudowolf.vn irusya | F | March 17, 2018, 5:11 p.m. | OK | Java 8 | TESTS | 79 | 498 | 21094400 | 2400 | |
36366403 | NightRaven17 s17b2_voroneckij | F | March 17, 2018, 5:22 p.m. | OK | JavaScript | TESTS | 79 | 93 | 7577600 | 2400 | |
36365123 | Namioko annyrtd | F | March 17, 2018, 5:03 p.m. | OK | JavaScript | TESTS | 79 | 156 | 8294400 | 2400 | |
36368107 | Meegoo | F | March 17, 2018, 5:54 p.m. | OK | Kotlin | TESTS | 79 | 296 | 23040000 | 2400 | |
36367526 | Lana01 | F | March 17, 2018, 5:37 p.m. | OK | Mono C# | TESTS | 79 | 109 | 14643200 | 2400 | |
36363394 | khazhix 4mda4mda | F | March 17, 2018, 4:42 p.m. | OK | PascalABC.NET | TESTS | 79 | 171 | 21811200 | 2400 | |
36366431 | olderor Gotthit | F | March 17, 2018, 5:22 p.m. | OK | PyPy 2 | TESTS | 79 | 405 | 26009600 | 2400 | |
36365303 | msatskevich oleg76 | F | March 17, 2018, 5:06 p.m. | OK | Python 3 | TESTS | 79 | 390 | 7065600 | 2400 | |
36460033 | Minoru98 | F | March 21, 2018, 4:56 p.m. | OK | Python 3 | TESTS | 79 | 452 | 7065600 | 2400 | |
36446855 | VinceJudge1 | F | March 21, 2018, 6:21 a.m. | OK | Python 3 | TESTS | 79 | 514 | 7372800 | 2400 |
Back to search problems