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 |
---|---|---|---|---|---|---|
802 | Helvetic Coding Contest 2017 online mirror (teams allowed, unrated) | FINISHED | False | 16200 | 241566923 | May 28, 2017, 8:05 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1233 ) | N | April Fools' Problem (medium) | PROGRAMMING | binary search flows graphs | 2500 |
B'The marmots need to prepare k problems for HC2 over n days. Each problem, once prepared, also has to be printed. The preparation of a problem on day i (at most one per day) costs ai CHF, and the printing of a problem on day i (also at most one per day) costs bi CHF. Of course, a problem cannot be printed before it has been prepared (but doing both on the same day is fine). What is the minimum cost of preparation and printing? The first line of input contains two space-separated integers n and k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892200). The second line contains n space-separated integers a1, xe2 x80 x89..., xe2 x80 x89an () -- the preparation costs. The third line contains n space-separated integers b1, xe2 x80 x89..., xe2 x80 x89bn () -- the printing costs. Output the minimum cost of preparation and printing k problems -- that is, the minimum possible sum ai1 xe2 x80 x89+ xe2 x80 x89ai2 xe2 x80 x89+ xe2 x80 x89... xe2 x80 x89+ xe2 x80 x89aik xe2 x80 x89+ xe2 x80 x89bj1 xe2 x80 x89+ xe2 x80 x89bj2 xe2 x80 x89+ xe2 x80 x89... xe2 x80 x89+ xe2 x80 x89bjk, where 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89i1 xe2 x80 x89< xe2 x80 x89i2 xe2 x80 x89< xe2 x80 x89... xe2 x80 x89< xe2 x80 x89ik xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89j1 xe2 x80 x89< xe2 x80 x89j2 xe2 x80 x89< xe2 x80 x89... xe2 x80 x89< xe2 x80 x89jk xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n and i1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89j1, i2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89j2, ..., ik xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89jk. In the sample testcase, one optimum solution is to prepare the first problem on day 1 and print it on day 1, prepare the second problem on day 2 and print it on day 4, prepare the third problem on day 3 and print it on day 5, and prepare the fourth problem on day 6 and print it on day 8. '... |
helvetic-coding-contest-2017-editorial.pdf |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
27541581 | mkisic | N | June 3, 2017, 10:47 a.m. | OK | GNU C++ | TESTS | 17 | 15 | 8089600 | 2500 | |
28492966 | Claris | N | July 13, 2017, 6:58 a.m. | OK | GNU C++ | TESTS | 17 | 15 | 56422400 | 2500 | |
40742145 | zhouyuyang | N | July 25, 2018, 12:44 p.m. | OK | GNU C++ | TESTS | 17 | 31 | 4198400 | 2500 | |
27411237 | rng_58 | N | May 28, 2017, 11:37 a.m. | OK | GNU C++ | TESTS | 17 | 46 | 0 | 2500 | |
27768752 | RedTea | N | June 14, 2017, 6:34 a.m. | OK | GNU C++ | TESTS | 17 | 46 | 204800 | 2500 | |
27411438 | hzt1 | N | May 28, 2017, 11:45 a.m. | OK | GNU C++ | TESTS | 17 | 61 | 0 | 2500 | |
27412326 | ania | N | May 28, 2017, 12:17 p.m. | OK | GNU C++ | TESTS | 17 | 62 | 102400 | 2500 | |
27573778 | ACMLCZH | N | June 5, 2017, 1:26 a.m. | OK | GNU C++ | TESTS | 17 | 296 | 58265600 | 2500 | |
27543027 | jasonvictoryan | N | June 3, 2017, 12:12 p.m. | OK | GNU C++ | TESTS | 17 | 545 | 512000 | 2500 | |
27412146 | szpszp cqbz163003gzm Hineven | N | May 28, 2017, 12:10 p.m. | OK | GNU C++ | TESTS | 17 | 592 | 6553600 | 2500 | |
27434835 | dacin21 | N | May 29, 2017, 7:10 p.m. | OK | GNU C++11 | TESTS | 17 | 15 | 102400 | 2500 | |
34595372 | zhouyuyang | N | Jan. 27, 2018, 5:54 a.m. | OK | GNU C++11 | TESTS | 17 | 15 | 6246400 | 2500 | |
27411538 | xxTastyHypeBeast666xx gongy rnsiehemt | N | May 28, 2017, 11:48 a.m. | OK | GNU C++11 | TESTS | 17 | 15 | 8089600 | 2500 | |
27483217 | g1n0st | N | June 1, 2017, 11:14 a.m. | OK | GNU C++11 | TESTS | 17 | 15 | 8192000 | 2500 | |
34499190 | kingsnow | N | Jan. 24, 2018, 12:21 a.m. | OK | GNU C++11 | TESTS | 17 | 15 | 18124800 | 2500 | |
29723857 | Jayzhang | N | Aug. 24, 2017, 6:40 a.m. | OK | GNU C++11 | TESTS | 17 | 30 | 102400 | 2500 | |
27421099 | HanwhaEagles | N | May 29, 2017, 12:10 a.m. | OK | GNU C++11 | TESTS | 17 | 30 | 102400 | 2500 | |
40190021 | hychyc | N | July 11, 2018, 5:56 a.m. | OK | GNU C++11 | TESTS | 17 | 30 | 4300800 | 2500 | |
27449234 | RNS_CUS | N | May 30, 2017, 1:37 p.m. | OK | GNU C++11 | TESTS | 17 | 30 | 8089600 | 2500 | |
57874645 | lopare | N | July 28, 2019, 4:25 a.m. | OK | GNU C++11 | TESTS | 17 | 31 | 0 | 2500 | |
27467133 | Jori | N | May 31, 2017, 12:56 p.m. | OK | GNU C++14 | TESTS | 17 | 15 | 204800 | 2500 | |
27577149 | LoveYayoi | N | June 5, 2017, 6:45 a.m. | OK | GNU C++14 | TESTS | 17 | 15 | 8294400 | 2500 | |
33957394 | ko_osaga | N | Jan. 6, 2018, 6:52 a.m. | OK | GNU C++14 | TESTS | 17 | 15 | 10137600 | 2500 | |
27412587 | V--o_o--V | N | May 28, 2017, 12:25 p.m. | OK | GNU C++14 | TESTS | 17 | 30 | 102400 | 2500 | |
27429600 | haleyk100198 | N | May 29, 2017, 1:04 p.m. | OK | GNU C++14 | TESTS | 17 | 30 | 204800 | 2500 | |
27541641 | vilim_l | N | June 3, 2017, 10:51 a.m. | OK | GNU C++14 | TESTS | 17 | 30 | 2355200 | 2500 | |
27623284 | WuHongxun jiaqiyang | N | June 7, 2017, 12:37 a.m. | OK | GNU C++14 | TESTS | 17 | 30 | 50073600 | 2500 | |
37261721 | Troywar | N | April 12, 2018, 11:11 p.m. | OK | GNU C++14 | TESTS | 17 | 31 | 7475200 | 2500 | |
27561257 | Heisenberger | N | June 4, 2017, 10:51 a.m. | OK | GNU C++14 | TESTS | 17 | 31 | 20070400 | 2500 | |
42873545 | Jester | N | Sept. 14, 2018, 9:02 p.m. | OK | GNU C++14 | TESTS | 17 | 46 | 102400 | 2500 | |
45073912 | err0r | N | Oct. 29, 2018, 9:48 p.m. | OK | GNU C++17 | TESTS | 17 | 31 | 16281600 | 2500 | |
55201363 | hjk1030 | N | June 6, 2019, 10:44 a.m. | OK | GNU C++17 | TESTS | 17 | 46 | 8089600 | 2500 | |
44860064 | falanga | N | Oct. 25, 2018, 3:22 p.m. | OK | GNU C++17 | TESTS | 17 | 312 | 4505600 | 2500 | |
67527380 | Martin53 | N | Dec. 24, 2019, 2:32 p.m. | OK | GNU C++17 | TESTS | 17 | 717 | 819200 | 2500 | |
47325737 | Vardanyan | N | Dec. 21, 2018, 10:17 a.m. | OK | GNU C++17 | TESTS | 17 | 764 | 25190400 | 2500 | |
47323718 | Vardanyan | N | Dec. 21, 2018, 9:11 a.m. | OK | GNU C++17 | TESTS | 17 | 795 | 819200 | 2500 | |
51814721 | chinmay0906 | N | March 25, 2019, 8:24 a.m. | OK | GNU C++17 | TESTS | 17 | 826 | 1126400 | 2500 | |
56811900 | Veladus | N | July 10, 2019, 4:40 p.m. | OK | GNU C++17 | TESTS | 17 | 872 | 1331200 | 2500 | |
63377726 | Hoshi08 | N | Oct. 25, 2019, 11:33 a.m. | OK | GNU C++17 | TESTS | 17 | 873 | 921600 | 2500 | |
39453331 | aviroop123 | N | June 21, 2018, 6:49 a.m. | OK | GNU C++17 | TESTS | 17 | 904 | 1024000 | 2500 | |
32212628 | uwi | N | Nov. 11, 2017, 6:59 a.m. | OK | Java 8 | TESTS | 17 | 1216 | 0 | 2500 | |
27745593 | Omar_Morsi | N | June 12, 2017, 10:07 p.m. | OK | Java 8 | TESTS | 17 | 1528 | 0 | 2500 | |
27426767 | NikitaMikhaylov | N | May 29, 2017, 9:25 a.m. | OK | Java 8 | TESTS | 17 | 3759 | 0 | 2500 | |
27456931 | peregrinus | N | May 30, 2017, 11:24 p.m. | OK | Mono C# | TESTS | 17 | 1637 | 69222400 | 2500 | |
27842806 | chokudai | N | June 17, 2017, 9:36 a.m. | OK | MS C# | TESTS | 17 | 1045 | 6758400 | 2500 | |
27842537 | chokudai | N | June 17, 2017, 9:23 a.m. | OK | MS C# | TESTS | 17 | 1060 | 7065600 | 2500 | |
27841886 | camypaper | N | June 17, 2017, 8:54 a.m. | OK | MS C# | TESTS | 17 | 3493 | 7168000 | 2500 | |
27550147 | TheConfessor | N | June 3, 2017, 6:16 p.m. | OK | MS C++ | TESTS | 17 | 1950 | 819200 | 2500 |
Back to search problems