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
( 223 ) D2 Arithmancy (Medium) PROGRAMMING constructive algorithms interactive probabilities strings 2600

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 <= 30 ), 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
259498378 StarSilk D2 May 4, 2024, 11:11 a.m. OK C++14 (GCC 6-32) TESTS 12 124 0 2600
263607997 Const_int D2 June 1, 2024, 9:43 a.m. OK C++17 (GCC 7-32) TESTS 12 46 0 2600
263169494 Kirill22 D2 May 29, 2024, 4:50 p.m. OK C++17 (GCC 7-32) TESTS 12 62 0 2600
263168985 Kirill22 D2 May 29, 2024, 4:42 p.m. OK C++17 (GCC 7-32) TESTS 12 62 0 2600
262495742 im.priyansh D2 May 25, 2024, 10:23 a.m. OK C++17 (GCC 7-32) TESTS 12 62 0 2600
261532454 fengqiyuka D2 May 18, 2024, 12:54 p.m. OK C++17 (GCC 7-32) TESTS 12 62 0 2600
261409853 Electron1997 D2 May 17, 2024, 4:36 p.m. OK C++17 (GCC 7-32) TESTS 12 62 0 2600
259615984 chappy1 D2 May 5, 2024, 10:05 a.m. OK C++17 (GCC 7-32) TESTS 12 62 0 2600
259499146 nfssdq D2 May 4, 2024, 11:18 a.m. OK C++17 (GCC 7-32) TESTS 12 62 0 2600
263607979 vjudge2 D2 June 1, 2024, 9:42 a.m. OK C++17 (GCC 7-32) TESTS 12 77 0 2600
262070381 semenInRussia D2 May 22, 2024, 12:48 a.m. OK C++17 (GCC 7-32) TESTS 12 77 0 2600
263133785 Engineer D2 May 29, 2024, 11:34 a.m. OK C++20 (GCC 13-64) TESTS 12 46 0 2600
259697548 cmk666 D2 May 6, 2024, 2:23 a.m. OK C++20 (GCC 13-64) TESTS 12 61 307200 2600
259732837 enslaved D2 May 6, 2024, 10:17 a.m. OK C++20 (GCC 13-64) TESTS 12 62 0 2600
259506553 Marcin_smu D2 May 4, 2024, 12:18 p.m. OK C++20 (GCC 13-64) TESTS 12 62 0 2600
259499960 Atkins toam karinohito D2 May 4, 2024, 11:24 a.m. OK C++20 (GCC 13-64) TESTS 12 62 0 2600
260071747 maspy D2 May 9, 2024, 5:12 a.m. OK C++20 (GCC 13-64) TESTS 12 62 102400 2600
261189251 aryak05 kkkk1234 nandhagk1729 D2 May 16, 2024, 11:47 a.m. OK C++20 (GCC 13-64) TESTS 12 77 0 2600
260062745 Yuvraj_2004 D2 May 9, 2024, 2:41 a.m. OK C++20 (GCC 13-64) TESTS 12 77 0 2600
259503910 __jk__ D2 May 4, 2024, 11:55 a.m. OK C++20 (GCC 13-64) TESTS 12 77 0 2600
259500045 ValenciaTravis D2 May 4, 2024, 11:25 a.m. OK C++20 (GCC 13-64) TESTS 12 77 0 2600
259557303 kaiboy rainboy D2 May 4, 2024, 8:20 p.m. OK GNU C11 TESTS 12 3327 10444800 2600
259995303 timiss D2 May 8, 2024, 12:09 p.m. OK GNU C11 TESTS 12 3389 10444800 2600
259705530 dzhi D2 May 6, 2024, 5:11 a.m. OK Java 21 TESTS 12 1312 819200 2600
260526303 aha66 D2 May 11, 2024, 10:41 a.m. OK PyPy 3-64 TESTS 12 155 2252800 2600
260965476 tu144x D2 May 14, 2024, 5:28 p.m. OK PyPy 3-64 TESTS 12 171 2252800 2600
262845912 2210080018 D2 May 27, 2024, 7:49 a.m. OK Python 3 TESTS 12 108 0 2600
259948615 BetterThanNobita D2 May 8, 2024, 4:43 a.m. OK Rust 2021 TESTS 12 249 85708800 2600

remove filters

Back to search problems