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 |
---|---|---|---|---|---|---|
958 | Helvetic Coding Contest 2018 online mirror (teams allowed, unrated) | FINISHED | False | 18000 | 208133699 | April 14, 2018, 7:05 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 587 ) | C3 | Encryption (hard) | PROGRAMMING | data structures dp | 2600 |
B'Heidi is now just one code away from breaking the encryption of the Death Star plans. The screen that should be presenting her with the description of the next code looks almost like the previous one, though who would have thought that the evil Empire engineers would fill this small screen with several million digits! It is just ridiculous to think that anyone would read them all... Heidi is once again given a sequence A and two integers k and p. She needs to find out what the encryption key S is. Let X be a sequence of integers, and p a positive integer. We define the score of X to be the sum of the elements of X modulo p. Heidi is given a sequence A that consists of N integers, and also given integers k and p. Her goal is to split A into k parts such that: Output the sum S, which is the encryption code. The first line of the input contains three space-separated integers N, k and p (k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89N xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89500 xe2 x80 x89000, 2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100, 2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89p xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100) xe2 x80 x93 the number of elements in A, the number of parts A should be split into, and the modulo for computing scores, respectively. The second line contains N space-separated integers that are the elements of A. Each integer is from the interval [1, xe2 x80 x891 xe2 x80 x89000 xe2 x80 x89000]. Output the number S as described in the problem statement. In the first example, if the input sequence is split as (3), (4, xe2 x80 x897), (2), the total score would be . It is easy to see that this score is the smallest possible. In the second example, one possible way to obtain score 13 is to make the following split: (16, xe2 x80 x893), (24), (13), (9, xe2 x80 x898), (7, xe2 x80 x895, xe2 x80 x8912, xe2 x80 x8912). '... |
helvetic-coding-contest-2018-editorial.pdf |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
37354453 | flukehn | C3 | April 15, 2018, 1:35 p.m. | OK | GNU C++ | TESTS | 31 | 140 | 9523200 | 2600 | |
37354499 | flukehn | C3 | April 15, 2018, 1:37 p.m. | OK | GNU C++ | TESTS | 31 | 202 | 9523200 | 2600 | |
37344998 | Treeloveswater | C3 | April 15, 2018, 6:12 a.m. | OK | GNU C++ | TESTS | 31 | 280 | 9625600 | 2600 | |
38601928 | vjudge1 | C3 | May 25, 2018, 6:30 a.m. | OK | GNU C++ | TESTS | 31 | 312 | 8294400 | 2600 | |
37323600 | Vasiljko KrK IceLady | C3 | April 14, 2018, 10:41 a.m. | OK | GNU C++ | TESTS | 31 | 327 | 28057600 | 2600 | |
37321708 | 131131yhx | C3 | April 14, 2018, 9:58 a.m. | OK | GNU C++ | TESTS | 31 | 561 | 7372800 | 2600 | |
37320646 | xmt Aqua_blue Lhtie | C3 | April 14, 2018, 9:35 a.m. | OK | GNU C++ | TESTS | 31 | 686 | 11673600 | 2600 | |
37319542 | Dream-Reality 248926 snowflake | C3 | April 14, 2018, 9:14 a.m. | OK | GNU C++ | TESTS | 31 | 764 | 222412800 | 2600 | |
37326912 | nwi | C3 | April 14, 2018, 12:20 p.m. | OK | GNU C++ | TESTS | 31 | 795 | 7577600 | 2600 | |
37501268 | vjudge2 | C3 | April 21, 2018, 2:32 a.m. | OK | GNU C++ | TESTS | 31 | 1123 | 5939200 | 2600 | |
56253058 | time_interspace | C3 | June 29, 2019, 4:49 a.m. | OK | GNU C++11 | TESTS | 31 | 46 | 8294400 | 2600 | |
56458034 | xielinhan | C3 | July 3, 2019, 5:20 a.m. | OK | GNU C++11 | TESTS | 31 | 46 | 41881600 | 2600 | |
44683818 | Rayment | C3 | Oct. 22, 2018, 8:16 a.m. | OK | GNU C++11 | TESTS | 31 | 46 | 41881600 | 2600 | |
56558752 | Dilute | C3 | July 5, 2019, 1:44 p.m. | OK | GNU C++11 | TESTS | 31 | 77 | 9420800 | 2600 | |
40932551 | ReaLNero1 | C3 | July 30, 2018, 1:53 a.m. | OK | GNU C++11 | TESTS | 31 | 124 | 7987200 | 2600 | |
37396860 | krijgertje | C3 | April 17, 2018, 1:35 p.m. | OK | GNU C++11 | TESTS | 31 | 124 | 11571200 | 2600 | |
57871309 | clya2004 | C3 | July 28, 2019, 2:02 a.m. | OK | GNU C++11 | TESTS | 31 | 140 | 3788800 | 2600 | |
38628205 | Jester | C3 | May 26, 2018, 8:12 a.m. | OK | GNU C++11 | TESTS | 31 | 140 | 3993600 | 2600 | |
43676638 | boshi | C3 | Oct. 2, 2018, 7:52 a.m. | OK | GNU C++11 | TESTS | 31 | 140 | 49049600 | 2600 | |
57740461 | py_ultron | C3 | July 25, 2019, 11:18 a.m. | OK | GNU C++11 | TESTS | 31 | 234 | 0 | 2600 | |
69156093 | sfiction | C3 | Jan. 19, 2020, 7:34 p.m. | OK | GNU C++14 | TESTS | 31 | 171 | 6041600 | 2600 | |
39145807 | Jester | C3 | June 11, 2018, 12:10 p.m. | OK | GNU C++14 | TESTS | 31 | 186 | 3993600 | 2600 | |
37362718 | abeker | C3 | April 15, 2018, 11:26 p.m. | OK | GNU C++14 | TESTS | 31 | 187 | 24678400 | 2600 | |
37504861 | NewSession | C3 | April 21, 2018, 6:18 a.m. | OK | GNU C++14 | TESTS | 31 | 202 | 16179200 | 2600 | |
37316985 | dotorya molamola. zigui | C3 | April 14, 2018, 8:34 a.m. | OK | GNU C++14 | TESTS | 31 | 217 | 11673600 | 2600 | |
39146257 | Jester | C3 | June 11, 2018, 12:27 p.m. | OK | GNU C++14 | TESTS | 31 | 218 | 6041600 | 2600 | |
37389128 | zhangzy | C3 | April 17, 2018, 7:26 a.m. | OK | GNU C++14 | TESTS | 31 | 218 | 15257600 | 2600 | |
37425033 | Moon1125666900 | C3 | April 18, 2018, 4:45 a.m. | OK | GNU C++14 | TESTS | 31 | 218 | 219852800 | 2600 | |
46586433 | T.V_N | C3 | Dec. 4, 2018, 1:30 p.m. | OK | GNU C++14 | TESTS | 31 | 233 | 4198400 | 2600 | |
37386029 | zhangzy | C3 | April 17, 2018, 3:19 a.m. | OK | GNU C++14 | TESTS | 31 | 234 | 14131200 | 2600 | |
38123983 | Jakube | C3 | May 11, 2018, 9:45 p.m. | OK | GNU C++17 | TESTS | 31 | 233 | 7680000 | 2600 | |
46044723 | Benq | C3 | Nov. 22, 2018, 12:08 a.m. | OK | GNU C++17 | TESTS | 31 | 265 | 2252800 | 2600 | |
57480923 | _PortgasD.Ace_ | C3 | July 22, 2019, 2:17 a.m. | OK | GNU C++17 | TESTS | 31 | 280 | 1945600 | 2600 | |
37370645 | zudikn | C3 | April 16, 2018, 11:35 a.m. | OK | GNU C++17 | TESTS | 31 | 311 | 3379200 | 2600 | |
38630595 | haleyk100198 | C3 | May 26, 2018, 10:06 a.m. | OK | GNU C++17 | TESTS | 31 | 358 | 437452800 | 2600 | |
38629210 | vjudge1 | C3 | May 26, 2018, 8:58 a.m. | OK | GNU C++17 | TESTS | 31 | 374 | 437452800 | 2600 | |
52026649 | Edvard Gerald caustique | C3 | March 30, 2019, 3:15 p.m. | OK | GNU C++17 | TESTS | 31 | 467 | 219136000 | 2600 | |
67963590 | tuwuna | C3 | Dec. 30, 2019, 12:32 p.m. | OK | GNU C++17 | TESTS | 31 | 468 | 4096000 | 2600 | |
37394268 | Jori | C3 | April 17, 2018, 11:58 a.m. | OK | GNU C++17 | TESTS | 31 | 468 | 7372800 | 2600 | |
41808719 | ivan100sic | C3 | Aug. 19, 2018, 1:08 a.m. | OK | GNU C++17 | TESTS | 31 | 499 | 6041600 | 2600 | |
38595283 | Jeel_Vaishnav | C3 | May 24, 2018, 7:23 p.m. | OK | Java 8 | TESTS | 31 | 1653 | 483532800 | 2600 |
Back to search problems