Looksery Cup 2015

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
549 Looksery Cup 2015 FINISHED False 9000 304016404 June 6, 2015, 1 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1752 ) C The Game Of Parity PROGRAMMING games 2200

B'There are n cities in Westeros. The i-th city is inhabited by ai people. Daenerys and Stannis play the following game: in one single move, a player chooses a certain town and burns it to the ground. Thus all its residents, sadly, die. Stannis starts the game. The game ends when Westeros has exactly k cities left. The prophecy says that if the total number of surviving residents is even, then Daenerys wins: Stannis gets beheaded, and Daenerys rises on the Iron Throne. If the total number of surviving residents is odd, Stannis wins and everything goes in the completely opposite way. Lord Petyr Baelish wants to know which candidates to the throne he should support, and therefore he wonders, which one of them has a winning strategy. Answer to this question of Lord Baelish and maybe you will become the next Lord of Harrenholl. The first line contains two positive space-separated integers, n and k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892 xc2 xb7105) -- the initial number of cities in Westeros and the number of cities at which the game ends. The second line contains n space-separated positive integers ai (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106), which represent the population of each city in Westeros. Print string "Daenerys" (without the quotes), if Daenerys wins and "Stannis" (without the quotes), if Stannis wins. In the first sample Stannis will use his move to burn a city with two people and Daenerys will be forced to burn a city with one resident. The only survivor city will have one resident left, that is, the total sum is odd, and thus Stannis wins. In the second sample, if Stannis burns a city with two people, Daenerys burns the city with one resident, or vice versa. In any case, the last remaining city will be inhabited by two people, that is, the total sum is even, and hence Daenerys wins.'...

Tutorials

