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 213836124 April 14, 2018, 7:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 724 ) F3 Lightsabers (hard) PROGRAMMING fft 2600

B"There used to be unrest in the Galactic Senate. Several thousand solar systems had declared their intentions to leave the Republic. But fear not! Master Heidi was able to successfully select the Jedi Knights that have restored peace in the galaxy. However, she knows that evil never sleeps and a time may come when she will need to pick another group of Jedi Knights. She wants to be sure she has enough options to do so. There are n Jedi Knights, each of them with a lightsaber of one of m colors. Given a number k, compute the number of differently colored collections of k lightsabers that some k Jedi Knights might have. Jedi Knights with lightsabers of the same color are indistinguishable (it's not the person, it's the lightsaber color that matters!), and their order does not matter; that is, we consider two collections of Jedi Knights to be different if and only if their vectors of counts of lightsabers of each color (like what you were given in the easy and the medium versions) are different. We count all subsets, not only contiguous subsegments of the input sequence. Output the answer modulo 1009. 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 x892 xc2 xb7105), m (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n) and k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k 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 subsequent Jedi Knights. Output one number: the number of differently colored collections of k lightsabers modulo 1009. "...

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
38982924 thx F3 June 6, 2018, 3:57 a.m. OK GNU C++ TESTS 59 405 43212800 2600
38988628 thx F3 June 6, 2018, 8:43 a.m. OK GNU C++ TESTS 59 405 44236800 2600
40932522 ReaLNero1 F3 July 30, 2018, 1:51 a.m. OK GNU C++ TESTS 59 421 43520000 2600
38982896 thx F3 June 6, 2018, 3:54 a.m. OK GNU C++ TESTS 59 514 43110400 2600
37353423 tokitsukaze F3 April 15, 2018, 12:47 p.m. OK GNU C++ TESTS 59 514 80896000 2600
37367673 tokitsukaze F3 April 16, 2018, 8:42 a.m. OK GNU C++ TESTS 59 545 69120000 2600
37353250 yuugumo F3 April 15, 2018, 12:38 p.m. OK GNU C++ TESTS 59 545 118784000 2600
37317381 Dream-Reality 248926 snowflake F3 April 14, 2018, 8:40 a.m. OK GNU C++ TESTS 59 561 85913600 2600
37318339 linrongen robinliu Efina F3 April 14, 2018, 8:54 a.m. OK GNU C++ TESTS 59 811 62361600 2600
38396436 vjudge5 F3 May 18, 2018, 9:31 a.m. OK GNU C++ TESTS 59 951 60620800 2600
47262715 Trisolaris F3 Dec. 19, 2018, 1:03 p.m. OK GNU C++11 TESTS 59 483 26828800 2600
47263250 Trisolaris F3 Dec. 19, 2018, 1:16 p.m. OK GNU C++11 TESTS 59 499 28467200 2600
41307192 diogo F3 Aug. 7, 2018, 1:44 p.m. OK GNU C++11 TESTS 59 514 47104000 2600
41307151 maratonando F3 Aug. 7, 2018, 1:43 p.m. OK GNU C++11 TESTS 59 514 47104000 2600
37459357 RNS_MHB F3 April 19, 2018, 11:25 a.m. OK GNU C++11 TESTS 59 561 28262400 2600
37460548 RNS_MHB F3 April 19, 2018, 12:08 p.m. OK GNU C++11 TESTS 59 577 20992000 2600
37904212 RNS_MHB F3 May 5, 2018, 11:21 a.m. OK GNU C++11 TESTS 59 577 29491200 2600
37395363 zlc1114 F3 April 17, 2018, 12:41 p.m. OK GNU C++11 TESTS 59 624 47001600 2600
37904132 RNS3 F3 May 5, 2018, 11:18 a.m. OK GNU C++11 TESTS 59 639 29081600 2600
37318785 OpalDshawn hime BSBandme F3 April 14, 2018, 9:01 a.m. OK GNU C++11 TESTS 59 733 40652800 2600
51654499 beza F3 March 21, 2019, 8:33 p.m. OK GNU C++14 TESTS 59 405 99430400 2600
37318644 AbstractKangaroo MiFaFaOvO F3 April 14, 2018, 8:59 a.m. OK GNU C++14 TESTS 59 529 54681600 2600
37475101 superguymj F3 April 20, 2018, 12:55 a.m. OK GNU C++14 TESTS 59 561 53350400 2600
37321674 kutengine black_horse2014 F3 April 14, 2018, 9:57 a.m. OK GNU C++14 TESTS 59 701 70348800 2600
37322536 Alpha_Q F3 April 14, 2018, 10:17 a.m. OK GNU C++14 TESTS 59 717 88371200 2600
62410204 ACraider F3 Oct. 12, 2019, 10:11 a.m. OK GNU C++14 TESTS 59 732 38400000 2600
38104778 wakaka meeeep F3 May 11, 2018, 3:53 a.m. OK GNU C++14 TESTS 59 733 24064000 2600
37323835 shbhm_5301 -_-_- vicky_vivek F3 April 14, 2018, 10:48 a.m. OK GNU C++14 TESTS 59 733 99123200 2600
37465107 Moon1125666900 F3 April 19, 2018, 2:35 p.m. OK GNU C++14 TESTS 59 763 66150400 2600
41808805 Anachor F3 Aug. 19, 2018, 1:13 a.m. OK GNU C++14 TESTS 59 795 13619200 2600
66636275 nikhil_c F3 Dec. 11, 2019, 1:03 p.m. OK GNU C++17 TESTS 59 529 54476800 2600
41451795 Chuzyh F3 Aug. 11, 2018, 4:13 a.m. OK GNU C++17 TESTS 59 576 64204800 2600
66635945 nikhil_c F3 Dec. 11, 2019, 12:55 p.m. OK GNU C++17 TESTS 59 577 180633600 2600
46029299 DAyamaCTF F3 Nov. 21, 2018, 12:53 p.m. OK GNU C++17 TESTS 59 624 32460800 2600
55945758 Rahul F3 June 22, 2019, 7:34 p.m. OK GNU C++17 TESTS 59 701 63897600 2600
55945709 Rahul F3 June 22, 2019, 7:32 p.m. OK GNU C++17 TESTS 59 701 63897600 2600
37314639 300iq scanhex F3 April 14, 2018, 8:01 a.m. OK GNU C++17 TESTS 59 701 136192000 2600
55945639 Rahul F3 June 22, 2019, 7:29 p.m. OK GNU C++17 TESTS 59 717 63897600 2600
40902077 Juniorandrade F3 July 29, 2018, 2:30 a.m. OK GNU C++17 TESTS 59 733 197836800 2600
51614966 tfg F3 March 21, 2019, 12:05 p.m. OK GNU C++17 TESTS 59 748 41574400 2600
65819691 synapse F3 Nov. 27, 2019, 9:52 a.m. OK Go TESTS 59 1606 55808000 2600
37500935 Ahmad F3 April 21, 2018, 2:02 a.m. OK Java 8 TESTS 59 842 192307200 2600
37315478 wrong snuke uwi F3 April 14, 2018, 8:12 a.m. OK Java 8 TESTS 59 3759 27955200 2600

remove filters

Back to search problems