VK Cup 2015 - Qualification Round 2

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
523 VK Cup 2015 - Qualification Round 2 FINISHED False 86400 311266804 March 14, 2015, 3 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2361 ) D Statistics of Recompressing Videos PROGRAMMING *special data structures implementation 1900

B"A social network for dogs called DH (DogHouse) has k special servers to recompress uploaded videos of cute cats. After each video is uploaded, it should be recompressed on one (any) of the servers, and only after that it can be saved in the social network. We know that each server takes one second to recompress a one minute fragment. Thus, any server takes m seconds to recompress a m minute video. We know the time when each of the n videos were uploaded to the network (in seconds starting from the moment all servers started working). All videos appear at different moments of time and they are recompressed in the order they appear. If some video appeared at time s, then its recompressing can start at that very moment, immediately. Some videos can await recompressing when all the servers are busy. In this case, as soon as a server is available, it immediately starts recompressing another video. The videos that await recompressing go in a queue. If by the moment the videos started being recompressed some servers are available, then any of them starts recompressing the video. For each video find the moment it stops being recompressed. The first line of the input contains integers n and k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x895 xc2 xb7105) -- the number of videos and servers, respectively. Next n lines contain the descriptions of the videos as pairs of integers si, xe2 x80 x89mi (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89si, xe2 x80 x89mi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109), where si is the time in seconds when the i-th video appeared and mi is its duration in minutes. It is guaranteed that all the si's are distinct and the videos are given in the chronological order of upload, that is in the order of increasing si. Print n numbers e1, xe2 x80 x89e2, xe2 x80 x89..., xe2 x80 x89en, where ei is the time in seconds after the servers start working, when the i-th video will be recompressed."...

Tutorials

