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 | 17016899 | May 4, 2024, 7:05 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 2214 ) | E1 | Trails (Easy) | PROGRAMMING | dp | 1800 |
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^3 . The number of possible combinations of trails, modulo 10^9 + 7 . '... |
Helvetic Coding Contest 2024 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
260669746 | SkadiTheCorruptHeart | E1 | May 12, 2024, 1:17 p.m. | OK | C++14 (GCC 6-32) | TESTS | 3 | 31 | 0 | 1800 | |
261997752 | include_c | E1 | May 21, 2024, 10:24 a.m. | OK | C++14 (GCC 6-32) | TESTS | 3 | 31 | 1228800 | 1800 | |
260254432 | rizynvu | E1 | May 10, 2024, 1:10 p.m. | OK | C++14 (GCC 6-32) | TESTS | 3 | 31 | 1638400 | 1800 | |
259577027 | The_Moon-_- | E1 | May 5, 2024, 2:53 a.m. | OK | C++14 (GCC 6-32) | TESTS | 3 | 31 | 1638400 | 1800 | |
260752959 | TrucJ | E1 | May 13, 2024, 7:04 a.m. | OK | C++14 (GCC 6-32) | TESTS | 3 | 31 | 3379200 | 1800 | |
263031755 | Ayeaye | E1 | May 28, 2024, 3:22 p.m. | OK | C++14 (GCC 6-32) | TESTS | 3 | 46 | 0 | 1800 | |
262437163 | test_coder22 | E1 | May 24, 2024, 8:49 p.m. | OK | C++14 (GCC 6-32) | TESTS | 3 | 46 | 0 | 1800 | |
261275213 | ChronostasisZ | E1 | May 17, 2024, 4:50 a.m. | OK | C++14 (GCC 6-32) | TESTS | 3 | 46 | 0 | 1800 | |
261272594 | ChronostasisZ | E1 | May 17, 2024, 4:07 a.m. | OK | C++14 (GCC 6-32) | TESTS | 3 | 46 | 0 | 1800 | |
261272454 | ChronostasisZ | E1 | May 17, 2024, 4:04 a.m. | OK | C++14 (GCC 6-32) | TESTS | 3 | 46 | 0 | 1800 | |
260602920 | Ste | E1 | May 12, 2024, 3:32 a.m. | OK | C++17 (GCC 7-32) | TESTS | 3 | 30 | 0 | 1800 | |
259850465 | Shayan86 | E1 | May 7, 2024, 9:03 a.m. | OK | C++17 (GCC 7-32) | TESTS | 3 | 30 | 1638400 | 1800 | |
263244861 | atbottom | E1 | May 30, 2024, 12:11 p.m. | OK | C++17 (GCC 7-32) | TESTS | 3 | 31 | 0 | 1800 | |
262196946 | AverageAmogusEnjoyer | E1 | May 22, 2024, 9:36 p.m. | OK | C++17 (GCC 7-32) | TESTS | 3 | 31 | 0 | 1800 | |
262032438 | aanjaneyeah | E1 | May 21, 2024, 2:20 p.m. | OK | C++17 (GCC 7-32) | TESTS | 3 | 31 | 0 | 1800 | |
260987854 | StressLimitExceeded | E1 | May 14, 2024, 11:26 p.m. | OK | C++17 (GCC 7-32) | TESTS | 3 | 31 | 0 | 1800 | |
260846338 | maghrabyJr_ | E1 | May 13, 2024, 6:52 p.m. | OK | C++17 (GCC 7-32) | TESTS | 3 | 31 | 0 | 1800 | |
262025018 | luogu_bot2 | E1 | May 21, 2024, 1:29 p.m. | OK | C++17 (GCC 7-32) | TESTS | 3 | 31 | 1228800 | 1800 | |
263540299 | derpymerpy | E1 | May 31, 2024, 6:36 p.m. | OK | C++17 (GCC 7-32) | TESTS | 3 | 46 | 0 | 1800 | |
263069894 | sarthakgangwal | E1 | May 28, 2024, 10:57 p.m. | OK | C++17 (GCC 7-32) | TESTS | 3 | 46 | 0 | 1800 | |
260089916 | SeptaCube | E1 | May 9, 2024, 8:10 a.m. | OK | C++20 (GCC 13-64) | TESTS | 3 | 30 | 0 | 1800 | |
259856821 | free989898 SaltyDonut weirdflexbutok | E1 | May 7, 2024, 9:59 a.m. | OK | C++20 (GCC 13-64) | TESTS | 3 | 30 | 0 | 1800 | |
259526007 | 424479543 | E1 | May 4, 2024, 3:13 p.m. | OK | C++20 (GCC 13-64) | TESTS | 3 | 30 | 0 | 1800 | |
261193731 | yuinana | E1 | May 16, 2024, 12:22 p.m. | OK | C++20 (GCC 13-64) | TESTS | 3 | 30 | 6451200 | 1800 | |
260695066 | ayushi.mm | E1 | May 12, 2024, 5:05 p.m. | OK | C++20 (GCC 13-64) | TESTS | 3 | 30 | 16486400 | 1800 | |
263186573 | Antimonist | E1 | May 29, 2024, 9:33 p.m. | OK | C++20 (GCC 13-64) | TESTS | 3 | 31 | 0 | 1800 | |
263074794 | jerefigo | E1 | May 29, 2024, 1:15 a.m. | OK | C++20 (GCC 13-64) | TESTS | 3 | 31 | 0 | 1800 | |
262836235 | _Severus_Snape | E1 | May 27, 2024, 6:37 a.m. | OK | C++20 (GCC 13-64) | TESTS | 3 | 31 | 0 | 1800 | |
260904753 | KrK | E1 | May 14, 2024, 9:34 a.m. | OK | C++20 (GCC 13-64) | TESTS | 3 | 31 | 0 | 1800 | |
259831348 | BlueDiamond | E1 | May 7, 2024, 6 a.m. | OK | C++20 (GCC 13-64) | TESTS | 3 | 31 | 0 | 1800 | |
260543243 | cpy | E1 | May 11, 2024, 1:38 p.m. | OK | D | TESTS | 3 | 452 | 2662400 | 1800 | |
261545049 | Duldek | E1 | May 18, 2024, 2:46 p.m. | OK | Go | TESTS | 3 | 108 | 0 | 1800 | |
261097563 | stolis | E1 | May 15, 2024, 7:19 p.m. | OK | Java 21 | TESTS | 3 | 280 | 819200 | 1800 | |
261054741 | jonathanji | E1 | May 15, 2024, 12:41 p.m. | OK | Java 21 | TESTS | 3 | 327 | 307200 | 1800 | |
260183283 | ByteKrim | E1 | May 9, 2024, 10:32 p.m. | OK | Java 21 | TESTS | 3 | 389 | 0 | 1800 | |
259502397 | dzhi | E1 | May 4, 2024, 11:44 a.m. | OK | Java 21 | TESTS | 3 | 421 | 0 | 1800 | |
262380168 | Dhanasri_101 | E1 | May 24, 2024, 11:55 a.m. | OK | Java 21 | TESTS | 3 | 421 | 716800 | 1800 | |
261153454 | Divya_anshu | E1 | May 16, 2024, 6:46 a.m. | OK | Java 21 | TESTS | 3 | 436 | 0 | 1800 | |
261243903 | Divya_anshu | E1 | May 16, 2024, 6:57 p.m. | OK | Java 21 | TESTS | 3 | 437 | 307200 | 1800 | |
261751928 | HardikG12 | E1 | May 20, 2024, 9:02 a.m. | OK | Java 21 | TESTS | 3 | 452 | 307200 | 1800 | |
260154441 | 2210030287 | E1 | May 9, 2024, 4:44 p.m. | OK | Java 21 | TESTS | 3 | 499 | 614400 | 1800 | |
261588164 | sushibob | E1 | May 19, 2024, 1:13 a.m. | OK | Java 21 | TESTS | 3 | 515 | 204800 | 1800 | |
261084005 | 2200033007_KLU | E1 | May 15, 2024, 4:53 p.m. | OK | Java 8 | TESTS | 3 | 155 | 0 | 1800 | |
261083045 | pradhan222 | E1 | May 15, 2024, 4:44 p.m. | OK | Java 8 | TESTS | 3 | 171 | 0 | 1800 | |
262622910 | dgucs826 | E1 | May 25, 2024, 8:22 p.m. | OK | Java 8 | TESTS | 3 | 311 | 0 | 1800 | |
260753783 | coderman2004 | E1 | May 13, 2024, 7:12 a.m. | OK | Java 8 | TESTS | 3 | 468 | 0 | 1800 | |
260530799 | aha66 | E1 | May 11, 2024, 11:29 a.m. | OK | PyPy 3-64 | TESTS | 3 | 77 | 0 | 1800 | |
262311818 | 34z12000 | E1 | May 23, 2024, 8:49 p.m. | OK | PyPy 3-64 | TESTS | 3 | 77 | 1536000 | 1800 | |
260968029 | Anshul0078 | E1 | May 14, 2024, 5:53 p.m. | OK | PyPy 3-64 | TESTS | 3 | 78 | 1331200 | 1800 | |
259918845 | kunalpatil | E1 | May 7, 2024, 6:55 p.m. | OK | PyPy 3-64 | TESTS | 3 | 92 | 2150400 | 1800 | |
262909705 | __bharat__ | E1 | May 27, 2024, 4:28 p.m. | OK | PyPy 3-64 | TESTS | 3 | 124 | 2457600 | 1800 | |
259992685 | timiss | E1 | May 8, 2024, 11:49 a.m. | OK | PyPy 3-64 | TESTS | 3 | 140 | 1433600 | 1800 | |
259501014 | SPTsiuu hungthai2k5 DuyB2 | E1 | May 4, 2024, 11:32 a.m. | OK | PyPy 3-64 | TESTS | 3 | 155 | 1433600 | 1800 | |
262617517 | prattaydey | E1 | May 25, 2024, 7:08 p.m. | OK | PyPy 3-64 | TESTS | 3 | 156 | 2457600 | 1800 | |
262027055 | Ioy07 | E1 | May 21, 2024, 1:43 p.m. | OK | PyPy 3-64 | TESTS | 3 | 156 | 2969600 | 1800 | |
260879069 | ffreak | E1 | May 14, 2024, 5:14 a.m. | OK | PyPy 3-64 | TESTS | 3 | 187 | 2969600 | 1800 | |
262161544 | ambak | E1 | May 22, 2024, 3:19 p.m. | OK | Rust 2021 | TESTS | 3 | 46 | 0 | 1800 | |
259950362 | BetterThanNobita | E1 | May 8, 2024, 5:07 a.m. | OK | Rust 2021 | TESTS | 3 | 61 | 0 | 1800 | |
259950194 | BetterThanNobita | E1 | May 8, 2024, 5:05 a.m. | OK | Rust 2021 | TESTS | 3 | 93 | 0 | 1800 |
Back to search problems