Bubble Cup 8 - Finals [Online Mirror]

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
575 Bubble Cup 8 - Finals [Online Mirror] FINISHED False 18000 296085604 Sept. 6, 2015, 8 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1728 ) H Bots PROGRAMMING combinatorics number theory 1800

B"Sasha and Ira are two best friends. But they aren xe2 x80 x99t just friends, they are software engineers and experts in artificial intelligence. They are developing an algorithm for two bots playing a two-player game. The game is cooperative and turn based. In each turn, one of the players makes a move (it doesn xe2 x80 x99t matter which player, it's possible that players turns do not alternate). Algorithm for bots that Sasha and Ira are developing works by keeping track of the state the game is in. Each time either bot makes a move, the state changes. And, since the game is very dynamic, it will never go back to the state it was already in at any point in the past. Sasha and Ira are perfectionists and want their algorithm to have an optimal winning strategy. They have noticed that in the optimal winning strategy, both bots make exactly N moves each. But, in order to find the optimal strategy, their algorithm needs to analyze all possible states of the game (they haven xe2 x80 x99t learned about alpha-beta pruning yet) and pick the best sequence of moves. They are worried about the efficiency of their algorithm and are wondering what is the total number of states of the game that need to be analyzed? The first and only line contains integer N. Output should contain a single integer xe2 x80 x93 number of possible states modulo 109 xe2 x80 x89+ xe2 x80 x897. Start: Game is in state A. Overall, there are 19 possible states of the game their algorithm needs to analyze. "...

Tutorials

