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 |
|---|---|---|---|---|---|---|
| 958 | Helvetic Coding Contest 2018 online mirror (teams allowed, unrated) | FINISHED | False | 18000 | 252716123 | April 14, 2018, 7:05 a.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 119 ) | D2 | Hyperspace Jump (hard) | PROGRAMMING | 3000 |
It is now 125 years later, but humanity is still on the run from a humanoid-cyborg race determined to destroy it. Or perhaps we are getting some stories mixed up here... In any case, the fleet is now smaller. However, in a recent upgrade, all the navigation systems have been outfitted with higher-dimensional, linear-algebraic jump processors. Now, in order to make a jump, a ship's captain needs to specify a subspace of the d -dimensional space in which the events are taking place. She does so by providing a generating set of vectors for that subspace. Princess Heidi has received such a set from the captain of each of m ships. Again, she would like to group up those ships whose hyperspace jump subspaces are equal. To do so, she wants to assign a group number between 1 and m to each of the ships, so that two ships have the same group number if and only if their corresponding subspaces are equal (even though they might be given using different sets of vectors). Help Heidi! The first line of the input contains two space-separated integers m and d ( 2 ≤ m ≤ 30 000 , 1 ≤ d ≤ 5 ) – the number of ships and the dimension of the full underlying vector space, respectively. Next, the m subspaces are described, one after another. The i -th subspace, which corresponds to the i -th ship, is described as follows: The first line contains one integer k i ( 1 ≤ k i ≤ d ). Then k i lines follow, the j -th of them describing the j -th vector sent by the i -th ship. Each of the j lines consists of d space-separated integers a j , j = 1, ..., d , that describe the vector ; it holds that | a j | ≤ 250 . The i -th subspace is the linear span of these k i vectors. Output m space-separated integers g 1 , ..., g m , where denotes the group number assigned to the i -th ship. That is, for any 1 ≤ i < j ≤ m , the following should hold: g i = g j if and only if the i -th and the j -th subspaces are equal. In addition, the sequence ( g 1 , g 2 , ..., g m ) should be lexicographically mini |
| helvetic-coding-contest-2018-editorial.pdf |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 37326652 | 131131yhx | D2 | April 14, 2018, 12:11 p.m. | OK | GNU C++ | TESTS | 40 | 343 | 4710400 | 3000 | |
| 57740448 | py_ultron | D2 | July 25, 2019, 11:18 a.m. | OK | GNU C++11 | TESTS | 40 | 78 | 1228800 | 3000 | |
| 57870092 | lopare | D2 | July 28, 2019, 12:59 a.m. | OK | GNU C++11 | TESTS | 40 | 93 | 1228800 | 3000 | |
| 40932544 | ReaLNero1 | D2 | July 30, 2018, 1:52 a.m. | OK | GNU C++11 | TESTS | 40 | 93 | 3379200 | 3000 | |
| 51866591 | FizzyDavid | D2 | March 26, 2019, 3:27 p.m. | OK | GNU C++11 | TESTS | 40 | 109 | 4096000 | 3000 | |
| 37321188 | King_George ohweonfire FizzyDavid | D2 | April 14, 2018, 9:47 a.m. | OK | GNU C++11 | TESTS | 40 | 124 | 6860800 | 3000 | |
| 37398053 | krijgertje | D2 | April 17, 2018, 2:09 p.m. | OK | GNU C++11 | TESTS | 40 | 171 | 17305600 | 3000 | |
| 37790728 | egoist | D2 | May 1, 2018, 6:59 a.m. | OK | GNU C++11 | TESTS | 40 | 187 | 4710400 | 3000 | |
| 37324563 | Inner_x_Peace | D2 | April 14, 2018, 11:23 a.m. | OK | GNU C++11 | TESTS | 40 | 280 | 29286400 | 3000 | |
| 37363851 | tqyaaaaaaaang | D2 | April 16, 2018, 2:22 a.m. | OK | GNU C++11 | TESTS | 40 | 390 | 11366400 | 3000 | |
| 37316829 | apiadu TLE yanQval | D2 | April 14, 2018, 8:31 a.m. | OK | GNU C++11 | TESTS | 40 | 514 | 14336000 | 3000 | |
| 37549477 | giorgi | D2 | April 23, 2018, 11:38 a.m. | OK | GNU C++14 | TESTS | 40 | 171 | 4812800 | 3000 | |
| 37316355 | AbstractKangaroo MiFaFaOvO | D2 | April 14, 2018, 8:24 a.m. | OK | GNU C++14 | TESTS | 40 | 187 | 4812800 | 3000 | |
| 37387042 | AwD | D2 | April 17, 2018, 5:07 a.m. | OK | GNU C++14 | TESTS | 40 | 202 | 4710400 | 3000 | |
| 38841277 | egoist | D2 | June 1, 2018, 3:01 p.m. | OK | GNU C++14 | TESTS | 40 | 233 | 4812800 | 3000 | |
| 41301120 | jslijin | D2 | Aug. 7, 2018, 10:12 a.m. | OK | GNU C++14 | TESTS | 40 | 296 | 1536000 | 3000 | |
| 41304837 | jslijin | D2 | Aug. 7, 2018, 12:28 p.m. | OK | GNU C++14 | TESTS | 40 | 311 | 2457600 | 3000 | |
| 41304447 | jslijin | D2 | Aug. 7, 2018, 12:16 p.m. | OK | GNU C++14 | TESTS | 40 | 311 | 2457600 | 3000 | |
| 37321176 | Akigeor lbn187 | D2 | April 14, 2018, 9:46 a.m. | OK | GNU C++14 | TESTS | 40 | 312 | 9932800 | 3000 | |
| 37337509 | irkstepanov AndreySergunin amethyst0 | D2 | April 14, 2018, 6:51 p.m. | OK | GNU C++14 | TESTS | 40 | 343 | 5324800 | 3000 | |
| 37337218 | irkstepanov AndreySergunin amethyst0 | D2 | April 14, 2018, 6:37 p.m. | OK | GNU C++14 | TESTS | 40 | 343 | 12595200 | 3000 | |
| 46123251 | Benq | D2 | Nov. 23, 2018, 5:27 p.m. | OK | GNU C++17 | TESTS | 40 | 218 | 10649600 | 3000 | |
| 37320160 | conflict alex9801 ko_osaga | D2 | April 14, 2018, 9:26 a.m. | OK | GNU C++17 | TESTS | 40 | 546 | 14438400 | 3000 | |
| 37323170 | ksun48 sqrtdecompton Franklyn_W | D2 | April 14, 2018, 10:31 a.m. | OK | GNU C++17 | TESTS | 40 | 732 | 8192000 | 3000 | |
| 38329859 | carbamide | D2 | May 16, 2018, 6:12 p.m. | OK | Haskell | TESTS | 40 | 2932 | 93388800 | 3000 | |
| 37461315 | uwi | D2 | April 19, 2018, 12:32 p.m. | OK | Java 8 | TESTS | 40 | 265 | 27033600 | 3000 | |
| 37463685 | uwi | D2 | April 19, 2018, 1:46 p.m. | OK | Java 8 | TESTS | 40 | 296 | 27033600 | 3000 |
Back to search problems