Looksery Cup 2015 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
11476003 Gassa C June 6, 2015, 4:08 p.m. OK D TESTS 73 78 7577600 2200
11473610 apathism C June 6, 2015, 3:18 p.m. OK D TESTS 73 109 102400 2200
12395927 vjudge4 C Aug. 7, 2015, 2:21 a.m. OK FPC TESTS 73 46 0 2200
11476486 Alex_2oo8 C June 6, 2015, 4:16 p.m. OK FPC TESTS 73 46 0 2200
11475867 ZigonK C June 6, 2015, 4:06 p.m. OK FPC TESTS 73 46 0 2200
11469241 vilcheuski C June 6, 2015, 2:33 p.m. OK FPC TESTS 73 46 0 2200
11465096 Sanja C June 6, 2015, 1:52 p.m. OK FPC TESTS 73 46 0 2200
11463624 popoffka C June 6, 2015, 1:38 p.m. OK FPC TESTS 73 46 0 2200
12408497 Chen_ChaoRui C Aug. 8, 2015, 2:45 a.m. OK FPC TESTS 73 46 0 2200
11509777 irevt C June 9, 2015, 12:25 p.m. OK FPC TESTS 73 46 102400 2200
11498735 igdor99 C June 8, 2015, 2:09 p.m. OK FPC TESTS 73 46 102400 2200
11479478 GiannisAntetokounmpo C June 6, 2015, 9:38 p.m. OK FPC TESTS 73 46 102400 2200
11468711 liv_curious C June 6, 2015, 2:27 p.m. OK GNU C TESTS 73 31 0 2200
11503533 flashingbyte C June 8, 2015, 10:05 p.m. OK GNU C TESTS 73 46 0 2200
12093015 SRIKANTH C July 17, 2015, 8:24 a.m. OK GNU C TESTS 73 46 819200 2200
11609949 shruti_gupta C June 16, 2015, 5 p.m. OK GNU C TESTS 73 61 0 2200
13407211 adamfazekas C Oct. 4, 2015, 7:01 p.m. OK GNU C TESTS 73 62 0 2200
11471606 yic C June 6, 2015, 2:58 p.m. OK GNU C TESTS 73 62 0 2200
11470672 cyand1317 C June 6, 2015, 2:48 p.m. OK GNU C TESTS 73 62 0 2200
11468097 pedolove420 C June 6, 2015, 2:21 p.m. OK GNU C TESTS 73 62 0 2200
11492092 kkamesh C June 7, 2015, 9:16 p.m. OK GNU C TESTS 73 62 819200 2200
12243126 kdark884 C July 27, 2015, 5:01 p.m. OK GNU C TESTS 73 62 1638400 2200
15096527 Ioser C Dec. 30, 2015, 12:09 p.m. OK GNU C++ TESTS 73 15 0 2200
14019310 wyxoi C Nov. 2, 2015, 8:04 a.m. OK GNU C++ TESTS 73 15 0 2200
26312862 Vergil_LY C April 12, 2017, 7:46 a.m. OK GNU C++ TESTS 73 15 1945600 2200
34061046 vjudge4 C Jan. 10, 2018, 3:15 a.m. OK GNU C++ TESTS 73 15 2048000 2200
19050892 vjudge4 C July 12, 2016, 12:30 p.m. OK GNU C++ TESTS 73 31 0 2200
29595259 snowflake C Aug. 19, 2017, 10:11 a.m. OK GNU C++ TESTS 73 31 0 2200
40986557 ReaLNero1 C July 30, 2018, 8:37 p.m. OK GNU C++ TESTS 73 31 0 2200
30123370 Starry C Sept. 6, 2017, 5:31 a.m. OK GNU C++ TESTS 73 31 0 2200
19073776 vjudge5 C July 13, 2016, 1:21 p.m. OK GNU C++ TESTS 73 31 0 2200
14361642 gaodechen C Nov. 20, 2015, 2:52 p.m. OK GNU C++ TESTS 73 31 0 2200
59674630 rainboy C Aug. 29, 2019, 5:34 p.m. OK GNU C11 TESTS 73 62 0 2200
22852753 I_See_You C Dec. 10, 2016, 10:15 a.m. OK GNU C++11 TESTS 73 30 0 2200
20652504 thwfhk C Sept. 16, 2016, 4:42 a.m. OK GNU C++11 TESTS 73 31 0 2200
11534668 FizzyDavid C June 11, 2015, 2:45 p.m. OK GNU C++11 TESTS 73 31 0 2200
11493434 hzwer C June 8, 2015, 2:38 a.m. OK GNU C++11 TESTS 73 31 0 2200
11480927 Remilia-Scarlet C June 7, 2015, 2:52 a.m. OK GNU C++11 TESTS 73 31 0 2200
11477214 mgch C June 6, 2015, 4:45 p.m. OK GNU C++11 TESTS 73 31 0 2200
11476498 math10 C June 6, 2015, 4:17 p.m. OK GNU C++11 TESTS 73 31 0 2200
11468646 __math C June 6, 2015, 2:27 p.m. OK GNU C++11 TESTS 73 31 0 2200
11482631 abandon C June 7, 2015, 7:05 a.m. OK GNU C++11 TESTS 73 31 819200 2200
40226485 functionendless C July 12, 2018, 9:11 a.m. OK GNU C++11 TESTS 73 46 0 2200
27418926 LiChenKoh C May 28, 2017, 7:35 p.m. OK GNU C++14 TESTS 73 15 0 2200
27418960 LiChenKoh C May 28, 2017, 7:40 p.m. OK GNU C++14 TESTS 73 30 0 2200
37863629 bojverdict2 C May 3, 2018, 1:22 p.m. OK GNU C++14 TESTS 73 61 3379200 2200
54560158 vjudge3 C May 24, 2019, 1:33 p.m. OK GNU C++14 TESTS 73 62 0 2200
45280752 NotNight C Nov. 4, 2018, 1:36 p.m. OK GNU C++14 TESTS 73 62 0 2200
44223253 ACraider C Oct. 12, 2018, 6:12 p.m. OK GNU C++14 TESTS 73 62 0 2200
40842685 wudu98 C July 27, 2018, 10:18 a.m. OK GNU C++14 TESTS 73 62 0 2200
32152733 DeaphetS C Nov. 9, 2017, 7:40 a.m. OK GNU C++14 TESTS 73 62 0 2200
31895340 Indriya C Oct. 30, 2017, 1:45 p.m. OK GNU C++14 TESTS 73 62 0 2200
55753254 rareone0602 C June 19, 2019, 1:56 p.m. OK GNU C++14 TESTS 73 62 0 2200
55410345 imAnik C June 10, 2019, 7:17 p.m. OK GNU C++17 TESTS 73 62 0 2200
55410438 imAnik C June 10, 2019, 7:22 p.m. OK GNU C++17 TESTS 73 62 0 2200
61803112 noDreams C Oct. 3, 2019, 7:55 p.m. OK GNU C++17 TESTS 73 77 0 2200
61098587 vjudge1 C Sept. 23, 2019, 5:20 a.m. OK GNU C++17 TESTS 73 77 0 2200
56595884 Rahul C July 5, 2019, 7:26 p.m. OK GNU C++17 TESTS 73 77 0 2200
54884199 Mohamed.Sobhy C May 31, 2019, 4:12 p.m. OK GNU C++17 TESTS 73 77 0 2200
54560051 HNO2 C May 24, 2019, 1:30 p.m. OK GNU C++17 TESTS 73 77 0 2200
49995636 Rm6 C Feb. 16, 2019, 2:48 p.m. OK GNU C++17 TESTS 73 77 0 2200
46255258 wiaterek105 C Nov. 26, 2018, 4:19 p.m. OK GNU C++17 TESTS 73 77 0 2200
69058369 wladw C Jan. 18, 2020, 3:25 p.m. OK GNU C++17 TESTS 73 77 0 2200
11478725 Rotsor C June 6, 2015, 7:46 p.m. OK Haskell TESTS 73 78 13107200 2200
12152854 behzad.nouri C July 21, 2015, 6:14 p.m. OK Haskell TESTS 73 78 15974400 2200
12242742 mjf C July 27, 2015, 4:15 p.m. OK Haskell TESTS 73 499 24371200 2200
11535607 ftiasch C June 11, 2015, 4:24 p.m. OK Haskell TESTS 73 577 116838400 2200
11492456 megaspazz C June 7, 2015, 10:27 p.m. OK Java 7 TESTS 73 78 0 2200
11468870 uwi C June 6, 2015, 2:29 p.m. OK Java 7 TESTS 73 78 0 2200
11470698 stolis C June 6, 2015, 2:48 p.m. OK Java 7 TESTS 73 92 0 2200
11492454 megaspazz C June 7, 2015, 10:26 p.m. OK Java 7 TESTS 73 93 0 2200
11492446 megaspazz C June 7, 2015, 10:24 p.m. OK Java 7 TESTS 73 93 0 2200
12724637 Hartha C Aug. 27, 2015, 8:46 p.m. OK Java 7 TESTS 73 109 0 2200
11476677 KNIGHT0X300 C June 6, 2015, 4:22 p.m. OK Java 7 TESTS 73 109 0 2200
11525702 shamir0xe C June 10, 2015, 8:05 p.m. OK Java 7 TESTS 73 124 0 2200
11489389 alibaba C June 7, 2015, 3:30 p.m. OK Java 7 TESTS 73 124 0 2200
11484559 marcose18 C June 7, 2015, 9:42 a.m. OK Java 7 TESTS 73 124 0 2200
11536449 martinezgjuan C June 11, 2015, 6:07 p.m. OK Java 8 TESTS 73 124 0 2200
11477290 stan C June 6, 2015, 4:51 p.m. OK Java 8 TESTS 73 124 0 2200
11470845 tanzaku C June 6, 2015, 2:50 p.m. OK Java 8 TESTS 73 124 0 2200
11464695 hama-du C June 6, 2015, 1:48 p.m. OK Java 8 TESTS 73 124 0 2200
12798111 SabuwalaMustafa C Sept. 1, 2015, 7:06 a.m. OK Java 8 TESTS 73 140 0 2200
11496029 niyaznigmatul C June 8, 2015, 9:42 a.m. OK Java 8 TESTS 73 140 0 2200
61244041 ISSAM_LAKOUAM C Sept. 24, 2019, 9:51 p.m. OK Java 8 TESTS 73 155 0 2200
11511502 maradonah C June 9, 2015, 2:53 p.m. OK Java 8 TESTS 73 155 0 2200
11479776 akshay_miterani C June 6, 2015, 10:31 p.m. OK Java 8 TESTS 73 155 0 2200
11476565 vadimmm C June 6, 2015, 4:18 p.m. OK Java 8 TESTS 73 155 0 2200
12002720 usingtc C July 11, 2015, 12:10 a.m. OK JavaScript TESTS 73 109 16486400 2200
11485139 og.kostya C June 7, 2015, 10:24 a.m. OK MS C# TESTS 73 77 204800 2200
11482132 4egod C June 7, 2015, 6:11 a.m. OK MS C# TESTS 73 109 15257600 2200
11476310 hokmund C June 6, 2015, 4:12 p.m. OK MS C# TESTS 73 109 15257600 2200
11476051 azukun C June 6, 2015, 4:08 p.m. OK MS C# TESTS 73 109 26521600 2200
11482801 4egod C June 7, 2015, 7:19 a.m. OK MS C# TESTS 73 124 15257600 2200
11482186 4egod C June 7, 2015, 6:18 a.m. OK MS C# TESTS 73 124 15257600 2200
11478645 Quercitron C June 6, 2015, 7:36 p.m. OK MS C# TESTS 73 124 17715200 2200
12033388 Boykooo C July 13, 2015, 8:36 p.m. OK MS C# TESTS 73 171 15257600 2200
20828409 rkm0959 C Sept. 23, 2016, 12:47 a.m. OK MS C++ TESTS 73 46 0 2200
14098762 TillEnd C Nov. 6, 2015, 3:29 a.m. OK MS C++ TESTS 73 46 0 2200
12092863 vjudge4 C July 17, 2015, 8:04 a.m. OK MS C++ TESTS 73 46 0 2200
11807835 iamexist C June 27, 2015, 6:18 p.m. OK MS C++ TESTS 73 46 0 2200
11609636 koltakova C June 16, 2015, 4:34 p.m. OK MS C++ TESTS 73 46 0 2200
11578051 zhouwenkai C June 14, 2015, 7:16 a.m. OK MS C++ TESTS 73 46 0 2200
11485896 MrKaStep C June 7, 2015, 11:14 a.m. OK MS C++ TESTS 73 46 0 2200
11478164 KhaustovPavel C June 6, 2015, 6:18 p.m. OK MS C++ TESTS 73 46 0 2200
11477507 forest C June 6, 2015, 5:08 p.m. OK MS C++ TESTS 73 46 0 2200
11475933 ft.azadi C June 6, 2015, 4:06 p.m. OK MS C++ TESTS 73 46 0 2200
51919581 BessieTheCow C March 28, 2019, 2:52 a.m. OK MS C++ 2017 TESTS 73 202 0 2200
11469589 alexander.kolesnikoff C June 6, 2015, 2:36 p.m. OK PyPy 2 TESTS 73 139 10752000 2200
19946580 Yash_ C Aug. 18, 2016, 1:04 p.m. OK PyPy 2 TESTS 73 140 32358400 2200
22136937 boombastic chan_chan_man chariot C Nov. 9, 2016, 6:25 p.m. OK PyPy 2 TESTS 73 156 10752000 2200
59882620 llllxxx666888 C Sept. 2, 2019, 6:01 a.m. OK PyPy 3 TESTS 73 311 14233600 2200
18953533 ch_egor C July 7, 2016, 2:41 p.m. OK PyPy 3 TESTS 73 327 12492800 2200
11471817 nwi C June 6, 2015, 3 p.m. OK Python 2 TESTS 73 124 11366400 2200
11687294 nokachi C June 20, 2015, 10:07 p.m. OK Python 2 TESTS 73 156 11161600 2200
11473473 Heisenbug C June 6, 2015, 3:17 p.m. OK Python 2 TESTS 73 156 11161600 2200
12569916 Lei_Xufei C Aug. 17, 2015, 4:31 a.m. OK Python 2 TESTS 73 171 10444800 2200
11486891 Lillard C June 7, 2015, 12:22 p.m. OK Python 2 TESTS 73 171 10444800 2200
11515551 Johny_ C June 9, 2015, 9:57 p.m. OK Python 2 TESTS 73 171 10649600 2200
11933450 iLikeCoding C July 5, 2015, 9:54 a.m. OK Python 2 TESTS 73 187 10547200 2200
11477460 TokuchiToa C June 6, 2015, 5:05 p.m. OK Python 2 TESTS 73 187 11161600 2200
11477820 jessica1338 C June 6, 2015, 5:37 p.m. OK Python 2 TESTS 73 187 11264000 2200
11477269 _tli C June 6, 2015, 4:49 p.m. OK Python 2 TESTS 73 187 11264000 2200
31928059 yugle7 C Oct. 31, 2017, 4:55 p.m. OK Python 3 TESTS 73 140 11673600 2200
11489733 poikniok C June 7, 2015, 4:09 p.m. OK Python 3 TESTS 73 140 14643200 2200
35887468 ______u______ C March 3, 2018, 2:06 p.m. OK Python 3 TESTS 73 140 16384000 2200
35887233 ______n______ C March 3, 2018, 2 p.m. OK Python 3 TESTS 73 140 16384000 2200
35886353 _____k_____ C March 3, 2018, 1:44 p.m. OK Python 3 TESTS 73 140 16384000 2200
35886165 _____i_____ C March 3, 2018, 1:42 p.m. OK Python 3 TESTS 73 140 16384000 2200
35875129 ______h______ C March 3, 2018, 8:09 a.m. OK Python 3 TESTS 73 140 16384000 2200
35874888 ______k______ C March 3, 2018, 8:03 a.m. OK Python 3 TESTS 73 140 16384000 2200
35874426 ______i______ C March 3, 2018, 7:51 a.m. OK Python 3 TESTS 73 140 16384000 2200
35872680 ______M______ C March 3, 2018, 7:16 a.m. OK Python 3 TESTS 73 140 16384000 2200
11477839 limed C June 6, 2015, 5:39 p.m. OK Scala TESTS 73 295 2867200 2200

remove filters

Back to search problems