Helvetic Coding Contest 2018 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
958 Helvetic Coding Contest 2018 online mirror (teams allowed, unrated) FINISHED False 18000 208133699 April 14, 2018, 7:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1683 ) F1 Lightsabers (easy) PROGRAMMING implementation 1700

B'There is unrest in the Galactic Senate. Several thousand solar systems have declared their intentions to leave the Republic. Master Heidi needs to select the Jedi Knights who will go on peacekeeping missions throughout the galaxy. It is well-known that the success of any peacekeeping mission depends on the colors of the lightsabers of the Jedi who will go on that mission. Heidi has n Jedi Knights standing in front of her, each one with a lightsaber of one of m possible colors. She knows that for the mission to be the most effective, she needs to select some contiguous interval of knights such that there are exactly k1 knights with lightsabers of the first color, k2 knights with lightsabers of the second color, ..., km knights with lightsabers of the m-th color. Help her find out if this is possible. The first line of the input contains n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100) and m (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n). The second line contains n integers in the range {1, xe2 x80 x892, xe2 x80 x89..., xe2 x80 x89m} representing colors of the lightsabers of the subsequent Jedi Knights. The third line contains m integers k1, xe2 x80 x89k2, xe2 x80 x89..., xe2 x80 x89km (with ) xe2 x80 x93 the desired counts of lightsabers of each color from 1 to m. Output YES if an interval with prescribed color counts exists, or output NO if there is none. '...

Tutorials

