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
( 1435 ) E2 Trails (Medium) PROGRAMMING dp matrices 2000

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^2 . 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
262437188 test_coder22 E2 May 24, 2024, 8:49 p.m. OK C++14 (GCC 6-32) TESTS 4 46 0 2000
261997614 include_c E2 May 21, 2024, 10:23 a.m. OK C++14 (GCC 6-32) TESTS 4 46 1228800 2000
263259256 asdd123 E2 May 30, 2024, 1:56 p.m. OK C++14 (GCC 6-32) TESTS 4 46 1638400 2000
261257685 Kimi_Arthur E2 May 16, 2024, 10:34 p.m. OK C++14 (GCC 6-32) TESTS 4 46 1638400 2000
260935381 Daisyandgalsangflower E2 May 14, 2024, 1:46 p.m. OK C++14 (GCC 6-32) TESTS 4 46 1638400 2000
260255670 rizynvu E2 May 10, 2024, 1:22 p.m. OK C++14 (GCC 6-32) TESTS 4 46 1638400 2000
259577008 The_Moon-_- E2 May 5, 2024, 2:53 a.m. OK C++14 (GCC 6-32) TESTS 4 46 1638400 2000
261275186 ChronostasisZ E2 May 17, 2024, 4:49 a.m. OK C++14 (GCC 6-32) TESTS 4 61 0 2000
260752929 TrucJ E2 May 13, 2024, 7:04 a.m. OK C++14 (GCC 6-32) TESTS 4 61 3379200 2000
260704933 duyiblue E2 May 12, 2024, 6:51 p.m. OK C++14 (GCC 6-32) TESTS 4 265 0 2000
259958939 2210080040 E2 May 8, 2024, 6:44 a.m. OK C++17 (GCC 7-32) TESTS 4 30 3174400 2000
262419554 ivopav1 E2 May 24, 2024, 5:26 p.m. OK C++17 (GCC 7-32) TESTS 4 31 0 2000
259817273 emhadzi E2 May 7, 2024, 2:28 a.m. OK C++17 (GCC 7-32) TESTS 4 31 819200 2000
260935749 vjudge.10 E2 May 14, 2024, 1:48 p.m. OK C++17 (GCC 7-32) TESTS 4 31 1638400 2000
263152502 Kirill22 E2 May 29, 2024, 2:01 p.m. OK C++17 (GCC 7-32) TESTS 4 46 0 2000
262222629 vjudge.5 E2 May 23, 2024, 7:38 a.m. OK C++17 (GCC 7-32) TESTS 4 46 0 2000
262196940 AverageAmogusEnjoyer E2 May 22, 2024, 9:36 p.m. OK C++17 (GCC 7-32) TESTS 4 46 0 2000
261038395 khadija10 E2 May 15, 2024, 10:29 a.m. OK C++17 (GCC 7-32) TESTS 4 46 0 2000
260972008 crzy22 E2 May 14, 2024, 6:35 p.m. OK C++17 (GCC 7-32) TESTS 4 46 0 2000
260898018 Eyja E2 May 14, 2024, 8:34 a.m. OK C++17 (GCC 7-32) TESTS 4 46 0 2000
260753095 LEFt_bank E2 May 13, 2024, 7:05 a.m. OK C++20 (GCC 13-64) TESTS 4 30 0 2000
259579651 SYUCT_blyat E2 May 5, 2024, 3:43 a.m. OK C++20 (GCC 13-64) TESTS 4 30 1638400 2000
262195543 RabbitPower E2 May 22, 2024, 9:08 p.m. OK C++20 (GCC 13-64) TESTS 4 31 0 2000
262166033 Lyamzin_alexandr E2 May 22, 2024, 3:58 p.m. OK C++20 (GCC 13-64) TESTS 4 31 0 2000
260089880 SeptaCube E2 May 9, 2024, 8:10 a.m. OK C++20 (GCC 13-64) TESTS 4 31 0 2000
263074724 jerefigo E2 May 29, 2024, 1:13 a.m. OK C++20 (GCC 13-64) TESTS 4 46 0 2000
262841242 _Severus_Snape E2 May 27, 2024, 7:15 a.m. OK C++20 (GCC 13-64) TESTS 4 46 0 2000
262351063 Hackerman278 E2 May 24, 2024, 7:51 a.m. OK C++20 (GCC 13-64) TESTS 4 46 0 2000
261269640 EduardoBrito E2 May 17, 2024, 3:20 a.m. OK C++20 (GCC 13-64) TESTS 4 46 0 2000
260831906 devinqu E2 May 13, 2024, 4:38 p.m. OK C++20 (GCC 13-64) TESTS 4 46 0 2000
261551702 Duldek E2 May 18, 2024, 3:39 p.m. OK Go TESTS 4 62 0 2000
261037479 chauhanharsh643 E2 May 15, 2024, 10:20 a.m. OK Java 21 TESTS 4 749 1024000 2000
259504819 dzhi E2 May 4, 2024, 12:03 p.m. OK Java 21 TESTS 4 764 0 2000
260155159 2210030287 E2 May 9, 2024, 4:51 p.m. OK Java 21 TESTS 4 780 512000 2000
262633340 dgucs826 E2 May 26, 2024, 12:41 a.m. OK Java 8 TESTS 4 765 0 2000
260530841 aha66 E2 May 11, 2024, 11:30 a.m. OK PyPy 3-64 TESTS 4 77 0 2000
263146710 accelerate_nju E2 May 29, 2024, 1:18 p.m. OK PyPy 3-64 TESTS 4 296 5324800 2000
259993087 timiss E2 May 8, 2024, 11:52 a.m. OK PyPy 3-64 TESTS 4 531 6451200 2000
260991866 MdAbedin E2 May 15, 2024, 1:35 a.m. OK PyPy 3-64 TESTS 4 843 5939200 2000
262161536 ambak E2 May 22, 2024, 3:19 p.m. OK Rust 2021 TESTS 4 46 0 2000
259958710 BetterThanNobita E2 May 8, 2024, 6:41 a.m. OK Rust 2021 TESTS 4 389 0 2000

remove filters

Back to search problems