Helvetic Coding Contest 2018 online mirror (teams allowed, unrated)

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.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1261 ) C2 Encryption (medium) PROGRAMMING dp 2100

B'Heidi has now broken the first level of encryption of the Death Star plans, and is staring at the screen presenting her with the description of the next code she has to enter. It looks surprisingly similar to the first one xe2 x80 x93 seems like the Empire engineers were quite lazy... Heidi is once again given a sequence A, but now she is also given 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 part such that: Output the sum S xe2 x80 x93 the encryption code. The first line of the input contains three space-separated integer N, k and p (k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89N xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8920 xe2 x80 x89000, 2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8950, 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, xe2 x80 x894), (7), (2), the total score would be . It is easy to see that this score is maximum. In the second example, one possible way to obtain score 37 is to make the following split: (16, xe2 x80 x893, xe2 x80 x8924), (13, xe2 x80 x899), (8), (7), (5, xe2 x80 x8912, xe2 x80 x8912). '...

Tutorials

helvetic-coding-contest-2018-editorial.pdf

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
37324752 sgtlaugh C2 April 14, 2018, 11:31 a.m. OK GNU C TESTS 37 2588 425881600 2100
39464166 Danieldh100 C2 June 21, 2018, 1:55 p.m. OK GNU C TESTS 37 2651 422604800 2100
37355003 flukehn C2 April 15, 2018, 2:02 p.m. OK GNU C++ TESTS 37 31 9523200 2100
37319046 xmt Aqua_blue Lhtie C2 April 14, 2018, 9:05 a.m. OK GNU C++ TESTS 37 109 11673600 2100
37317207 huangjunqi1 fangjiahao123 RetardedZY C2 April 14, 2018, 8:37 a.m. OK GNU C++ TESTS 37 155 8396800 2100
37322272 Captain_Paul Refun beretty C2 April 14, 2018, 10:12 a.m. OK GNU C++ TESTS 37 233 41472000 2100
37325752 kadNaN C2 April 14, 2018, 11:52 a.m. OK GNU C++ TESTS 37 234 3891200 2100
37316084 Als123 fengyecong lxlxl C2 April 14, 2018, 8:20 a.m. OK GNU C++ TESTS 37 249 3993600 2100
37320357 ZlycerQan HeyByeSummerTime C2 April 14, 2018, 9:29 a.m. OK GNU C++ TESTS 37 295 7782400 2100
40903023 vjudge4 C2 July 29, 2018, 3:08 a.m. OK GNU C++ TESTS 37 296 0 2100
40913044 vjudge5 C2 July 29, 2018, 9:59 a.m. OK GNU C++ TESTS 37 296 614400 2100
40912986 vjudge5 C2 July 29, 2018, 9:57 a.m. OK GNU C++ TESTS 37 296 614400 2100
57870095 lopare C2 July 28, 2019, 12:59 a.m. OK GNU C++11 TESTS 37 31 0 2100
37371171 Bennettz C2 April 16, 2018, 11:57 a.m. OK GNU C++11 TESTS 37 31 3276800 2100
38067862 RNS_MHB C2 May 9, 2018, 10:32 a.m. OK GNU C++11 TESTS 37 31 3481600 2100
37325523 boatinw99 C2 April 14, 2018, 11:48 a.m. OK GNU C++11 TESTS 37 31 3481600 2100
37325340 boatinw99 C2 April 14, 2018, 11:44 a.m. OK GNU C++11 TESTS 37 31 3481600 2100
38965243 Shirone C2 June 5, 2018, 10:17 a.m. OK GNU C++11 TESTS 37 31 8499200 2100
37321617 RNS_JKS C2 April 14, 2018, 9:56 a.m. OK GNU C++11 TESTS 37 31 12390400 2100
38060176 RNS_MHB C2 May 9, 2018, 4:11 a.m. OK GNU C++11 TESTS 37 31 448409600 2100
57740452 py_ultron C2 July 25, 2019, 11:18 a.m. OK GNU C++11 TESTS 37 46 0 2100
37322277 RNS_MHB RNS_KSB C2 April 14, 2018, 10:12 a.m. OK GNU C++11 TESTS 37 46 4096000 2100
58171632 quoccuonglqd C2 Aug. 2, 2019, 11:34 a.m. OK GNU C++14 TESTS 37 31 4915200 2100
37314159 gisp_zjz C2 April 14, 2018, 7:54 a.m. OK GNU C++14 TESTS 37 31 7475200 2100
37334134 Qalmee C2 April 14, 2018, 4:39 p.m. OK GNU C++14 TESTS 37 31 12185600 2100
68121913 Priyank C2 Jan. 3, 2020, 1:39 p.m. OK GNU C++14 TESTS 37 46 0 2100
40932557 ReaLNero1 C2 July 30, 2018, 1:53 a.m. OK GNU C++14 TESTS 37 46 4096000 2100
37374803 Nezzar C2 April 16, 2018, 2:04 p.m. OK GNU C++14 TESTS 37 46 13004800 2100
37318694 zhongzero C2 April 14, 2018, 9 a.m. OK GNU C++14 TESTS 37 46 261427200 2100
37317805 yosupo C2 April 14, 2018, 8:46 a.m. OK GNU C++14 TESTS 37 62 3788800 2100
37326379 antguz C2 April 14, 2018, 12:03 p.m. OK GNU C++14 TESTS 37 62 7987200 2100
37330744 burakov28 slelaron C2 April 14, 2018, 2:39 p.m. OK GNU C++14 TESTS 37 62 9318400 2100
57480445 _PortgasD.Ace_ C2 July 22, 2019, 2:03 a.m. OK GNU C++17 TESTS 37 31 102400 2100
66973933 BanazadehAria C2 Dec. 15, 2019, 2:03 p.m. OK GNU C++17 TESTS 37 31 204800 2100
37370679 zudikn C2 April 16, 2018, 11:36 a.m. OK GNU C++17 TESTS 37 31 3379200 2100
41928939 YanHan22 C2 Aug. 21, 2018, 8:57 a.m. OK GNU C++17 TESTS 37 31 17817600 2100
55568395 aurinegro C2 June 14, 2019, 4:58 p.m. OK GNU C++17 TESTS 37 78 224460800 2100
37367011 void_f C2 April 16, 2018, 7:57 a.m. OK GNU C++17 TESTS 37 124 3481600 2100
37317195 conflict alex9801 ko_osaga C2 April 14, 2018, 8:37 a.m. OK GNU C++17 TESTS 37 124 8089600 2100
63120254 ivan100sic C2 Oct. 22, 2019, 10:58 a.m. OK GNU C++17 TESTS 37 171 0 2100
50050536 vjudge3 C2 Feb. 17, 2019, 7:57 a.m. OK GNU C++17 TESTS 37 171 16896000 2100
37663623 yagamiL albeXL BlackTools C2 April 27, 2018, 2:06 p.m. OK GNU C++17 TESTS 37 186 3891200 2100
39046309 bluesky111 C2 June 8, 2018, 12:43 p.m. OK Java 8 TESTS 37 140 0 2100
61368352 sameep17264 yotin vaibhavpulastya C2 Sept. 27, 2019, 2:12 p.m. OK Java 8 TESTS 37 607 5427200 2100
44535310 YJH143 C2 Oct. 19, 2018, 8:39 a.m. OK Java 8 TESTS 37 732 0 2100
37315102 tmwilliamlin168 C2 April 14, 2018, 8:07 a.m. OK Java 8 TESTS 37 904 21299200 2100
40520435 hongquanntct C2 July 18, 2018, 3:50 p.m. OK Java 8 TESTS 37 1138 0 2100
40520259 hongquanntct C2 July 18, 2018, 3:43 p.m. OK Java 8 TESTS 37 1154 0 2100
49477371 wadissimo C2 Feb. 4, 2019, 8:05 p.m. OK Java 8 TESTS 37 1340 0 2100
37325110 poikniok C2 April 14, 2018, 11:39 a.m. OK Java 8 TESTS 37 1434 21196800 2100
37439633 ViciousCoder C2 April 18, 2018, 2:13 p.m. OK Java 8 TESTS 37 1513 21196800 2100
37315743 Jeel_Vaishnav sanketmakani Nirav_96 C2 April 14, 2018, 8:15 a.m. OK Java 8 TESTS 37 1621 506368000 2100
37382199 AnatolyTolstobrov C2 April 16, 2018, 8:13 p.m. OK Mono C# TESTS 37 1232 11366400 2100
37327503 vphuong214 C2 April 14, 2018, 12:41 p.m. OK MS C++ TESTS 37 2308 13312000 2100
54569928 kauai68 C2 May 24, 2019, 6:40 p.m. OK MS C++ 2017 TESTS 37 1560 8294400 2100
54569558 kauai68 C2 May 24, 2019, 6:27 p.m. OK MS C++ 2017 TESTS 37 1731 12390400 2100

remove filters

Back to search problems