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
( 1696 ) C3 Game on Tree (Hard) PROGRAMMING dfs and similar dp games trees 1900

B'This is the hard version of the problem. The only difference in this version is the constraint on t . Ron and Hermione are playing a game on a tree of n nodes that are initially inactive. The game consists of t rounds, each of which starts with a stone on exactly one node, which is considered as activated. A move consists of picking an inactive neighbor of the node with a stone on it and moving the stone there (thus activating this neighbor). Ron makes the first move, after which he alternates with Hermione until no valid move is available. The player that cannot make a move loses the round. If both players play optimally, who wins each round of this game? Note that all the rounds are played with the same tree; only the starting node changes. Moreover, after each round, all active nodes are considered inactive again. The first line contains integers n ( 2 <= q n <= q 2 x 10^5 ), t ( 1 <= q t <= q n ), the number of nodes in the tree and the number of rounds, respectively. The next n-1 lines contain two integers 1 <= q u, v <= q n each, corresponding to an edge of the tree. The next line contains t integers 1 <= q u_1 , ... , u_t <= q n , corresponding to the node where the stone is initially put. The output consists of t lines, each line being either "Ron" or "Hermione". '...

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
260916151 Magg724 C3 May 14, 2024, 11:20 a.m. OK C# 10 TESTS 23 842 69734400 1900
260703317 duyiblue C3 May 12, 2024, 6:32 p.m. OK C++14 (GCC 6-32) TESTS 23 202 9318400 1900
259497248 urosssst Mihajlo18 idegas357 C3 May 4, 2024, 11:03 a.m. OK C++14 (GCC 6-32) TESTS 23 249 5120000 1900
261649415 luogu_bot5 C3 May 19, 2024, 12:12 p.m. OK C++14 (GCC 6-32) TESTS 23 265 6041600 1900
262464377 istiak_a2i C3 May 25, 2024, 5:54 a.m. OK C++14 (GCC 6-32) TESTS 23 265 8192000 1900
261948570 huangyuheng C3 May 21, 2024, 1:35 a.m. OK C++14 (GCC 6-32) TESTS 23 280 5939200 1900
261324659 lianhao C3 May 17, 2024, 11:59 a.m. OK C++14 (GCC 6-32) TESTS 23 281 4915200 1900
262878508 Aderose_yr C3 May 27, 2024, 12:21 p.m. OK C++14 (GCC 6-32) TESTS 23 296 4710400 1900
261319512 wukaichen888 C3 May 17, 2024, 11:19 a.m. OK C++14 (GCC 6-32) TESTS 23 296 4812800 1900
261325418 lianhao C3 May 17, 2024, 12:05 p.m. OK C++14 (GCC 6-32) TESTS 23 311 4915200 1900
262006875 _will C3 May 21, 2024, 11:31 a.m. OK C++14 (GCC 6-32) TESTS 23 311 7987200 1900
262210473 nforget C3 May 23, 2024, 2:55 a.m. OK C++17 (GCC 7-32) TESTS 23 218 5632000 1900
262949697 AlvinFei C3 May 28, 2024, 3:08 a.m. OK C++17 (GCC 7-32) TESTS 23 234 8806400 1900
261218643 go_to_my_own_company C3 May 16, 2024, 3:27 p.m. OK C++17 (GCC 7-32) TESTS 23 234 11264000 1900
259838807 MKL220017070 C3 May 7, 2024, 7:16 a.m. OK C++17 (GCC 7-32) TESTS 23 234 24064000 1900
260589891 Michal_1 C3 May 11, 2024, 10:12 p.m. OK C++17 (GCC 7-32) TESTS 23 250 4812800 1900
262658774 SebR C3 May 26, 2024, 6:29 a.m. OK C++17 (GCC 7-32) TESTS 23 250 5632000 1900
262311403 boris_7 C3 May 23, 2024, 8:42 p.m. OK C++17 (GCC 7-32) TESTS 23 264 5120000 1900
261609965 1729_prism C3 May 19, 2024, 6:40 a.m. OK C++17 (GCC 7-32) TESTS 23 264 6451200 1900
261144279 _Ashish_Gupta_ C3 May 16, 2024, 5:25 a.m. OK C++17 (GCC 7-32) TESTS 23 264 9830400 1900
261933639 aalp75 C3 May 20, 2024, 8:14 p.m. OK C++17 (GCC 7-32) TESTS 23 265 3584000 1900
262981220 Engineer C3 May 28, 2024, 8:27 a.m. OK C++20 (GCC 13-64) TESTS 23 202 8806400 1900
259640002 maspy C3 May 5, 2024, 1:39 p.m. OK C++20 (GCC 13-64) TESTS 23 202 17920000 1900
259969061 HaitaoWang C3 May 8, 2024, 8:16 a.m. OK C++20 (GCC 13-64) TESTS 23 217 6041600 1900
259547451 NexTopper C3 May 4, 2024, 6:28 p.m. OK C++20 (GCC 13-64) TESTS 23 233 7884800 1900
259773912 szilb gortomi C3 May 6, 2024, 3:44 p.m. OK C++20 (GCC 13-64) TESTS 23 234 6656000 1900
259548553 Tudy006 C3 May 4, 2024, 6:39 p.m. OK C++20 (GCC 13-64) TESTS 23 234 7270400 1900
263030916 xiojoy C3 May 28, 2024, 3:15 p.m. OK C++20 (GCC 13-64) TESTS 23 234 7884800 1900
262322082 loveyu C3 May 24, 2024, 1:20 a.m. OK C++20 (GCC 13-64) TESTS 23 234 7884800 1900
260173736 Mac_prime jamil314 C3 May 9, 2024, 7:58 p.m. OK C++20 (GCC 13-64) TESTS 23 234 7884800 1900
259547833 NexTopper C3 May 4, 2024, 6:32 p.m. OK C++20 (GCC 13-64) TESTS 23 234 7884800 1900
261419764 cpy C3 May 17, 2024, 5:55 p.m. OK D TESTS 23 499 35123200 1900
259995549 timiss C3 May 8, 2024, 12:11 p.m. OK GNU C11 TESTS 23 202 5734400 1900
259544875 kaiboy rainboy C3 May 4, 2024, 6:01 p.m. OK GNU C11 TESTS 23 921 7270400 1900
260611845 hemant C3 May 12, 2024, 5:28 a.m. OK Java 21 TESTS 23 608 40243200 1900
259766702 dzhi C3 May 6, 2024, 2:43 p.m. OK Java 21 TESTS 23 905 69324800 1900
259764821 dzhi C3 May 6, 2024, 2:28 p.m. OK Java 21 TESTS 23 921 67788800 1900
259700574 dzhi C3 May 6, 2024, 3:32 a.m. OK Java 21 TESTS 23 1000 107520000 1900
259702580 YMSeah C3 May 6, 2024, 4:12 a.m. OK PyPy 3 TESTS 23 890 50995200 1900
259702380 YMSeah C3 May 6, 2024, 4:08 a.m. OK PyPy 3 TESTS 23 890 57856000 1900
259702483 YMSeah C3 May 6, 2024, 4:10 a.m. OK PyPy 3 TESTS 23 968 51507200 1900
261487327 scorpiocat C3 May 18, 2024, 8:09 a.m. OK PyPy 3-64 TESTS 23 749 123494400 1900
261504408 scorpiocat C3 May 18, 2024, 9:40 a.m. OK PyPy 3-64 TESTS 23 764 123494400 1900
261488365 scorpiocat C3 May 18, 2024, 8:15 a.m. OK PyPy 3-64 TESTS 23 780 123494400 1900
261486134 scorpiocat C3 May 18, 2024, 8:02 a.m. OK PyPy 3-64 TESTS 23 781 141926400 1900
261527409 scorpiocat C3 May 18, 2024, 12:09 p.m. OK PyPy 3-64 TESTS 23 796 108339200 1900
262683744 scorpiocat C3 May 26, 2024, 9:47 a.m. OK PyPy 3-64 TESTS 23 812 108851200 1900
261488636 scorpiocat C3 May 18, 2024, 8:17 a.m. OK PyPy 3-64 TESTS 23 812 123494400 1900
261416075 scorpiocat C3 May 17, 2024, 5:27 p.m. OK PyPy 3-64 TESTS 23 858 142540800 1900
263041623 accelerate_nju C3 May 28, 2024, 4:42 p.m. OK PyPy 3-64 TESTS 23 874 64716800 1900
261484802 scorpiocat C3 May 18, 2024, 7:54 a.m. OK PyPy 3-64 TESTS 23 874 142438400 1900
259837840 BetterThanNobita C3 May 7, 2024, 7:07 a.m. OK Rust 2021 TESTS 23 187 15257600 1900
261696745 mikkk C3 May 19, 2024, 7:31 p.m. OK Rust 2021 TESTS 23 281 28160000 1900

remove filters

Back to search problems