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 |
---|---|---|---|---|---|---|
643 | VK Cup 2016 - Round 3 | FINISHED | False | 10800 | 269189699 | May 7, 2016, 3:05 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1395 ) | C | Levels and Regions | PROGRAMMING | dp | 2500 |
B"Radewoosh is playing a computer game. There are n levels, numbered 1 through n. Levels are divided into k regions (groups). Each region contains some positive number of consecutive levels. The game repeats the the following process: Given n, k and values t1, xe2 x80 x89t2, xe2 x80 x89..., xe2 x80 x89tn, your task is to split levels into regions. Each level must belong to exactly one region, and each region must contain non-empty consecutive set of levels. What is the minimum possible expected number of hours required to finish the game? The first line of the input contains two integers n and k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89200 xe2 x80 x89000, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89min(50, xe2 x80 x89n)) -- the number of levels and the number of regions, respectively. The second line contains n integers t1, xe2 x80 x89t2, xe2 x80 x89..., xe2 x80 x89tn (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ti xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100 xe2 x80 x89000). Print one real number -- the minimum possible expected value of the number of hours spent to finish the game if levels are distributed between regions in the optimal way. Your answer will be considered correct if its absolute or relative error does not exceed 10 xe2 x80 x89- xe2 x80 x894. Namely: let's assume that your answer is a, and the answer of the jury is b. The checker program will consider your answer correct if . In the first sample, we are supposed to split 4 levels into 2 regions. It's optimal to create the first region with only one level (it must be the first level). Then, the second region must contain other three levels. In the second sample, it's optimal to split levels into two regions with 3 levels each. "... |
VK Cup 2016 — Round 3 — Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
34299538 | rainy_season | C | Jan. 19, 2018, 10:45 a.m. | OK | GNU C++ | TESTS | 62 | 234 | 14131200 | 2500 | |
28210867 | maijing | C | July 2, 2017, 1:04 p.m. | OK | GNU C++ | TESTS | 62 | 249 | 103116800 | 2500 | |
25149403 | abcdef6199 | C | March 2, 2017, 1:43 p.m. | OK | GNU C++ | TESTS | 62 | 343 | 107110400 | 2500 | |
17792346 | meshanya TeaPot | C | May 7, 2016, 4:38 p.m. | OK | GNU C++ | TESTS | 62 | 389 | 15769600 | 2500 | |
17873183 | yutaka1999 | C | May 12, 2016, 9:54 a.m. | OK | GNU C++ | TESTS | 62 | 390 | 17305600 | 2500 | |
17838049 | SanSiroWaltz | C | May 11, 2016, 1:46 a.m. | OK | GNU C++ | TESTS | 62 | 420 | 96870400 | 2500 | |
17890887 | yuxiaogang | C | May 13, 2016, 2:45 p.m. | OK | GNU C++ | TESTS | 62 | 436 | 96665600 | 2500 | |
21185627 | jiyutian | C | Oct. 4, 2016, 11:49 a.m. | OK | GNU C++ | TESTS | 62 | 436 | 140185600 | 2500 | |
41335859 | luogu_bot4 | C | Aug. 8, 2018, 12:01 p.m. | OK | GNU C++ | TESTS | 62 | 451 | 92774400 | 2500 | |
18863862 | black_horse2014 | C | July 3, 2016, 6:47 a.m. | OK | GNU C++ | TESTS | 62 | 483 | 18739200 | 2500 | |
48089602 | HeHere | C | Jan. 8, 2019, 1:05 p.m. | OK | GNU C++11 | TESTS | 62 | 171 | 10444800 | 2500 | |
17914838 | Thost | C | May 15, 2016, 3:02 a.m. | OK | GNU C++11 | TESTS | 62 | 218 | 13414400 | 2500 | |
17833889 | Birjik | C | May 10, 2016, 3:32 p.m. | OK | GNU C++11 | TESTS | 62 | 248 | 100864000 | 2500 | |
17833884 | I_love_Codechef | C | May 10, 2016, 3:32 p.m. | OK | GNU C++11 | TESTS | 62 | 248 | 100864000 | 2500 | |
17790385 | sokian Babanin_Ivan | C | May 7, 2016, 4:14 p.m. | OK | GNU C++11 | TESTS | 62 | 280 | 32256000 | 2500 | |
19327160 | Neumann | C | July 22, 2016, 3:26 p.m. | OK | GNU C++11 | TESTS | 62 | 296 | 10035200 | 2500 | |
44335915 | Matheus.Monteiro | C | Oct. 14, 2018, 9:27 p.m. | OK | GNU C++11 | TESTS | 62 | 296 | 99532800 | 2500 | |
17838172 | rainbow979 | C | May 11, 2016, 2:19 a.m. | OK | GNU C++11 | TESTS | 62 | 311 | 13516800 | 2500 | |
17789798 | sankear Zlobober | C | May 7, 2016, 4:07 p.m. | OK | GNU C++11 | TESTS | 62 | 312 | 100044800 | 2500 | |
48091813 | Darling-IcePrincess_1968 | C | Jan. 8, 2019, 2:14 p.m. | OK | GNU C++11 | TESTS | 62 | 358 | 112230400 | 2500 | |
40984851 | ReaLNero1 | C | July 30, 2018, 7:37 p.m. | OK | GNU C++14 | TESTS | 62 | 156 | 12800000 | 2500 | |
53454916 | luogu_bot2 | C | April 28, 2019, 1:17 a.m. | OK | GNU C++14 | TESTS | 62 | 233 | 250368000 | 2500 | |
42155548 | Emiso | C | Aug. 27, 2018, 2:27 p.m. | OK | GNU C++14 | TESTS | 62 | 296 | 90214400 | 2500 | |
64738932 | luogu_bot2 | C | Nov. 12, 2019, 11:20 a.m. | OK | GNU C++14 | TESTS | 62 | 327 | 17612800 | 2500 | |
35734066 | Marco_L_T | C | Feb. 26, 2018, 1:52 p.m. | OK | GNU C++14 | TESTS | 62 | 436 | 90214400 | 2500 | |
25872048 | YakutovDmitriy | C | March 28, 2017, 11:36 a.m. | OK | GNU C++14 | TESTS | 62 | 452 | 13107200 | 2500 | |
42128930 | Emiso | C | Aug. 26, 2018, 5:06 p.m. | OK | GNU C++14 | TESTS | 62 | 452 | 90931200 | 2500 | |
56371169 | vjudge4 | C | July 1, 2019, 3:44 a.m. | OK | GNU C++14 | TESTS | 62 | 452 | 97484800 | 2500 | |
32577513 | BlueKalecgos | C | Nov. 23, 2017, 2:11 p.m. | OK | GNU C++14 | TESTS | 62 | 514 | 11571200 | 2500 | |
26783429 | 2020.01.09_Restart | C | May 1, 2017, 10:22 a.m. | OK | GNU C++14 | TESTS | 62 | 561 | 90931200 | 2500 | |
64738850 | Roal_L | C | Nov. 12, 2019, 11:18 a.m. | OK | GNU C++17 | TESTS | 62 | 327 | 17612800 | 2500 | |
37573466 | 5438722 | C | April 24, 2018, 1:15 p.m. | OK | GNU C++17 | TESTS | 62 | 405 | 15360000 | 2500 | |
48048091 | lqs2015 | C | Jan. 7, 2019, 6:08 a.m. | OK | GNU C++17 | TESTS | 62 | 498 | 12697600 | 2500 | |
40782828 | Martin53 | C | July 26, 2018, 2:50 p.m. | OK | GNU C++17 | TESTS | 62 | 654 | 90624000 | 2500 | |
48104380 | charlie_yan | C | Jan. 9, 2019, 2:50 a.m. | OK | GNU C++17 | TESTS | 62 | 717 | 95436800 | 2500 | |
58790865 | afdanilkin | C | Aug. 14, 2019, 2:19 a.m. | OK | GNU C++17 | TESTS | 62 | 763 | 133120000 | 2500 | |
56180892 | joaom | C | June 27, 2019, 11:25 p.m. | OK | GNU C++17 | TESTS | 62 | 764 | 7987200 | 2500 | |
50820283 | kefaa2 antontrygubO_o | C | March 5, 2019, 1:16 p.m. | OK | GNU C++17 | TESTS | 62 | 842 | 142745600 | 2500 | |
48459659 | alexX512 | C | Jan. 16, 2019, 2:03 p.m. | OK | GNU C++17 | TESTS | 62 | 842 | 166604800 | 2500 | |
48053469 | dorijanlendvaj | C | Jan. 7, 2019, 10:47 a.m. | OK | GNU C++17 | TESTS | 62 | 1013 | 132710400 | 2500 | |
17794492 | VArtem | C | May 7, 2016, 5:12 p.m. | OK | Java 8 | TESTS | 62 | 982 | 35942400 | 2500 | |
17821592 | duckladydinh | C | May 9, 2016, 2:30 p.m. | OK | Java 8 | TESTS | 62 | 1138 | 204595200 | 2500 | |
17798700 | AlexFetisov | C | May 7, 2016, 7:42 p.m. | OK | Java 8 | TESTS | 62 | 1372 | 41062400 | 2500 | |
17792965 | antonkov Yurik | C | May 7, 2016, 4:47 p.m. | OK | Java 8 | TESTS | 62 | 1638 | 176230400 | 2500 | |
18054373 | Yury_Bandarchuk | C | May 24, 2016, 11:34 a.m. | OK | Java 8 | TESTS | 62 | 2682 | 47820800 | 2500 | |
23216979 | tri | C | Dec. 22, 2016, 4:12 a.m. | OK | Java 8 | TESTS | 62 | 2683 | 25907200 | 2500 | |
18055100 | Yury_Bandarchuk | C | May 24, 2016, 12:27 p.m. | OK | Java 8 | TESTS | 62 | 2776 | 47923200 | 2500 | |
17798115 | mmaxio | C | May 7, 2016, 7:16 p.m. | OK | Java 8 | TESTS | 62 | 2947 | 31948800 | 2500 | |
17812799 | Auster | C | May 8, 2016, 8:54 p.m. | OK | MS C++ | TESTS | 62 | 217 | 95948800 | 2500 | |
17934135 | Naduxa | C | May 16, 2016, 4:22 p.m. | OK | MS C++ | TESTS | 62 | 608 | 99225600 | 2500 | |
17798766 | DimonK | C | May 7, 2016, 7:46 p.m. | OK | MS C++ | TESTS | 62 | 608 | 99225600 | 2500 | |
22628411 | DimonK | C | Nov. 30, 2016, 5:21 p.m. | OK | MS C++ | TESTS | 62 | 654 | 96972800 | 2500 | |
17793075 | _LeMur_ Mushegh | C | May 7, 2016, 4:48 p.m. | OK | MS C++ | TESTS | 62 | 733 | 112947200 | 2500 | |
17804646 | TonySnark | C | May 8, 2016, 8:15 a.m. | OK | MS C++ | TESTS | 62 | 842 | 15052800 | 2500 | |
19995884 | kinol scorpion | C | Aug. 20, 2016, 2:03 p.m. | OK | MS C++ | TESTS | 62 | 873 | 22220800 | 2500 | |
17906998 | Mogby | C | May 14, 2016, 2:13 p.m. | OK | MS C++ | TESTS | 62 | 1372 | 50278400 | 2500 | |
17795063 | izban Belonogov | C | May 7, 2016, 5:23 p.m. | OK | MS C++ | TESTS | 62 | 1528 | 120524800 | 2500 | |
17833740 | Vanek | C | May 10, 2016, 3:21 p.m. | OK | MS C++ | TESTS | 62 | 1591 | 96460800 | 2500 |
Back to search problems