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
( 115 ) D3 Arithmancy (Hard) PROGRAMMING interactive 3100

B'The only difference between the versions of this problem is the maximum value of n . Professor Vector is preparing to teach her Arithmancy class. She needs to prepare n distinct magic words for the class. Each magic word is a string consisting of characters X and O. A spell is a string created by concatenating two magic words together. The power of a spell is equal to the number of its different non-empty substrings. For example, the power of the spell XOXO is equal to 7, because it has 7 different substrings: X, O, XO, OX, XOX, OXO and XOXO. Each student will create their own spell by concatenating two magic words. Since the students are not very good at magic yet, they will choose each of the two words independently and uniformly at random from the n words provided by Professor Vector. It is therefore also possible that the two words a student chooses are the same. Each student will then compute the power of their spell, and tell it to Professor Vector. In order to check their work, and of course to impress the students, Professor Vector needs to find out which two magic words and in which order were concatenated by each student. Your program needs to perform the role of Professor Vector: first, create n distinct magic words, and then handle multiple requests where it is given the spell power and needs to determine the indices of the two magic words, in the correct order, that were used to create the corresponding spell. This is an interactive problem. First, your program should read a single integer n ( 1 <= n <= 1000 ), the number of magic words to prepare. Then, it should print n magic words it has created, one per line. The magic words must be distinct, each magic word must have at least 1 and at most 30 cdot n characters, and each character must be either X or O. We will denote the i -th magic word you printed as w_i ( 1 <= i <= n ). Then, your program should read a single integer q$'...

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
261557944 mnbvcxz123_long_dick D3 May 18, 2024, 4:33 p.m. OK C++17 (GCC 7-32) TESTS 19 686 58470400 3100
263169402 Kirill22 D3 May 29, 2024, 4:48 p.m. OK C++17 (GCC 7-32) TESTS 19 749 38297600 3100
261463396 shoaibcodez D3 May 18, 2024, 5:33 a.m. OK C++17 (GCC 7-32) TESTS 19 780 15564800 3100
263607853 Const_int D3 June 1, 2024, 9:41 a.m. OK C++17 (GCC 7-32) TESTS 19 812 37990400 3100
261033731 nguyentunglam D3 May 15, 2024, 9:45 a.m. OK C++17 (GCC 7-32) TESTS 19 874 15564800 3100
262003497 -Complex- D3 May 21, 2024, 11:06 a.m. OK C++17 (GCC 7-32) TESTS 19 890 37990400 3100
262003572 -Complex- D3 May 21, 2024, 11:07 a.m. OK C++17 (GCC 7-32) TESTS 19 905 37990400 3100
261783646 Ramo7fsw D3 May 20, 2024, 1:08 p.m. OK C++17 (GCC 7-32) TESTS 19 983 38092800 3100
259538382 Sparkle_Twilight D3 May 4, 2024, 4:59 p.m. OK C++17 (GCC 7-32) TESTS 19 983 38195200 3100
259521803 marvinthang D3 May 4, 2024, 2:36 p.m. OK C++17 (GCC 7-32) TESTS 19 983 38195200 3100
259641572 propane D3 May 5, 2024, 1:55 p.m. OK C++20 (GCC 13-64) TESTS 19 593 66867200 3100
261024468 ahihi1234 D3 May 15, 2024, 8:37 a.m. OK C++20 (GCC 13-64) TESTS 19 608 59596800 3100
259641608 propane D3 May 5, 2024, 1:55 p.m. OK C++20 (GCC 13-64) TESTS 19 624 70656000 3100
259835394 2210080011_yakub D3 May 7, 2024, 6:44 a.m. OK C++20 (GCC 13-64) TESTS 19 905 63180800 3100
261075259 AinazikBa D3 May 15, 2024, 3:32 p.m. OK C++20 (GCC 13-64) TESTS 19 999 63180800 3100
261039651 Teddiursa D3 May 15, 2024, 10:42 a.m. OK C++20 (GCC 13-64) TESTS 19 999 63180800 3100
261019924 CDuongg D3 May 15, 2024, 7:54 a.m. OK C++20 (GCC 13-64) TESTS 19 1015 78028800 3100
263149544 Engineer D3 May 29, 2024, 1:38 p.m. OK C++20 (GCC 13-64) TESTS 19 1030 42496000 3100
261026876 Tuanlinh123 D3 May 15, 2024, 8:59 a.m. OK C++20 (GCC 13-64) TESTS 19 1062 63078400 3100
261019919 bachbeo2007 D3 May 15, 2024, 7:54 a.m. OK C++20 (GCC 13-64) TESTS 19 1203 105472000 3100
259995146 timiss D3 May 8, 2024, 12:08 p.m. OK GNU C11 TESTS 19 1093 63795200 3100
259673069 rainboy D3 May 5, 2024, 7:02 p.m. OK GNU C11 TESTS 19 1156 63897600 3100
259712824 dzhi D3 May 6, 2024, 6:51 a.m. OK Java 21 TESTS 19 1764 130457600 3100
260526144 aha66 D3 May 11, 2024, 10:39 a.m. OK PyPy 3-64 TESTS 19 1139 87449600 3100
262797210 2210080018 D3 May 26, 2024, 7:50 p.m. OK Python 3 TESTS 19 2812 188006400 3100
262395926 yasseinhamdy15 D3 May 24, 2024, 1:58 p.m. OK Python 3 TESTS 19 2968 188313600 3100
259948569 BetterThanNobita D3 May 8, 2024, 4:42 a.m. OK Rust 2021 TESTS 19 343 85708800 3100
259949021 BetterThanNobita D3 May 8, 2024, 4:48 a.m. OK Rust 2021 TESTS 19 374 85708800 3100
259949179 BetterThanNobita D3 May 8, 2024, 4:51 a.m. OK Rust 2021 TESTS 19 421 85708800 3100
259966400 SlainTroyard D3 May 8, 2024, 7:52 a.m. OK Rust 2021 TESTS 19 671 77004800 3100

remove filters

Back to search problems