Bubble Cup finals 2015 Results and Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
12878543 xszxxc H Sept. 7, 2015, 12:22 a.m. OK FPC TESTS 20 62 16076800 1800
12869062 xszxxc H Sept. 6, 2015, 11:29 a.m. OK FPC TESTS 20 77 16076800 1800
12879260 xszxxc H Sept. 7, 2015, 2:56 a.m. OK FPC TESTS 20 78 7987200 1800
12878743 xszxxc H Sept. 7, 2015, 1:23 a.m. OK FPC TESTS 20 78 7987200 1800
12972077 Valerich H Sept. 12, 2015, 11:45 a.m. OK FPC TESTS 20 171 36044800 1800
12862191 popoffka Alex_2oo8 JustN H Sept. 6, 2015, 8:20 a.m. OK FPC TESTS 20 436 72192000 1800
12866632 thanhtung29497 H Sept. 6, 2015, 10:12 a.m. OK FPC TESTS 20 623 0 1800
12869839 ThereIsNoSalvationForMe H Sept. 6, 2015, 11:55 a.m. OK FPC TESTS 20 623 32051200 1800
12872784 igdor99 H Sept. 6, 2015, 1:27 p.m. OK FPC TESTS 20 1232 17920000 1800
12872762 Vladik H Sept. 6, 2015, 1:26 p.m. OK FPC TESTS 20 1248 17920000 1800
12876855 sgtlaugh H Sept. 6, 2015, 7:47 p.m. OK GNU C TESTS 20 46 16076800 1800
12866551 sgtlaugh H Sept. 6, 2015, 10:09 a.m. OK GNU C TESTS 20 46 16076800 1800
16327430 vjudge1 H Feb. 25, 2016, 11:37 a.m. OK GNU C++ TESTS 20 30 0 1800
12867070 sidrakesh sacchin19 manavs19 H Sept. 6, 2015, 10:25 a.m. OK GNU C++ TESTS 20 30 0 1800
12863797 arsijo iSlava H Sept. 6, 2015, 8:53 a.m. OK GNU C++ TESTS 20 30 1945600 1800
13833373 130705009 H Oct. 25, 2015, 4:37 a.m. OK GNU C++ TESTS 20 31 0 1800
16325285 vjudge2 H Feb. 25, 2016, 11:15 a.m. OK GNU C++ TESTS 20 31 0 1800
13136262 nobystander H Sept. 22, 2015, 6:50 a.m. OK GNU C++ TESTS 20 31 0 1800
13136250 nobystander H Sept. 22, 2015, 6:49 a.m. OK GNU C++ TESTS 20 31 0 1800
12955625 vjudge2 H Sept. 11, 2015, 8:56 a.m. OK GNU C++ TESTS 20 31 0 1800
12949460 jagadeesh H Sept. 10, 2015, 10:09 p.m. OK GNU C++ TESTS 20 31 0 1800
12892159 vjudge4 H Sept. 8, 2015, 4:23 a.m. OK GNU C++ TESTS 20 31 0 1800
12881445 cielavenir H Sept. 7, 2015, 8:11 a.m. OK GNU C11 TESTS 20 217 48128000 1800
18569578 sincerity H June 18, 2016, 2:23 a.m. OK GNU C++11 TESTS 20 15 0 1800
12898487 DBwater H Sept. 8, 2015, 1:52 p.m. OK GNU C++11 TESTS 20 15 0 1800
40986170 ReaLNero1 H July 30, 2018, 8:23 p.m. OK GNU C++11 TESTS 20 30 0 1800
12863456 Philae RarebitFiend TimonKnigge H Sept. 6, 2015, 8:45 a.m. OK GNU C++11 TESTS 20 30 0 1800
12873936 _h_ H Sept. 6, 2015, 2:51 p.m. OK GNU C++11 TESTS 20 31 0 1800
12875726 ilshatus H Sept. 6, 2015, 5:49 p.m. OK GNU C++11 TESTS 20 31 0 1800
12874437 PyxRU H Sept. 6, 2015, 3:35 p.m. OK GNU C++11 TESTS 20 31 0 1800
12871474 uhateme H Sept. 6, 2015, 12:45 p.m. OK GNU C++11 TESTS 20 31 0 1800
12868774 Constructor7 H Sept. 6, 2015, 11:21 a.m. OK GNU C++11 TESTS 20 31 0 1800
12862746 -XraY- H Sept. 6, 2015, 8:30 a.m. OK GNU C++11 TESTS 20 31 0 1800
20447880 sule45 H Sept. 8, 2016, 12:56 a.m. OK GNU C++14 TESTS 20 15 0 1800
28489115 vjudge3 H July 13, 2017, 4:30 a.m. OK GNU C++14 TESTS 20 15 1945600 1800
28489964 vjudge1 H July 13, 2017, 5:07 a.m. OK GNU C++14 TESTS 20 15 1945600 1800
25060208 Sandmann H Feb. 26, 2017, 4:44 p.m. OK GNU C++14 TESTS 20 30 1945600 1800
25498619 daminho H March 15, 2017, 12:56 p.m. OK GNU C++14 TESTS 20 30 1945600 1800
40495557 tianmaoxia H July 18, 2018, 2:04 a.m. OK GNU C++14 TESTS 20 31 0 1800
34279736 libra9z H Jan. 18, 2018, 3:25 p.m. OK GNU C++14 TESTS 20 31 1843200 1800
55644246 Sprdalo H June 16, 2019, 11:40 a.m. OK GNU C++14 TESTS 20 46 0 1800
45128238 _Solenya_ H Oct. 31, 2018, 9:04 a.m. OK GNU C++14 TESTS 20 46 0 1800
62165291 The-OneaboveAll H Oct. 8, 2019, 7:54 p.m. OK GNU C++14 TESTS 20 46 0 1800
66263561 ruo H Dec. 4, 2019, 9:25 a.m. OK GNU C++17 TESTS 20 46 0 1800
51210887 webeseit H March 12, 2019, 7:51 a.m. OK GNU C++17 TESTS 20 46 0 1800
69671383 chirag7145 H Jan. 28, 2020, 1:06 p.m. OK GNU C++17 TESTS 20 46 16076800 1800
44387572 suibaka H Oct. 16, 2018, 6:42 a.m. OK GNU C++17 TESTS 20 46 24268800 1800
60923647 Emiliatann H Sept. 20, 2019, 11:33 a.m. OK GNU C++17 TESTS 20 62 7987200 1800
54720296 tomjobs H May 27, 2019, 5:03 p.m. OK GNU C++17 TESTS 20 62 16076800 1800
46910824 Error_404 H Dec. 11, 2018, 4:50 p.m. OK GNU C++17 TESTS 20 77 32051200 1800
56041370 khaled.farouk_2 H June 25, 2019, 2:28 p.m. OK GNU C++17 TESTS 20 108 24064000 1800
49550415 xyw5vplus1 H Feb. 7, 2019, 5:21 a.m. OK GNU C++17 TESTS 20 109 24064000 1800
58475513 yuhta H Aug. 9, 2019, 2:54 a.m. OK GNU C++17 TESTS 20 139 0 1800
12862922 khadaev H Sept. 6, 2015, 8:33 a.m. OK Haskell TESTS 20 343 35942400 1800
12867858 mikcorer H Sept. 6, 2015, 10:52 a.m. OK Java 7 TESTS 20 109 0 1800
12864204 Hero igorkulev H Sept. 6, 2015, 9:03 a.m. OK Java 7 TESTS 20 124 0 1800
12882588 Guliash H Sept. 7, 2015, 10:06 a.m. OK Java 7 TESTS 20 311 63385600 1800
12867264 sparkyyyy H Sept. 6, 2015, 10:32 a.m. OK Java 7 TESTS 20 327 0 1800
12915391 partizan22 H Sept. 9, 2015, 10:04 p.m. OK Java 7 TESTS 20 467 0 1800
13338279 Phicar H Oct. 2, 2015, 4:12 a.m. OK Java 7 TESTS 20 779 123596800 1800
12867416 cvm H Sept. 6, 2015, 10:38 a.m. OK Java 7 TESTS 20 857 0 1800
13661639 alibaba H Oct. 16, 2015, 9:20 a.m. OK Java 7 TESTS 20 1107 0 1800
12879822 davidarcila93 H Sept. 7, 2015, 4:43 a.m. OK Java 7 TESTS 20 1123 15360000 1800
12869789 poikniok H Sept. 6, 2015, 11:53 a.m. OK Java 8 TESTS 20 124 0 1800
12868457 av_life H Sept. 6, 2015, 11:11 a.m. OK Java 8 TESTS 20 140 0 1800
12862830 dergach Sokolov H Sept. 6, 2015, 8:31 a.m. OK Java 8 TESTS 20 140 0 1800
12864067 alex700 Nebuchadnezzar Demarkok H Sept. 6, 2015, 9 a.m. OK Java 8 TESTS 20 155 0 1800
12864954 Slamur H Sept. 6, 2015, 9:22 a.m. OK Java 8 TESTS 20 155 14540800 1800
12866757 ashish1729 H Sept. 6, 2015, 10:15 a.m. OK Java 8 TESTS 20 171 38809600 1800
12863146 alexey.enkov H Sept. 6, 2015, 8:38 a.m. OK Java 8 TESTS 20 186 0 1800
12874406 ironman7453 H Sept. 6, 2015, 3:32 p.m. OK Java 8 TESTS 20 187 10854400 1800
12874324 ironman7453 H Sept. 6, 2015, 3:24 p.m. OK Java 8 TESTS 20 187 10854400 1800
12864760 tideline k-on.mio skyrim H Sept. 6, 2015, 9:16 a.m. OK Java 8 TESTS 20 202 0 1800
60676795 Spheniscine H Sept. 16, 2019, 12:41 p.m. OK Kotlin TESTS 20 842 7065600 1800
61047431 Spheniscine H Sept. 22, 2019, 5:09 a.m. OK Kotlin TESTS 20 857 7065600 1800
60675984 Spheniscine H Sept. 16, 2019, 12:26 p.m. OK Kotlin TESTS 20 858 7065600 1800
60675657 Spheniscine H Sept. 16, 2019, 12:20 p.m. OK Kotlin TESTS 20 1481 16588800 1800
60675447 Spheniscine H Sept. 16, 2019, 12:16 p.m. OK Kotlin TESTS 20 1481 86630400 1800
12872275 og.kostya H Sept. 6, 2015, 1:04 p.m. OK MS C# TESTS 20 78 204800 1800
12864688 azukun H Sept. 6, 2015, 9:14 a.m. OK MS C# TESTS 20 139 33177600 1800
12874883 camypaper H Sept. 6, 2015, 4:17 p.m. OK MS C# TESTS 20 155 33382400 1800
13484059 leonidvasilyev H Oct. 7, 2015, 8:06 p.m. OK MS C# TESTS 20 1481 204800 1800
12867047 sahadian moreda H Sept. 6, 2015, 10:24 a.m. OK MS C++ TESTS 20 31 0 1800
12865470 katan innok96 H Sept. 6, 2015, 9:37 a.m. OK MS C++ TESTS 20 31 0 1800
12867526 rt-a H Sept. 6, 2015, 10:41 a.m. OK MS C++ TESTS 20 46 0 1800
12864076 temich ShadowGorn H Sept. 6, 2015, 9 a.m. OK MS C++ TESTS 20 46 16076800 1800
12862810 CleRIC NVAL H Sept. 6, 2015, 8:31 a.m. OK MS C++ TESTS 20 46 16076800 1800
12863152 niksmiljkovic H Sept. 6, 2015, 8:38 a.m. OK MS C++ TESTS 20 61 0 1800
12866037 _Elli_ okio KaterinaK H Sept. 6, 2015, 9:53 a.m. OK MS C++ TESTS 20 62 0 1800
12863816 vstrimaitis jDomantas JustasK H Sept. 6, 2015, 8:53 a.m. OK MS C++ TESTS 20 62 15974400 1800
12863588 cs2000 H Sept. 6, 2015, 8:48 a.m. OK MS C++ TESTS 20 62 17817600 1800
12863016 Ancient_mage jk_qq vitux H Sept. 6, 2015, 8:35 a.m. OK MS C++ TESTS 20 77 0 1800
12867766 cchao H Sept. 6, 2015, 10:49 a.m. OK PyPy 2 TESTS 20 265 409600 1800
17551696 Eeyore H April 28, 2016, 9:35 a.m. OK PyPy 2 TESTS 20 390 23347200 1800
17551291 Eeyore H April 28, 2016, 8:54 a.m. OK PyPy 2 TESTS 20 405 44953600 1800
35894294 _____k_____ H March 3, 2018, 4:19 p.m. OK PyPy 2 TESTS 20 733 142131200 1800
35889175 ______n______ H March 3, 2018, 2:36 p.m. OK PyPy 2 TESTS 20 733 142131200 1800
35888934 ______u______ H March 3, 2018, 2:31 p.m. OK PyPy 2 TESTS 20 733 142131200 1800
35887555 _____i_____ H March 3, 2018, 2:06 p.m. OK PyPy 2 TESTS 20 733 142131200 1800
35884039 ______h______ H March 3, 2018, 1:03 p.m. OK PyPy 2 TESTS 20 733 142131200 1800
35883862 ______k______ H March 3, 2018, 1:03 p.m. OK PyPy 2 TESTS 20 733 142131200 1800
35882813 ______i______ H March 3, 2018, 12:44 p.m. OK PyPy 2 TESTS 20 733 142131200 1800
12917549 XelMed H Sept. 10, 2015, 3:52 a.m. OK PyPy 3 TESTS 20 217 409600 1800
12883133 CountZero H Sept. 7, 2015, 10:58 a.m. OK PyPy 3 TESTS 20 234 307200 1800
12917331 XelMed H Sept. 10, 2015, 3:17 a.m. OK PyPy 3 TESTS 20 842 149094400 1800
12863508 nwi H Sept. 6, 2015, 8:46 a.m. OK Python 2 TESTS 20 780 41369600 1800
12879840 allanyin H Sept. 7, 2015, 4:46 a.m. OK Python 2 TESTS 20 841 0 1800
27232589 BlueHazard_rony H May 20, 2017, 9:31 a.m. OK Python 2 TESTS 20 920 0 1800
12867119 daleks H Sept. 6, 2015, 10:27 a.m. OK Python 2 TESTS 20 966 0 1800
12868811 ManikantanV H Sept. 6, 2015, 11:22 a.m. OK Python 2 TESTS 20 1294 78745600 1800
52955359 Hajj H April 18, 2019, 1:33 p.m. OK Python 3 TESTS 20 654 0 1800
14182980 grothendieck H Nov. 10, 2015, 10:57 a.m. OK Python 3 TESTS 20 763 0 1800
12874642 PyxRU H Sept. 6, 2015, 3:51 p.m. OK Python 3 TESTS 20 779 0 1800
12883130 CountZero H Sept. 7, 2015, 10:58 a.m. OK Python 3 TESTS 20 842 0 1800
12867463 duckladydinh H Sept. 6, 2015, 10:39 a.m. OK Python 3 TESTS 20 1091 0 1800

remove filters

Back to search problems