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
( 3733 ) C1 Game on Tree (Easy) PROGRAMMING games 1400

B'This is the easy version of the problem. The difference in this version is that t=1 and we work on an array-like tree. Ron and Hermione are playing a game on a tree of n nodes that are initially inactive. This tree is special because it has exactly two leaves. It can thus be seen as an array. 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 ( t=1 ), 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. It is guaranteed that the tree has exactly two leaves. 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=1 line which is 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
261401696 SudhirHajare01 C1 May 17, 2024, 4:18 p.m. OK C++14 (GCC 6-32) TESTS 17 93 0 1400
261071656 deerdoomer C1 May 15, 2024, 2:56 p.m. OK C++14 (GCC 6-32) TESTS 17 108 0 1400
262920711 adarshnim30 C1 May 27, 2024, 6:11 p.m. OK C++14 (GCC 6-32) TESTS 17 124 0 1400
261659893 sure1y C1 May 19, 2024, 1:46 p.m. OK C++14 (GCC 6-32) TESTS 17 124 0 1400
260990096 tritruong C1 May 15, 2024, 12:43 a.m. OK C++14 (GCC 6-32) TESTS 17 124 0 1400
259530220 quang1412000 C1 May 4, 2024, 3:47 p.m. OK C++14 (GCC 6-32) TESTS 17 124 2457600 1400
261946806 huangyuheng C1 May 21, 2024, 1:03 a.m. OK C++14 (GCC 6-32) TESTS 17 140 7577600 1400
260646362 mtpedro C1 May 12, 2024, 10:17 a.m. OK C++14 (GCC 6-32) TESTS 17 171 11878400 1400
262320914 Ccii C1 May 24, 2024, 12:48 a.m. OK C++14 (GCC 6-32) TESTS 17 171 15564800 1400
261948643 aygayuda C1 May 21, 2024, 1:36 a.m. OK C++14 (GCC 6-32) TESTS 17 186 3276800 1400
260729725 AdrijoC C1 May 13, 2024, 3:33 a.m. OK C++17 (GCC 7-32) TESTS 17 93 0 1400
261713590 zjyzjyzjyzjyzjy C1 May 20, 2024, 2:01 a.m. OK C++17 (GCC 7-32) TESTS 17 93 0 1400
260642794 Ruthless. C1 May 12, 2024, 9:43 a.m. OK C++17 (GCC 7-32) TESTS 17 93 0 1400
261607136 hnust_dingziyang C1 May 19, 2024, 6:17 a.m. OK C++17 (GCC 7-32) TESTS 17 108 0 1400
261761320 draxjj C1 May 20, 2024, 10:08 a.m. OK C++17 (GCC 7-32) TESTS 17 108 0 1400
260719265 suraiyamim38 C1 May 12, 2024, 10:58 p.m. OK C++17 (GCC 7-32) TESTS 17 108 0 1400
262780055 bpranab629 C1 May 26, 2024, 4:48 p.m. OK C++17 (GCC 7-32) TESTS 17 108 102400 1400
260647939 aditya_neer C1 May 12, 2024, 10:32 a.m. OK C++17 (GCC 7-32) TESTS 17 108 1024000 1400
262848606 Aktian C1 May 27, 2024, 8:12 a.m. OK C++17 (GCC 7-32) TESTS 17 109 0 1400
261474175 rky_cse C1 May 18, 2024, 6:51 a.m. OK C++17 (GCC 7-32) TESTS 17 109 0 1400
260029265 leoper C1 May 8, 2024, 5:01 p.m. OK C++20 (GCC 13-64) TESTS 17 93 0 1400
261551572 Serend_sanchi C1 May 18, 2024, 3:38 p.m. OK C++20 (GCC 13-64) TESTS 17 93 0 1400
261482655 wowoto C1 May 18, 2024, 7:42 a.m. OK C++20 (GCC 13-64) TESTS 17 93 0 1400
260720526 jamespriest C1 May 12, 2024, 11:43 p.m. OK C++20 (GCC 13-64) TESTS 17 93 1638400 1400
260925452 hjihs C1 May 14, 2024, 12:28 p.m. OK C++20 (GCC 13-64) TESTS 17 108 0 1400
259829265 dark_lord_6969 C1 May 7, 2024, 5:36 a.m. OK C++20 (GCC 13-64) TESTS 17 108 0 1400
260661422 Prateek_20 C1 May 12, 2024, 12:33 p.m. OK C++20 (GCC 13-64) TESTS 17 109 0 1400
260844130 Adnan. C1 May 13, 2024, 6:28 p.m. OK C++20 (GCC 13-64) TESTS 17 109 0 1400
260799370 nitinrajvanshi C1 May 13, 2024, 12:52 p.m. OK C++20 (GCC 13-64) TESTS 17 109 0 1400
260231361 Yuvraj_2004 C1 May 10, 2024, 9:33 a.m. OK C++20 (GCC 13-64) TESTS 17 109 0 1400
261294608 cpy C1 May 17, 2024, 7:44 a.m. OK D TESTS 17 390 16076800 1400
260585435 NenadDapic C1 May 11, 2024, 8:44 p.m. OK FPC TESTS 17 108 4812800 1400
260572854 mohammadyamin C1 May 11, 2024, 6:17 p.m. OK GNU C11 TESTS 17 93 1433600 1400
260716106 mohosinamahera23 C1 May 12, 2024, 9:38 p.m. OK GNU C11 TESTS 17 93 9932800 1400
260822879 gaju_01 C1 May 13, 2024, 3:31 p.m. OK Java 21 TESTS 17 499 53350400 1400
262046235 stolis C1 May 21, 2024, 4:04 p.m. OK Java 21 TESTS 17 608 53862400 1400
263587441 man-ray C1 June 1, 2024, 6:53 a.m. OK Java 21 TESTS 17 671 50688000 1400
260677293 mohit1510 C1 May 12, 2024, 2:25 p.m. OK Java 21 TESTS 17 686 50995200 1400
261235626 Sudip809 C1 May 16, 2024, 5:42 p.m. OK Java 21 TESTS 17 687 51609600 1400
261768077 BishtCoder C1 May 20, 2024, 11:09 a.m. OK Java 21 TESTS 17 796 66662400 1400
260868077 ItsLever C1 May 14, 2024, 2:19 a.m. OK Java 21 TESTS 17 812 57548800 1400
263461997 idotry C1 May 31, 2024, 10:34 a.m. OK Java 21 TESTS 17 921 1228800 1400
260637299 Anupam720 C1 May 12, 2024, 8:56 a.m. OK Java 21 TESTS 17 936 57344000 1400
259499090 dzhi C1 May 4, 2024, 11:17 a.m. OK Java 21 TESTS 17 984 77926400 1400
260878043 arajeev210 C1 May 14, 2024, 5 a.m. OK Java 8 TESTS 17 217 0 1400
260497845 kasiru_69 C1 May 11, 2024, 6:56 a.m. OK Java 8 TESTS 17 499 28160000 1400
259506450 formidablechief27 C1 May 4, 2024, 12:17 p.m. OK Java 8 TESTS 17 514 103628800 1400
262873632 kl_2200031074 C1 May 27, 2024, 11:45 a.m. OK Java 8 TESTS 17 577 0 1400
261423120 amrit231999 C1 May 17, 2024, 6:26 p.m. OK Java 8 TESTS 17 577 92467200 1400
263051218 Baidiki C1 May 28, 2024, 6:10 p.m. OK Java 8 TESTS 17 592 0 1400
260956950 interval_06 C1 May 14, 2024, 4:41 p.m. OK Java 8 TESTS 17 780 74342400 1400
262888494 asit.s.or C1 May 27, 2024, 1:37 p.m. OK PyPy 3 TESTS 17 968 9625600 1400
260918758 notqc C1 May 14, 2024, 11:40 a.m. OK PyPy 3-64 TESTS 17 359 6451200 1400
260843090 DrCoder9146 C1 May 13, 2024, 6:19 p.m. OK PyPy 3-64 TESTS 17 390 6553600 1400
261489047 lky666 C1 May 18, 2024, 8:19 a.m. OK PyPy 3-64 TESTS 17 390 7884800 1400
262898735 TJacobus C1 May 27, 2024, 2:58 p.m. OK PyPy 3-64 TESTS 17 421 35430400 1400
260547449 pizet C1 May 11, 2024, 2:18 p.m. OK PyPy 3-64 TESTS 17 437 28979200 1400
259760333 reijnnn C1 May 6, 2024, 1:53 p.m. OK PyPy 3-64 TESTS 17 452 31232000 1400
262279968 Phoenix_sj C1 May 23, 2024, 3:28 p.m. OK PyPy 3-64 TESTS 17 483 34201600 1400
261967311 Montario C1 May 21, 2024, 5:46 a.m. OK PyPy 3-64 TESTS 17 578 35840000 1400
262992425 xfppm47 C1 May 28, 2024, 10:04 a.m. OK PyPy 3-64 TESTS 17 592 37376000 1400
260972766 sal_the_1 C1 May 14, 2024, 6:43 p.m. OK PyPy 3-64 TESTS 17 640 39014400 1400
260472320 harshkankhar1 C1 May 11, 2024, 2:30 a.m. OK Python 3 TESTS 17 311 7475200 1400
262852586 2210080018 C1 May 27, 2024, 8:46 a.m. OK Python 3 TESTS 17 421 7475200 1400
260843021 DrCoder9146 C1 May 13, 2024, 6:18 p.m. OK Python 3 TESTS 17 437 7475200 1400
262008117 Ioy07 C1 May 21, 2024, 11:40 a.m. OK Python 3 TESTS 17 577 47923200 1400
263135993 Ajay_Vijendran C1 May 29, 2024, 11:53 a.m. OK Python 3 TESTS 17 733 49152000 1400
260430975 scorpiocat C1 May 10, 2024, 5:17 p.m. OK Python 3 TESTS 17 827 41881600 1400
259995761 timiss C1 May 8, 2024, 12:12 p.m. OK Python 3 TESTS 17 984 76390400 1400
259834866 BetterThanNobita C1 May 7, 2024, 6:39 a.m. OK Rust 2021 TESTS 17 139 24883200 1400
261696691 mikkk C1 May 19, 2024, 7:30 p.m. OK Rust 2021 TESTS 17 281 38195200 1400

remove filters

Back to search problems