Разбор задач VK Cup 2015 — Квалификация 2

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
10291730 Rahmandretop D March 15, 2015, 4:24 p.m. OK Delphi TESTS 68 1528 40038400 1900
10276348 Luca_99 Julia_123 D March 14, 2015, 5:46 p.m. OK Delphi TESTS 68 1575 4096000 1900
10276803 igor.glushkov danildudin D March 14, 2015, 6:13 p.m. OK Delphi TESTS 68 1575 32153600 1900
10285554 geranazavr555 boray D March 15, 2015, 9:21 a.m. OK Delphi TESTS 68 1606 32153600 1900
10286833 kasumov D March 15, 2015, 11:11 a.m. OK Delphi TESTS 68 1918 8089600 1900
10277353 anzu SpOleM D March 14, 2015, 6:52 p.m. OK FPC TESTS 68 1357 26419200 1900
10287902 _PeTruS_ Deathlok D March 15, 2015, 12:18 p.m. OK FPC TESTS 68 1372 240435200 1900
10304892 Nikiktafokusnik D March 16, 2015, 8:06 p.m. OK FPC TESTS 68 1419 3993600 1900
10287624 WhiteLord Nero138 D March 15, 2015, 12:01 p.m. OK FPC TESTS 68 1419 3993600 1900
10275278 Alex_2oo8 popoffka D March 14, 2015, 4:46 p.m. OK FPC TESTS 68 1435 32153600 1900
10638198 igdor99 D April 9, 2015, 9:26 a.m. OK FPC TESTS 68 1481 35635200 1900
10545970 Sanja D April 1, 2015, 9:03 p.m. OK FPC TESTS 68 1512 12185600 1900
10293844 RainGrid D March 15, 2015, 8:26 p.m. OK FPC TESTS 68 1575 16076800 1900
53005878 chaorenhaha D April 19, 2019, 9:33 a.m. OK FPC TESTS 68 1793 7987200 1900
53005892 chaorenhaha D April 19, 2019, 9:34 a.m. OK FPC TESTS 68 1824 4812800 1900
10765867 sanketM D April 18, 2015, 9:51 a.m. OK GNU C TESTS 68 405 14028800 1900
10345610 abelov D March 19, 2015, 6:37 a.m. OK GNU C TESTS 68 467 3993600 1900
10370277 magnickolas D March 20, 2015, 6:07 p.m. OK GNU C++ TESTS 68 249 3993600 1900
41242443 Patti D Aug. 5, 2018, 11:12 a.m. OK GNU C++ TESTS 68 249 6246400 1900
40986907 ReaLNero1 D July 30, 2018, 8:50 p.m. OK GNU C++ TESTS 68 264 13209600 1900
10419821 meikoNiMaBi D March 24, 2015, 7:04 a.m. OK GNU C++ TESTS 68 264 13209600 1900
35140998 kakakaka D Feb. 11, 2018, 2:23 a.m. OK GNU C++ TESTS 68 264 20377600 1900
10279694 dertnez AndryLat D March 14, 2015, 9:55 p.m. OK GNU C++ TESTS 68 280 6860800 1900
10279657 LatushewONAFT D March 14, 2015, 9:51 p.m. OK GNU C++ TESTS 68 280 6860800 1900
29542074 kakakaka D Aug. 18, 2017, 2:53 a.m. OK GNU C++ TESTS 68 280 18329600 1900
41326215 luogu_bot5 D Aug. 8, 2018, 5:38 a.m. OK GNU C++ TESTS 68 295 6348800 1900
12237330 wilcot D July 27, 2015, 7:44 a.m. OK GNU C++ TESTS 68 358 3788800 1900
10279769 illarionovam_onu igor.vustyanyuk D March 14, 2015, 10:01 p.m. OK GNU C++0x TESTS 68 280 6860800 1900
10274505 Monyura Sfairat D March 14, 2015, 3:56 p.m. OK GNU C++0x TESTS 68 358 6860800 1900
10280135 nghiand saodem74 D March 14, 2015, 10:39 p.m. OK GNU C++0x TESTS 68 373 3993600 1900
10277180 genius_a D March 14, 2015, 6:39 p.m. OK GNU C++0x TESTS 68 373 6656000 1900
10279519 XJIE6 the7winds D March 14, 2015, 9:37 p.m. OK GNU C++0x TESTS 68 373 6860800 1900
10281764 ACube D March 15, 2015, 3:58 a.m. OK GNU C++0x TESTS 68 373 46899200 1900
10278690 NeNikita NeVova D March 14, 2015, 8:22 p.m. OK GNU C++0x TESTS 68 374 6656000 1900
10279098 Trumen felix D March 14, 2015, 8:57 p.m. OK GNU C++0x TESTS 68 374 6860800 1900
10284068 fake_delete_account mihaiI D March 15, 2015, 7:45 a.m. OK GNU C++0x TESTS 68 389 3788800 1900
10277219 ctlin04 D March 14, 2015, 6:41 p.m. OK GNU C++0x TESTS 68 389 3993600 1900
69836713 Luisvacson D Jan. 30, 2020, 12:02 p.m. OK GNU C++11 TESTS 68 217 15462400 1900
44256559 NOI-C D Oct. 13, 2018, 12:33 p.m. OK GNU C++11 TESTS 68 249 6348800 1900
41241944 NOI-C D Aug. 5, 2018, 10:54 a.m. OK GNU C++11 TESTS 68 265 6348800 1900
41242024 NOI-C D Aug. 5, 2018, 10:57 a.m. OK GNU C++11 TESTS 68 280 6348800 1900
41242062 NOI-C D Aug. 5, 2018, 10:58 a.m. OK GNU C++11 TESTS 68 296 6348800 1900
69806201 TrigonometricFunction D Jan. 30, 2020, 1:58 a.m. OK GNU C++11 TESTS 68 342 17100800 1900
52265042 XG20 D April 3, 2019, 11:01 a.m. OK GNU C++11 TESTS 68 343 24064000 1900
52262069 XG20 D April 3, 2019, 9:24 a.m. OK GNU C++11 TESTS 68 343 24064000 1900
30218241 zhouheyang0919 D Sept. 9, 2017, 5:56 a.m. OK GNU C++11 TESTS 68 373 6348800 1900
13477557 dreamoon_love_AA D Oct. 7, 2015, 2:19 p.m. OK GNU C++11 TESTS 68 373 6860800 1900
49343490 w446506278 D Feb. 2, 2019, 3:06 a.m. OK GNU C++14 TESTS 68 420 11980800 1900
25972338 mengxiang000 D March 31, 2017, 9:15 a.m. OK GNU C++14 TESTS 68 421 38604800 1900
52809319 arman_ferdous D April 16, 2019, 7:29 a.m. OK GNU C++14 TESTS 68 451 6348800 1900
40372358 Mr_Emrul D July 15, 2018, 8:51 a.m. OK GNU C++14 TESTS 68 452 6348800 1900
40041882 Heart_Blue D July 6, 2018, 7:06 p.m. OK GNU C++14 TESTS 68 452 6348800 1900
41247065 paris2007 D Aug. 5, 2018, 1:43 p.m. OK GNU C++14 TESTS 68 467 6348800 1900
25691804 drdanailov D March 21, 2017, 1:53 p.m. OK GNU C++14 TESTS 68 482 8294400 1900
69806008 2529298200 D Jan. 30, 2020, 1:52 a.m. OK GNU C++14 TESTS 68 482 17203200 1900
30218105 taojunhan D Sept. 9, 2017, 5:47 a.m. OK GNU C++14 TESTS 68 483 6348800 1900
30217772 paulzrm D Sept. 9, 2017, 5:21 a.m. OK GNU C++14 TESTS 68 483 6348800 1900
63422602 ruo D Oct. 26, 2019, 6:53 a.m. OK GNU C++17 TESTS 68 404 6348800 1900
41241964 vjudge2 D Aug. 5, 2018, 10:55 a.m. OK GNU C++17 TESTS 68 405 14336000 1900
41241948 somebody_else D Aug. 5, 2018, 10:54 a.m. OK GNU C++17 TESTS 68 436 14336000 1900
41309824 Caterpillar_20031217 D Aug. 7, 2018, 3:15 p.m. OK GNU C++17 TESTS 68 467 6348800 1900
62511206 TianPingXing D Oct. 13, 2019, 1:22 p.m. OK GNU C++17 TESTS 68 468 6348800 1900
42344687 Hitler D Sept. 1, 2018, 8:01 p.m. OK GNU C++17 TESTS 68 498 10342400 1900
41258712 vjudge1 D Aug. 6, 2018, 12:29 a.m. OK GNU C++17 TESTS 68 514 6348800 1900
41258709 vjudge3 D Aug. 6, 2018, 12:29 a.m. OK GNU C++17 TESTS 68 514 6348800 1900
44342817 vjudge5 D Oct. 15, 2018, 5:05 a.m. OK GNU C++17 TESTS 68 514 22323200 1900
68308716 dhruv2000 D Jan. 6, 2020, 10:11 a.m. OK GNU C++17 TESTS 68 530 6348800 1900
10341608 asaelko D March 18, 2015, 6:25 p.m. OK Go TESTS 68 717 8192000 1900
23050033 abrikosik D Dec. 17, 2016, 2:47 p.m. OK Go TESTS 68 1777 27648000 1900
10405149 watashi D March 22, 2015, 10:30 p.m. OK Haskell TESTS 68 1512 63180800 1900
23260457 opudalo D Dec. 23, 2016, 11:05 p.m. OK Haskell TESTS 68 1778 115404800 1900
23260467 opudalo D Dec. 23, 2016, 11:06 p.m. OK Haskell TESTS 68 2168 104857600 1900
23260510 opudalo D Dec. 23, 2016, 11:12 p.m. OK Haskell TESTS 68 2666 115404800 1900
22999421 Menschenkindlein D Dec. 15, 2016, 7:10 a.m. OK Haskell TESTS 68 2948 181964800 1900
10308049 timurtibeyev D March 17, 2015, 8:18 a.m. OK Java 7 TESTS 68 514 0 1900
10281209 mkirsche D March 15, 2015, 2:06 a.m. OK Java 7 TESTS 68 623 10137600 1900
10311842 trunghieu11 D March 17, 2015, 3:16 p.m. OK Java 7 TESTS 68 639 45465600 1900
10311941 trunghieu11 D March 17, 2015, 3:27 p.m. OK Java 7 TESTS 68 654 45465600 1900
10308759 trunghieu11 D March 17, 2015, 10:07 a.m. OK Java 7 TESTS 68 654 45465600 1900
10289579 kolia D March 15, 2015, 1:59 p.m. OK Java 7 TESTS 68 655 0 1900
10291020 deNULL D March 15, 2015, 3:40 p.m. OK Java 7 TESTS 68 655 14028800 1900
10285832 arechitsky grishka D March 15, 2015, 9:44 a.m. OK Java 7 TESTS 68 670 0 1900
10289126 taras.klaskovsky TDiva D March 15, 2015, 1:29 p.m. OK Java 7 TESTS 68 670 5939200 1900
10371871 control9 D March 20, 2015, 8:52 p.m. OK Java 7 TESTS 68 685 0 1900
11439947 poikniok D June 5, 2015, 3:50 a.m. OK Java 8 TESTS 68 498 5324800 1900
22105923 dhrumil140396 D Nov. 8, 2016, 5:27 a.m. OK Java 8 TESTS 68 514 20582400 1900
30284985 Maulik_Patel D Sept. 12, 2017, 11:42 a.m. OK Java 8 TESTS 68 514 33382400 1900
47247893 RasMalai D Dec. 19, 2018, 6:49 a.m. OK Java 8 TESTS 68 529 43212800 1900
10275200 ark1 cromtus D March 14, 2015, 4:42 p.m. OK Java 8 TESTS 68 530 0 1900
10511182 I_love_Malika D March 29, 2015, 5:29 a.m. OK Java 8 TESTS 68 561 0 1900
10350458 Pimpom D March 19, 2015, 3:31 p.m. OK Java 8 TESTS 68 561 0 1900
10287615 Irkutsk_ISRU XelMed D March 15, 2015, noon OK Java 8 TESTS 68 576 22220800 1900
10274976 trilis MAKAR1999 D March 14, 2015, 4:25 p.m. OK Java 8 TESTS 68 592 0 1900
10288630 pestretsov anstreth D March 15, 2015, 1 p.m. OK Java 8 TESTS 68 639 0 1900
10276096 hypnos_phi Murrasha D March 14, 2015, 5:32 p.m. OK JavaScript TESTS 68 1825 63897600 1900
10289168 drywet D March 15, 2015, 1:32 p.m. OK JavaScript TESTS 68 2948 39424000 1900
22929507 dzharvis D Dec. 13, 2016, 3:13 p.m. OK Kotlin TESTS 68 997 7577600 1900
22929727 dzharvis D Dec. 13, 2016, 3:23 p.m. OK Kotlin TESTS 68 998 7577600 1900
22929267 dzharvis D Dec. 13, 2016, 3:02 p.m. OK Kotlin TESTS 68 1544 29798400 1900
10291286 8uk.8ak D March 15, 2015, 3:53 p.m. OK Mono C# TESTS 68 2869 15155200 1900
10345667 camypaper D March 19, 2015, 6:46 a.m. OK MS C# TESTS 68 545 19558400 1900
10293769 l1pton17 D March 15, 2015, 8:15 p.m. OK MS C# TESTS 68 748 43827200 1900
10307368 azukun D March 17, 2015, 6:25 a.m. OK MS C# TESTS 68 857 12492800 1900
10307397 azukun D March 17, 2015, 6:29 a.m. OK MS C# TESTS 68 1528 46182400 1900
10308546 flash2048 D March 17, 2015, 9:32 a.m. OK MS C# TESTS 68 1559 49254400 1900
10308529 flash2048 D March 17, 2015, 9:29 a.m. OK MS C# TESTS 68 1575 44953600 1900
10307408 azukun D March 17, 2015, 6:31 a.m. OK MS C# TESTS 68 1747 35225600 1900
10281173 8uk.8ak chelseadagger D March 15, 2015, 1:57 a.m. OK MS C# TESTS 68 2589 15155200 1900
10280900 fr0st D March 15, 2015, 12:37 a.m. OK MS C# TESTS 68 2651 15257600 1900
10293777 l1pton17 D March 15, 2015, 8:17 p.m. OK MS C# TESTS 68 2683 19558400 1900
11052034 Toosample D May 9, 2015, 6:04 a.m. OK MS C++ TESTS 68 373 9932800 1900
10301565 evgeniyzarubkin D March 16, 2015, 3:39 p.m. OK MS C++ TESTS 68 373 9932800 1900
10289415 evbateev shteupuk D March 15, 2015, 1:49 p.m. OK MS C++ TESTS 68 373 9932800 1900
10293832 Carups D March 15, 2015, 8:24 p.m. OK MS C++ TESTS 68 374 9932800 1900
10277002 Vanek VeoR12 D March 14, 2015, 6:25 p.m. OK MS C++ TESTS 68 374 9932800 1900
10274617 O_A wellwellwell D March 14, 2015, 4:02 p.m. OK MS C++ TESTS 68 374 15462400 1900
10278233 2oo7 Ranis D March 14, 2015, 7:53 p.m. OK MS C++ TESTS 68 389 3993600 1900
10276640 artem.wide technic93 D March 14, 2015, 6:03 p.m. OK MS C++ TESTS 68 389 7987200 1900
10291332 FranticSlowpoke D March 15, 2015, 3:57 p.m. OK MS C++ TESTS 68 389 9932800 1900
10275668 fetchhell asanasana D March 14, 2015, 5:08 p.m. OK MS C++ TESTS 68 389 9932800 1900
22903683 alyaxey D Dec. 12, 2016, 12:30 p.m. OK PyPy 2 TESTS 68 1793 91852800 1900
23079365 mongooose D Dec. 18, 2016, 7:53 a.m. OK PyPy 2 TESTS 68 1886 78233600 1900
23117602 diunko D Dec. 19, 2016, 1:51 a.m. OK PyPy 2 TESTS 68 1887 85811200 1900
10408750 ykalchevskiy D March 23, 2015, 10:09 a.m. OK PyPy 2 TESTS 68 1949 90316800 1900
23198437 alyaxey D Dec. 21, 2016, 12:05 p.m. OK PyPy 2 TESTS 68 2043 36761600 1900
23198408 alyaxey D Dec. 21, 2016, 12:03 p.m. OK PyPy 2 TESTS 68 2058 36864000 1900
22903866 alyaxey D Dec. 12, 2016, 12:39 p.m. OK PyPy 2 TESTS 68 2058 92672000 1900
11829785 allanyin D June 28, 2015, 11:49 p.m. OK PyPy 2 TESTS 68 2074 81305600 1900
23198622 alyaxey D Dec. 21, 2016, 12:14 p.m. OK PyPy 2 TESTS 68 2090 31641600 1900
10297830 8uk.8ak D March 16, 2015, 8:34 a.m. OK PyPy 2 TESTS 68 2121 88064000 1900
36932282 Momentaiii D April 3, 2018, 7:33 p.m. OK PyPy 3 TESTS 68 2744 166707200 1900
36981617 Momentaiii D April 4, 2018, 8:32 p.m. OK PyPy 3 TESTS 68 2776 166092800 1900
22935989 komelianchuk D Dec. 13, 2016, 10:07 p.m. OK PyPy 3 TESTS 68 2916 140902400 1900
23013759 komelianchuk D Dec. 15, 2016, 5:28 p.m. OK PyPy 3 TESTS 68 2932 141414400 1900
10408700 ykalchevskiy D March 23, 2015, 10:03 a.m. OK PyPy 3 TESTS 68 2995 143872000 1900
10407760 kit1980 D March 23, 2015, 8:10 a.m. OK Python 3 TESTS 68 1871 57139200 1900
10407752 kit1980 D March 23, 2015, 8:09 a.m. OK Python 3 TESTS 68 1934 56627200 1900
11453151 poikniok D June 6, 2015, 12:10 a.m. OK Python 3 TESTS 68 2230 45363200 1900
10408797 ykalchevskiy D March 23, 2015, 10:13 a.m. OK Python 3 TESTS 68 2230 56729600 1900
34663212 yugle7 D Jan. 29, 2018, 1:42 p.m. OK Python 3 TESTS 68 2293 50483200 1900
35885402 ______n______ D March 3, 2018, 1:28 p.m. OK Python 3 TESTS 68 2308 50688000 1900
35884559 _____k_____ D March 3, 2018, 1:14 p.m. OK Python 3 TESTS 68 2308 50688000 1900
35884291 _____i_____ D March 3, 2018, 1:09 p.m. OK Python 3 TESTS 68 2308 50688000 1900
35873648 ______h______ D March 3, 2018, 7:34 a.m. OK Python 3 TESTS 68 2308 50688000 1900
35873412 ______k______ D March 3, 2018, 7:29 a.m. OK Python 3 TESTS 68 2308 50688000 1900
33141196 ditsing D Dec. 12, 2017, 12:01 a.m. OK Rust TESTS 68 2917 9113600 1900
33141223 ditsing D Dec. 12, 2017, 12:03 a.m. OK Rust TESTS 68 2963 11059200 1900
10291590 jacke D March 15, 2015, 4:13 p.m. OK Scala TESTS 68 763 10035200 1900
10312038 Dreimon D March 17, 2015, 3:37 p.m. OK Scala TESTS 68 1231 51916800 1900

remove filters

Back to search problems