Helvetic Coding Contest 2024 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
1970 Helvetic Coding Contest 2024 online mirror (teams allowed, unrated) FINISHED False 16200 22373663 May 4, 2024, 7:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 823 ) E3 Trails (Hard) PROGRAMMING dp matrices 2200

B'Harry Potter is hiking in the Alps surrounding Lake Geneva. In this area there are m cabins, numbered 1 to m . Each cabin is connected, with one or more trails, to a central meeting point next to the lake. Each trail is either short or long. Cabin i is connected with s_i short trails and l_i long trails to the lake. Each day, Harry walks a trail from the cabin where he currently is to Lake Geneva, and then from there he walks a trail to any of the m cabins (including the one he started in). However, as he has to finish the hike in a day, at least one of the two trails has to be short. How many possible combinations of trails can Harry take if he starts in cabin 1 and walks for n days? Give the answer modulo 10^9 + 7 . The first line contains the integers m and n . The second line contains m integers, s_1, ... , s_m , where s_i is the number of short trails between cabin i and Lake Geneva. The third and last line contains m integers, l_1, ... , l_m , where l_i is the number of long trails between cabin i and Lake Geneva. We have the following constraints: 0 <= s_i, l_i <= 10^3 . 1 <= m <= 10^5 . 1 <= n <= 10^9 . The number of possible combinations of trails, modulo 10^9 + 7 . '...

Tutorials

Helvetic Coding Contest 2024 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
260752569 TrucJ E3 May 13, 2024, 7 a.m. OK C++14 (GCC 6-32) TESTS 8 61 3379200 2200
260255680 rizynvu E3 May 10, 2024, 1:23 p.m. OK C++14 (GCC 6-32) TESTS 8 62 1638400 2200
262381699 ninecoffee E3 May 24, 2024, 12:08 p.m. OK C++14 (GCC 6-32) TESTS 8 77 0 2200
259499132 cookiesL liyuze zy2022 E3 May 4, 2024, 11:17 a.m. OK C++14 (GCC 6-32) TESTS 8 77 819200 2200
263259195 asdd123 E3 May 30, 2024, 1:55 p.m. OK C++14 (GCC 6-32) TESTS 8 77 1638400 2200
259576970 The_Moon-_- E3 May 5, 2024, 2:52 a.m. OK C++14 (GCC 6-32) TESTS 8 77 1638400 2200
261275326 ChronostasisZ E3 May 17, 2024, 4:52 a.m. OK C++14 (GCC 6-32) TESTS 8 78 1638400 2200
259571189 Kimi_Arthur E3 May 5, 2024, 12:46 a.m. OK C++14 (GCC 6-32) TESTS 8 78 1638400 2200
259499511 Flamire E3 May 4, 2024, 11:20 a.m. OK C++14 (GCC 6-32) TESTS 8 109 819200 2200
261061544 99_wood E3 May 15, 2024, 1:33 p.m. OK C++14 (GCC 6-32) TESTS 8 109 5427200 2200
262196908 AverageAmogusEnjoyer E3 May 22, 2024, 9:35 p.m. OK C++17 (GCC 7-32) TESTS 8 46 0 2200
260716203 Tanzir_13 E3 May 12, 2024, 9:40 p.m. OK C++17 (GCC 7-32) TESTS 8 46 0 2200
261784334 Ramo7fsw E3 May 20, 2024, 1:13 p.m. OK C++17 (GCC 7-32) TESTS 8 46 1638400 2200
260716723 mohosinamahera23 E3 May 12, 2024, 9:50 p.m. OK C++17 (GCC 7-32) TESTS 8 46 1638400 2200
260744677 Gaomer E3 May 13, 2024, 5:24 a.m. OK C++17 (GCC 7-32) TESTS 8 46 2867200 2200
261599942 yugmaheshwari2004 E3 May 19, 2024, 5:01 a.m. OK C++17 (GCC 7-32) TESTS 8 61 0 2200
260754832 anik_26 E3 May 13, 2024, 7:24 a.m. OK C++17 (GCC 7-32) TESTS 8 61 0 2200
260602881 Ste E3 May 12, 2024, 3:32 a.m. OK C++17 (GCC 7-32) TESTS 8 61 0 2200
260103036 vjudge5 E3 May 9, 2024, 10:11 a.m. OK C++17 (GCC 7-32) TESTS 8 61 0 2200
259800257 Alpha_Q E3 May 6, 2024, 8:11 p.m. OK C++17 (GCC 7-32) TESTS 8 61 0 2200
263685031 Agreb E3 June 1, 2024, 10:47 p.m. OK C++20 (GCC 13-64) TESTS 8 46 0 2200
262179156 terracottalite E3 May 22, 2024, 5:51 p.m. OK C++20 (GCC 13-64) TESTS 8 46 0 2200
260058925 MadRat_0 E3 May 9, 2024, 1:21 a.m. OK C++20 (GCC 13-64) TESTS 8 46 0 2200
259914560 SaltyDonut E3 May 7, 2024, 6:11 p.m. OK C++20 (GCC 13-64) TESTS 8 46 0 2200
259864091 free989898 SaltyDonut weirdflexbutok E3 May 7, 2024, 11:08 a.m. OK C++20 (GCC 13-64) TESTS 8 46 0 2200
259831370 BlueDiamond E3 May 7, 2024, 6 a.m. OK C++20 (GCC 13-64) TESTS 8 46 0 2200
259666621 Boboge E3 May 5, 2024, 5:48 p.m. OK C++20 (GCC 13-64) TESTS 8 46 0 2200
259543189 VanshRA E3 May 4, 2024, 5:45 p.m. OK C++20 (GCC 13-64) TESTS 8 46 0 2200
260475008 Endline E3 May 11, 2024, 3:07 a.m. OK C++20 (GCC 13-64) TESTS 8 46 819200 2200
262012155 Saton. E3 May 21, 2024, 12:05 p.m. OK C++20 (GCC 13-64) TESTS 8 46 40140800 2200
259548302 kaiboy rainboy E3 May 4, 2024, 6:37 p.m. OK GNU C11 TESTS 8 61 921600 2200
261551754 Duldek E3 May 18, 2024, 3:39 p.m. OK Go TESTS 8 77 2150400 2200
259994866 timiss E3 May 8, 2024, 12:05 p.m. OK Java 21 TESTS 8 265 409600 2200
259703663 dzhi E3 May 6, 2024, 4:35 a.m. OK Java 21 TESTS 8 296 614400 2200
260530876 aha66 E3 May 11, 2024, 11:30 a.m. OK PyPy 3-64 TESTS 8 108 19968000 2200
262796520 2210080018 E3 May 26, 2024, 7:41 p.m. OK Python 3 TESTS 8 124 15667200 2200
259961547 BetterThanNobita E3 May 8, 2024, 7:08 a.m. OK Rust 2021 TESTS 8 77 5120000 2200
262156760 ambak E3 May 22, 2024, 2:18 p.m. OK Rust 2021 TESTS 8 77 9625600 2200

remove filters

Back to search problems