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
( 873 ) B2 Exact Neighbours (Medium) PROGRAMMING constructive algorithms 2100

B"The only difference between this and the hard version is that a_{1} = 0 . After some recent attacks on Hogwarts Castle by the Death Eaters, the Order of the Phoenix has decided to station n members in Hogsmead Village. The houses will be situated on a picturesque n x n square field. Each wizard will have their own house, and every house will belong to some wizard. Each house will take up the space of one square. However, as you might know wizards are very superstitious. During the weekends, each wizard i will want to visit the house that is exactly a_{i} (0 <= q a_{i} <= q n) away from their own house. The roads in the village are built horizontally and vertically, so the distance between points (x_{i}, y_{i}) and (x_{j}, y_{j}) on the n x n field is |x_{i} - x_{j}| + |y_{i} - y_{j}| . The wizards know and trust each other, so one wizard can visit another wizard's house when the second wizard is away. The houses to be built will be big enough for all n wizards to simultaneously visit any house. Apart from that, each wizard is mandated to have a view of the Hogwarts Castle in the north and the Forbidden Forest in the south, so the house of no other wizard should block the view. In terms of the village, it means that in each column of the n x n field, there can be at most one house, i.e. if the i -th house has coordinates (x_{i}, y_{i}) , then x_{i} neq x_{j} for all i neq j . The Order of the Phoenix doesn't yet know if it is possible to place n houses in such a way that will satisfy the visit and view requirements of all n wizards, so they are asking for your help in designing such a plan. If it is possible to have a correct placement, where for the i -th wizard there is a house that is a_{i} away from it and the house of the i -th wizard is the only house in their column, output YES, the position of houses for each wizard, "...

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
262098245 include_c B2 May 22, 2024, 6:26 a.m. OK C++14 (GCC 6-32) TESTS 16 217 3993600 2100
261188725 sell_gram_wind B2 May 16, 2024, 11:43 a.m. OK C++14 (GCC 6-32) TESTS 16 217 6451200 2100
262098295 include_c B2 May 22, 2024, 6:26 a.m. OK C++14 (GCC 6-32) TESTS 16 218 3993600 2100
261330326 wukaichen888 B2 May 17, 2024, 12:43 p.m. OK C++14 (GCC 6-32) TESTS 16 249 7987200 2100
259503971 rizynvu B2 May 4, 2024, 11:56 a.m. OK C++14 (GCC 6-32) TESTS 16 296 4096000 2100
261267100 PhantomOY B2 May 17, 2024, 2:34 a.m. OK C++14 (GCC 6-32) TESTS 16 327 0 2100
259734459 showraven193 B2 May 6, 2024, 10:33 a.m. OK C++14 (GCC 6-32) TESTS 16 359 1638400 2100
260766864 Maximus11 B2 May 13, 2024, 8:43 a.m. OK C++14 (GCC 6-32) TESTS 16 405 7577600 2100
260709258 duyiblue B2 May 12, 2024, 7:48 p.m. OK C++14 (GCC 6-32) TESTS 16 562 4812800 2100
260839380 Ahoora romi_sahari Mahdiar.O B2 May 13, 2024, 5:46 p.m. OK C++17 (GCC 7-32) TESTS 16 125 1638400 2100
259700214 haulg3 B2 May 6, 2024, 3:25 a.m. OK C++17 (GCC 7-32) TESTS 16 140 0 2100
259662028 Prostoegor239 B2 May 5, 2024, 5:02 p.m. OK C++17 (GCC 7-32) TESTS 16 140 0 2100
259566657 anhkha1004 B2 May 4, 2024, 10:49 p.m. OK C++17 (GCC 7-32) TESTS 16 140 0 2100
262330518 Magikarp4000 B2 May 24, 2024, 3:56 a.m. OK C++17 (GCC 7-32) TESTS 16 140 2457600 2100
260573625 mohammadyamin B2 May 11, 2024, 6:27 p.m. OK C++17 (GCC 7-32) TESTS 16 155 0 2100
261659054 Individual B2 May 19, 2024, 1:39 p.m. OK C++17 (GCC 7-32) TESTS 16 156 0 2100
261653198 Hadi_Alhamed B2 May 19, 2024, 12:45 p.m. OK C++17 (GCC 7-32) TESTS 16 156 0 2100
262276620 zhou_yidie B2 May 23, 2024, 2:57 p.m. OK C++17 (GCC 7-32) TESTS 16 156 2457600 2100
259496033 TonySnark B2 May 4, 2024, 10:53 a.m. OK C++17 (GCC 7-32) TESTS 16 156 2457600 2100
259814313 kevinyang uwu B2 May 7, 2024, 1:28 a.m. OK C++20 (GCC 13-64) TESTS 16 108 0 2100
261636682 Aleks5d RabbitPower kova1 B2 May 19, 2024, 10:12 a.m. OK C++20 (GCC 13-64) TESTS 16 108 1331200 2100
261280019 SMDS B2 May 17, 2024, 5:15 a.m. OK C++20 (GCC 13-64) TESTS 16 109 0 2100
261001252 Crazypy B2 May 15, 2024, 4:17 a.m. OK C++20 (GCC 13-64) TESTS 16 109 0 2100
260729083 EthanKim8683 B2 May 13, 2024, 3:22 a.m. OK C++20 (GCC 13-64) TESTS 16 109 0 2100
259881644 free989898 SaltyDonut weirdflexbutok B2 May 7, 2024, 1:27 p.m. OK C++20 (GCC 13-64) TESTS 16 109 0 2100
259666133 anta.baka mtw B2 May 5, 2024, 5:43 p.m. OK C++20 (GCC 13-64) TESTS 16 109 0 2100
259564901 enslaved B2 May 4, 2024, 10:13 p.m. OK C++20 (GCC 13-64) TESTS 16 109 0 2100
260596867 phnmihducctin B2 May 12, 2024, 1:40 a.m. OK C++20 (GCC 13-64) TESTS 16 109 4812800 2100
260048129 imabird B2 May 8, 2024, 8:46 p.m. OK C++20 (GCC 13-64) TESTS 16 124 0 2100
259550545 dzhi B2 May 4, 2024, 7:01 p.m. OK Java 21 TESTS 16 561 22118400 2100
259996270 timiss B2 May 8, 2024, 12:16 p.m. OK Java 21 TESTS 16 578 22118400 2100
259506311 formidablechief27 B2 May 4, 2024, 12:16 p.m. OK Java 8 TESTS 16 1218 138854400 2100
262468764 accelerate_nju B2 May 25, 2024, 6:33 a.m. OK PyPy 3-64 TESTS 16 327 29900800 2100
262956879 just_average_ok B2 May 28, 2024, 4:44 a.m. OK PyPy 3-64 TESTS 16 905 48947200 2100
260540244 aha66 B2 May 11, 2024, 1:08 p.m. OK PyPy 3-64 TESTS 16 1046 48332800 2100
259825016 BetterThanNobita B2 May 7, 2024, 4:38 a.m. OK Rust 2021 TESTS 16 77 1228800 2100
260660927 mikkk B2 May 12, 2024, 12:28 p.m. OK Rust 2021 TESTS 16 109 13721600 2100

remove filters

Back to search problems