Helvetic Coding Contest 2016 online mirror (teams, 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
690 Helvetic Coding Contest 2016 online mirror (teams, unrated) FINISHED False 16200 308786385 July 10, 2016, 8 a.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 672 ) A3 Collective Mindsets (hard) PROGRAMMING 2500

Heidi got one brain, thumbs up! But the evening isn't over yet and one more challenge awaits our dauntless agent: after dinner, at precisely midnight, the N attendees love to play a very risky game... Every zombie gets a number n i ( 1 ≤ n i ≤ N ) written on his forehead. Although no zombie can see his own number, he can see the numbers written on the foreheads of all N - 1 fellows. Note that not all numbers have to be unique (they can even all be the same). From this point on, no more communication between zombies is allowed. Observation is the only key to success. When the cuckoo clock strikes midnight, all attendees have to simultaneously guess the number on their own forehead. If at least one of them guesses his number correctly, all zombies survive and go home happily. On the other hand, if not a single attendee manages to guess his number correctly, all of them are doomed to die! Zombies aren't very bright creatures though, and Heidi has to act fast if she does not want to jeopardize her life. She has one single option: by performing some quick surgery on the brain she managed to get from the chest, she has the ability to remotely reprogram the decision-making strategy of all attendees for their upcoming midnight game! Can you suggest a sound strategy to Heidi which, given the rules of the game, ensures that at least one attendee will guess his own number correctly, for any possible sequence of numbers on the foreheads? Given a zombie's rank R and the N - 1 numbers n i on the other attendees' foreheads, your program will have to return the number that the zombie of rank R shall guess. Those answers define your strategy, and we will check if it is flawless or not. The first line of input contains a single integer T ( 1 ≤ T ≤ 50000 ): the number of scenarios for which you have to make a guess. The T scenarios follow, described on two lines each: The first line holds two integers, N ( 2 ≤ N ≤ 6 ), the number of attendees, and R ( 1 ≤ R ≤ N ), the rank o