helvetic-coding-contest-2018-editorial.pdf

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
37326865 xish F1 April 14, 2018, 12:19 p.m. OK GNU C++ TESTS 69 15 3481600 1700
37370515 LS_cak F1 April 16, 2018, 11:29 a.m. OK GNU C++ TESTS 69 30 3276800 1700
37318021 OpalDshawn hime BSBandme F1 April 14, 2018, 8:49 a.m. OK GNU C++ TESTS 69 30 3276800 1700
37315230 DXC _Dispwnl xMinh F1 April 14, 2018, 8:08 a.m. OK GNU C++ TESTS 69 30 3481600 1700
37314066 RedTea F1 April 14, 2018, 7:53 a.m. OK GNU C++ TESTS 69 30 3481600 1700
37312803 Maesa-Wanni F1 April 14, 2018, 7:37 a.m. OK GNU C++ TESTS 69 30 3481600 1700
37312422 mr.stefan F1 April 14, 2018, 7:32 a.m. OK GNU C++ TESTS 69 30 3481600 1700
37310885 Dance_Of_Faith Mr_Spade tkandi F1 April 14, 2018, 7:12 a.m. OK GNU C++ TESTS 69 30 3481600 1700
37858606 AMnu F1 May 3, 2018, 10:08 a.m. OK GNU C++ TESTS 69 30 3584000 1700
37480706 vjudge1 F1 April 20, 2018, 8:23 a.m. OK GNU C++ TESTS 69 30 3584000 1700
37322862 tomaso F1 April 14, 2018, 10:25 a.m. OK GNU C++11 TESTS 69 15 3379200 1700
37310980 mtsd kopricky smiken F1 April 14, 2018, 7:14 a.m. OK GNU C++11 TESTS 69 15 3481600 1700
38599195 porgyturtle F1 May 25, 2018, 2:08 a.m. OK GNU C++11 TESTS 69 30 0 1700
37319039 liuyuzhe spicy_chicken uniqriv F1 April 14, 2018, 9:05 a.m. OK GNU C++11 TESTS 69 30 3276800 1700
37314709 zhugezy F1 April 14, 2018, 8:01 a.m. OK GNU C++11 TESTS 69 30 3276800 1700
37312703 Cubic3 wxz97121 F1 April 14, 2018, 7:36 a.m. OK GNU C++11 TESTS 69 30 3276800 1700
37353308 Mona_Ahmed ZYehia Re11m F1 April 15, 2018, 12:40 p.m. OK GNU C++11 TESTS 69 30 3481600 1700
37343090 20102430128 F1 April 15, 2018, 4:14 a.m. OK GNU C++11 TESTS 69 30 3481600 1700
37337989 Markhyz jnk _Weiss F1 April 14, 2018, 7:20 p.m. OK GNU C++11 TESTS 69 30 3481600 1700
37333400 Mohamed-Mostafa F1 April 14, 2018, 4:15 p.m. OK GNU C++11 TESTS 69 30 3481600 1700
55539964 ljk0411jg F1 June 13, 2019, 6:58 p.m. OK GNU C++14 TESTS 69 15 0 1700
38975173 SebaMarin F1 June 5, 2018, 5:21 p.m. OK GNU C++14 TESTS 69 15 3379200 1700
37732220 Zaher Zero-Hour F1 April 29, 2018, 7:02 p.m. OK GNU C++14 TESTS 69 15 3379200 1700
37642354 Laboon Qumair MafaFive F1 April 26, 2018, 4:03 p.m. OK GNU C++14 TESTS 69 15 3379200 1700
37520087 otrecnoc F1 April 21, 2018, 5:20 p.m. OK GNU C++14 TESTS 69 15 3379200 1700
37353818 omar42 F1 April 15, 2018, 1:05 p.m. OK GNU C++14 TESTS 69 15 3379200 1700
37318986 shreyansh97 Shounak F1 April 14, 2018, 9:05 a.m. OK GNU C++14 TESTS 69 15 3379200 1700
37315248 reluctantcoder rawatds F1 April 14, 2018, 8:09 a.m. OK GNU C++14 TESTS 69 15 3379200 1700
37315081 FrozenBeast028 F1 April 14, 2018, 8:06 a.m. OK GNU C++14 TESTS 69 15 3379200 1700
37313042 shdut F1 April 14, 2018, 7:40 a.m. OK GNU C++14 TESTS 69 15 3379200 1700
38599132 codercody F1 May 25, 2018, 2:02 a.m. OK GNU C++17 TESTS 69 15 0 1700
37321455 igba CiriloMorax17 F1 April 14, 2018, 9:53 a.m. OK GNU C++17 TESTS 69 15 3379200 1700
37318235 1998jiangchao F1 April 14, 2018, 8:52 a.m. OK GNU C++17 TESTS 69 15 3379200 1700
37314441 Lollipop F1 April 14, 2018, 7:58 a.m. OK GNU C++17 TESTS 69 15 3379200 1700
37313890 im0qianqian Rainb0ws F1 April 14, 2018, 7:51 a.m. OK GNU C++17 TESTS 69 15 4300800 1700
58403833 Hackerman F1 Aug. 6, 2019, 7:16 p.m. OK GNU C++17 TESTS 69 30 0 1700
54651631 201732110113 F1 May 26, 2019, 5:48 a.m. OK GNU C++17 TESTS 69 30 0 1700
54650313 vjudge4 F1 May 26, 2019, 4:50 a.m. OK GNU C++17 TESTS 69 30 0 1700
40775829 bciobanu Andrei1998 F1 July 26, 2018, 11:16 a.m. OK GNU C++17 TESTS 69 30 1638400 1700
37341278 ya_ne_xoxol_ya_kiborg kisasexypantera94 F1 April 15, 2018, 12:56 a.m. OK GNU C++17 TESTS 69 30 3379200 1700
47549757 kusomushi F1 Dec. 27, 2018, 12:22 p.m. OK Java 8 TESTS 69 124 0 1700
38978999 _bacali F1 June 5, 2018, 8:53 p.m. OK Java 8 TESTS 69 124 0 1700
37550817 Azuz F1 April 23, 2018, 12:40 p.m. OK Java 8 TESTS 69 124 20684800 1700
37323334 monyone F1 April 14, 2018, 10:35 a.m. OK Java 8 TESTS 69 124 20684800 1700
37321910 ViciousCoder F1 April 14, 2018, 10:02 a.m. OK Java 8 TESTS 69 124 20684800 1700
37312565 guptautkarsh028 Abhishek_8 F1 April 14, 2018, 7:34 a.m. OK Java 8 TESTS 69 124 20684800 1700
37311547 piyushsethia1999 ag_orz amnesiac_dusk F1 April 14, 2018, 7:21 a.m. OK Java 8 TESTS 69 124 20684800 1700
37323249 Geralt F1 April 14, 2018, 10:33 a.m. OK Java 8 TESTS 69 139 20684800 1700
37311615 Jeel_Vaishnav sanketmakani Nirav_96 F1 April 14, 2018, 7:22 a.m. OK Java 8 TESTS 69 139 20684800 1700
37355572 Ahmad F1 April 15, 2018, 2:28 p.m. OK Java 8 TESTS 69 139 21401600 1700
37375245 MenOfPassion F1 April 16, 2018, 2:21 p.m. OK MS C++ TESTS 69 30 3481600 1700
40097706 vjudge3 F1 July 9, 2018, 1:36 a.m. OK MS C++ TESTS 69 31 0 1700
37326150 Alex_Simonyan F1 April 14, 2018, 11:59 a.m. OK MS C++ TESTS 69 31 3481600 1700
37324624 Volpe F1 April 14, 2018, 11:26 a.m. OK MS C++ TESTS 69 31 3481600 1700
37318919 vphuong214 F1 April 14, 2018, 9:03 a.m. OK MS C++ TESTS 69 31 3481600 1700
37492955 vjudge2 F1 April 20, 2018, 4:27 p.m. OK MS C++ TESTS 69 31 3788800 1700
37332078 mayakin F1 April 14, 2018, 3:29 p.m. OK PHP TESTS 69 31 6041600 1700
37315109 deadkey exoji2e F1 April 14, 2018, 8:07 a.m. OK PyPy 2 TESTS 69 108 22937600 1700
37313355 pavankatta F1 April 14, 2018, 7:44 a.m. OK PyPy 2 TESTS 69 124 24473600 1700
37330409 madn F1 April 14, 2018, 2:26 p.m. OK PyPy 3 TESTS 69 109 21606400 1700
62147030 Unpossible F1 Oct. 8, 2019, 4:11 p.m. OK PyPy 3 TESTS 69 140 0 1700
38713316 i.e F1 May 29, 2018, 8:38 a.m. OK PyPy 3 TESTS 69 140 409600 1700
37316719 potpath F1 April 14, 2018, 8:29 a.m. OK PyPy 3 TESTS 69 155 22016000 1700
38540899 Ali_Pi F1 May 22, 2018, 3:57 p.m. OK Python 2 TESTS 69 108 0 1700
38174634 Qumeric F1 May 13, 2018, 10:13 a.m. OK Python 3 TESTS 69 78 7372800 1700
37317628 escepta F1 April 14, 2018, 8:43 a.m. OK Python 3 TESTS 69 78 7372800 1700
38957928 _Lumos __Melodies F1 June 5, 2018, 2:41 a.m. OK Python 3 TESTS 69 93 7065600 1700
37336745 shadow_force F1 April 14, 2018, 6:20 p.m. OK Python 3 TESTS 69 93 7065600 1700
37336500 tanish36 F1 April 14, 2018, 6:10 p.m. OK Python 3 TESTS 69 93 7065600 1700
37322686 Maksim1744 F1 April 14, 2018, 10:21 a.m. OK Python 3 TESTS 69 93 7065600 1700
37369867 LordBekket Evgeniy97 sergovoy F1 April 16, 2018, 10:59 a.m. OK Python 3 TESTS 69 93 7168000 1700
37536260 yclrz F1 April 22, 2018, 3:56 p.m. OK Python 3 TESTS 69 93 7372800 1700
62075281 piyushgoyaliit F1 Oct. 7, 2019, 6:10 p.m. OK Python 3 TESTS 69 124 0 1700
37316033 Orion F1 April 14, 2018, 8:19 a.m. OK Python 3 TESTS 69 639 7065600 1700

remove filters

Back to search problems