Tutorials

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
19164352 i69.NHNguyen A3 July 16, 2016, 2:38 a.m. OK FPC TESTS 6 93 0 2500
19163584 nhnguyen_vietnam A3 July 16, 2016, 1:35 a.m. OK FPC TESTS 6 93 0 2500
19031492 llgyc A3 July 11, 2016, 1:45 p.m. OK FPC TESTS 6 108 0 2500
26958294 VladProg A3 May 8, 2017, 2:04 p.m. OK FPC TESTS 6 109 0 2500
19102327 GreymaneSilverfang A3 July 14, 2016, 7:26 a.m. OK FPC TESTS 6 109 0 2500
19101605 GreymaneSilverfang A3 July 14, 2016, 6:11 a.m. OK FPC TESTS 6 109 0 2500
25831372 jiyutian A3 March 27, 2017, 4:38 a.m. OK GNU C++ TESTS 6 15 1843200 2500
36896418 vjudge4 A3 April 3, 2018, 8:23 a.m. OK GNU C++ TESTS 6 15 3481600 2500
40984183 ReaLNero1 A3 July 30, 2018, 7:14 p.m. OK GNU C++ TESTS 6 31 0 2500
20776403 vjudge4 A3 Sept. 20, 2016, 1:08 p.m. OK GNU C++ TESTS 6 46 0 2500
19221462 yaoling1997 A3 July 19, 2016, 12:47 a.m. OK GNU C++ TESTS 6 46 0 2500
19031521 Coward A3 July 11, 2016, 1:46 p.m. OK GNU C++ TESTS 6 46 0 2500
19015000 NikitosBandos A3 July 10, 2016, 6:59 p.m. OK GNU C++ TESTS 6 46 0 2500
19006339 jumpwmk nonira321 korla.march A3 July 10, 2016, 11 a.m. OK GNU C++ TESTS 6 46 0 2500
19005065 yts1999 zhangchen Oxer11 A3 July 10, 2016, 10:24 a.m. OK GNU C++ TESTS 6 46 0 2500
34661597 giorgi A3 Jan. 29, 2018, 12:49 p.m. OK GNU C++ TESTS 6 46 2048000 2500
19169848 eddy1021 A3 July 16, 2016, 8:50 a.m. OK GNU C++11 TESTS 6 15 0 2500
36896427 Fuko_Ibuki A3 April 3, 2018, 8:24 a.m. OK GNU C++11 TESTS 6 30 3481600 2500
21898545 nicabi A3 Oct. 30, 2016, 7:14 p.m. OK GNU C++11 TESTS 6 31 0 2500
19284983 savinov A3 July 20, 2016, 5:11 p.m. OK GNU C++11 TESTS 6 31 0 2500
22923063 Weeeee A3 Dec. 13, 2016, 9:19 a.m. OK GNU C++11 TESTS 6 46 0 2500
22008995 and5eea A3 Nov. 3, 2016, 8:48 a.m. OK GNU C++11 TESTS 6 46 0 2500
21795599 bogdan10bos A3 Oct. 26, 2016, 1:42 p.m. OK GNU C++11 TESTS 6 46 0 2500
20382076 20140355 A3 Sept. 4, 2016, 12:26 p.m. OK GNU C++11 TESTS 6 46 0 2500
19615701 atatomir A3 Aug. 4, 2016, 1:12 p.m. OK GNU C++11 TESTS 6 46 0 2500
19520144 kreksi A3 July 30, 2016, 3:11 p.m. OK GNU C++11 TESTS 6 46 0 2500
23380226 Ali.Pi A3 Dec. 28, 2016, 2:44 p.m. OK GNU C++14 TESTS 6 61 1945600 2500
22029717 AlexandruVlad A3 Nov. 4, 2016, 8:22 a.m. OK GNU C++14 TESTS 6 62 0 2500
35280669 cyz666 A3 Feb. 15, 2018, 2:59 a.m. OK GNU C++14 TESTS 6 62 1843200 2500
34819634 iqqsoszs A3 Feb. 1, 2018, 8:29 p.m. OK GNU C++14 TESTS 6 62 1843200 2500
21261329 cella.florescu A3 Oct. 7, 2016, 3:27 p.m. OK GNU C++14 TESTS 6 62 1843200 2500
37306665 lllllllllllllllllllllll A3 April 14, 2018, 3:16 a.m. OK GNU C++14 TESTS 6 77 3379200 2500
28821183 boook justinQAQ StillFantasy A3 July 24, 2017, 9:56 a.m. OK GNU C++14 TESTS 6 78 1945600 2500
26157230 xiia A3 April 5, 2017, 7:20 p.m. OK GNU C++14 TESTS 6 249 2048000 2500
34803195 iqqsoszs A3 Feb. 1, 2018, 1:01 p.m. OK GNU C++14 TESTS 6 249 46592000 2500
28875387 boook A3 July 25, 2017, 12:16 p.m. OK GNU C++14 TESTS 6 326 1945600 2500
51361617 chinmay0906 A3 March 16, 2019, 7:35 a.m. OK GNU C++17 TESTS 6 62 0 2500
57815682 Benq A3 July 26, 2019, 7:33 p.m. OK GNU C++17 TESTS 6 77 0 2500
19021824 demonKing A3 July 11, 2016, 6:05 a.m. OK Java 8 TESTS 6 124 0 2500
19012542 di_halt A3 July 10, 2016, 3:48 p.m. OK Java 8 TESTS 6 124 0 2500
19001314 eatmore A3 July 10, 2016, 8:53 a.m. OK Java 8 TESTS 6 139 0 2500
19033866 kraskevich A3 July 11, 2016, 4:19 p.m. OK Java 8 TESTS 6 155 0 2500
19033744 kraskevich A3 July 11, 2016, 4:11 p.m. OK Java 8 TESTS 6 155 0 2500
19031048 love11mishra A3 July 11, 2016, 1:21 p.m. OK Java 8 TESTS 6 296 0 2500
22608726 og.kostya A3 Nov. 29, 2016, 7 p.m. OK MS C# TESTS 6 46 716800 2500
19020373 prateep A3 July 11, 2016, 4:42 a.m. OK MS C++ TESTS 6 46 0 2500
19008619 stgatilov A3 July 10, 2016, 12:08 p.m. OK MS C++ TESTS 6 46 0 2500
19007568 PengsenMao xu_an_xi squee_spoon A3 July 10, 2016, 11:39 a.m. OK MS C++ TESTS 6 46 0 2500
19040930 rkm0959 A3 July 12, 2016, 4:05 a.m. OK MS C++ TESTS 6 62 0 2500
19050724 Kirito.LVL99 A3 July 12, 2016, 12:21 p.m. OK MS C++ TESTS 6 280 0 2500
19547519 kevinqli jaina ericxu0 A3 Aug. 1, 2016, midnight OK Python 2 TESTS 6 327 921600 2500
19734587 RElectra A3 Aug. 8, 2016, 6:29 p.m. OK Python 2 TESTS 6 545 14233600 2500
18999709 potpath A3 July 10, 2016, 8:29 a.m. OK Python 3 TESTS 6 733 0 2500
25766245 YakutovDmitriy A3 March 24, 2017, 8:06 a.m. OK Python 3 TESTS 6 841 4608000 2500
19198853 kuritzky A3 July 18, 2016, 2:16 a.m. OK Python 3 TESTS 6 842 0 2500
19198594 kuritzky A3 July 18, 2016, 1:56 a.m. OK Python 3 TESTS 6 889 0 2500
19002718 mikkerlo irka1804 A3 July 10, 2016, 9:22 a.m. OK Python 3 TESTS 6 951 0 2500

remove filters

Back to search problems