MemSQL Start[c]UP 3.0 - Round 1

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
859 MemSQL Start[c]UP 3.0 - Round 1 FINISHED False 9000 231942324 Sept. 16, 2017, 5:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5494 ) C Pie Rules PROGRAMMING dp games 1500

B'You may have heard of the pie rule before. It states that if two people wish to fairly share a slice of pie, one person should cut the slice in half, and the other person should choose who gets which slice. Alice and Bob have many slices of pie, and rather than cutting the slices in half, each individual slice will be eaten by just one person. The way Alice and Bob decide who eats each slice is as follows. First, the order in which the pies are to be handed out is decided. There is a special token called the "decider" token, initially held by Bob. Until all the pie is handed out, whoever has the decider token will give the next slice of pie to one of the participants, and the decider token to the other participant. They continue until no slices of pie are left. All of the slices are of excellent quality, so each participant obviously wants to maximize the total amount of pie they get to eat. Assuming both players make their decisions optimally, how much pie will each participant receive? Input will begin with an integer N (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89N xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8950), the number of slices of pie. Following this is a line with N integers indicating the sizes of the slices (each between 1 and 100000, inclusive), in the order in which they must be handed out. Print two integers. First, the sum of the sizes of slices eaten by Alice, then the sum of the sizes of the slices eaten by Bob, assuming both players make their decisions optimally. In the first example, Bob takes the size 141 slice for himself and gives the decider token to Alice. Then Alice gives the size 592 slice to Bob and keeps the decider token for herself, so that she can then give the size 653 slice to herself. '...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
49351759 edimundos C Feb. 2, 2019, 8:53 a.m. OK Clang++17 Diagnostics TESTS 70 61 0 1500
30693363 fluffyowl C Sept. 25, 2017, 1:48 a.m. OK D TESTS 70 30 0 1500
30397739 ruban C Sept. 16, 2017, 6:45 p.m. OK Delphi TESTS 70 15 4812800 1500
30406078 MrLolthe1st C Sept. 16, 2017, 9:39 p.m. OK FPC TESTS 70 15 102400 1500
30394407 heklo C Sept. 16, 2017, 6:03 p.m. OK FPC TESTS 70 15 102400 1500
30396041 farizazmip C Sept. 16, 2017, 6:20 p.m. OK FPC TESTS 70 15 20172800 1500
30394950 biltharesatyendra C Sept. 16, 2017, 6:09 p.m. OK GNU C TESTS 70 15 0 1500
30502086 lazar0 C Sept. 19, 2017, 3:02 p.m. OK GNU C TESTS 70 15 0 1500
30400671 vaibhavb C Sept. 16, 2017, 7:31 p.m. OK GNU C TESTS 70 15 0 1500
30399866 aniket.shrimal C Sept. 16, 2017, 7:21 p.m. OK GNU C TESTS 70 15 0 1500
30399559 mehthab C Sept. 16, 2017, 7:15 p.m. OK GNU C TESTS 70 15 0 1500
30398500 idontknowanything C Sept. 16, 2017, 6:56 p.m. OK GNU C TESTS 70 15 0 1500
30396882 w4ynebbcola C Sept. 16, 2017, 6:32 p.m. OK GNU C TESTS 70 15 0 1500
35460998 Hello_W0rld C Feb. 19, 2018, 3:21 a.m. OK GNU C TESTS 70 15 1843200 1500
30398205 codemart786 C Sept. 16, 2017, 6:52 p.m. OK GNU C TESTS 70 30 0 1500
30411037 deep529 C Sept. 17, 2017, 7:03 a.m. OK GNU C TESTS 70 31 0 1500
32188211 imrookie C Nov. 10, 2017, 7:38 a.m. OK GNU C++ TESTS 70 15 0 1500
32135733 vjudge5 C Nov. 8, 2017, 9:25 a.m. OK GNU C++ TESTS 70 15 0 1500
32134219 llpeace C Nov. 8, 2017, 5:46 a.m. OK GNU C++ TESTS 70 15 0 1500
32134193 vjudge1 C Nov. 8, 2017, 5:41 a.m. OK GNU C++ TESTS 70 15 0 1500
32108880 vjudge3 C Nov. 7, 2017, 2:54 a.m. OK GNU C++ TESTS 70 15 0 1500
32033722 a2357 C Nov. 3, 2017, 6:29 p.m. OK GNU C++ TESTS 70 15 0 1500
31995610 ququuy C Nov. 3, 2017, 12:55 a.m. OK GNU C++ TESTS 70 15 0 1500
31982321 pigofzhou C Nov. 2, 2017, 1:56 p.m. OK GNU C++ TESTS 70 15 0 1500
31953781 TheGod123 C Nov. 1, 2017, 2:41 p.m. OK GNU C++ TESTS 70 15 0 1500
31847203 keshavgoyal9697 C Oct. 28, 2017, 6:05 p.m. OK GNU C++ TESTS 70 15 0 1500
65900647 sq_wishAC C Nov. 28, 2019, 8:35 a.m. OK GNU C11 TESTS 70 31 0 1500
65035311 vjudge3 C Nov. 15, 2019, 11:25 a.m. OK GNU C11 TESTS 70 31 0 1500
56075144 Shadow_Pikachu C June 26, 2019, 12:27 p.m. OK GNU C11 TESTS 70 31 0 1500
65538920 vjudge4 C Nov. 22, 2019, 3:16 p.m. OK GNU C11 TESTS 70 31 1228800 1500
65538826 luogu_bot3 C Nov. 22, 2019, 3:14 p.m. OK GNU C11 TESTS 70 31 1228800 1500
32554759 Krosh C Nov. 22, 2017, 3:13 p.m. OK GNU C++11 TESTS 70 15 0 1500
32554623 alirezabgi C Nov. 22, 2017, 3:08 p.m. OK GNU C++11 TESTS 70 15 0 1500
32369781 Apurbo C Nov. 17, 2017, 5:12 a.m. OK GNU C++11 TESTS 70 15 0 1500
32360091 not_surrender C Nov. 16, 2017, 4:09 p.m. OK GNU C++11 TESTS 70 15 0 1500
32312226 1627405131_ws C Nov. 14, 2017, 1:06 p.m. OK GNU C++11 TESTS 70 15 0 1500
32188516 NihilistPilgrim C Nov. 10, 2017, 7:56 a.m. OK GNU C++11 TESTS 70 15 0 1500
32147745 abdelhadi88 C Nov. 8, 2017, 10:21 p.m. OK GNU C++11 TESTS 70 15 0 1500
31880041 ViniciusR C Oct. 30, 2017, 2:27 a.m. OK GNU C++11 TESTS 70 15 0 1500
31870027 ishan00 C Oct. 29, 2017, 2:49 p.m. OK GNU C++11 TESTS 70 15 0 1500
31867874 YazanZk C Oct. 29, 2017, 1:24 p.m. OK GNU C++11 TESTS 70 15 0 1500
32280194 krv76 C Nov. 13, 2017, 9:13 a.m. OK GNU C++14 TESTS 70 15 0 1500
32196411 marshal4world C Nov. 10, 2017, 1:29 p.m. OK GNU C++14 TESTS 70 15 0 1500
32338585 igzi C Nov. 15, 2017, 5:23 p.m. OK GNU C++14 TESTS 70 15 0 1500
32196030 marshal4world C Nov. 10, 2017, 1:14 p.m. OK GNU C++14 TESTS 70 15 0 1500
60730137 Ada.Grad.Shil C Sept. 17, 2019, 3:23 p.m. OK GNU C++14 TESTS 70 15 0 1500
32358032 twangal C Nov. 16, 2017, 2:37 p.m. OK GNU C++14 TESTS 70 15 0 1500
32419316 manhphamnguyen C Nov. 18, 2017, 3:31 a.m. OK GNU C++14 TESTS 70 15 0 1500
32525267 Random_Place C Nov. 21, 2017, 12:36 p.m. OK GNU C++14 TESTS 70 15 0 1500
32534385 akuda C Nov. 21, 2017, 7:30 p.m. OK GNU C++14 TESTS 70 15 0 1500
32189816 Iskodor C Nov. 10, 2017, 9:08 a.m. OK GNU C++14 TESTS 70 15 0 1500
35150084 yassin_ C Feb. 11, 2018, 10:32 a.m. OK GNU C++17 TESTS 70 15 1945600 1500
55307298 alidadar7676 C June 8, 2019, 3:18 p.m. OK GNU C++17 TESTS 70 30 0 1500
68355493 gaddopur_coder C Jan. 7, 2020, 11:53 a.m. OK GNU C++17 TESTS 70 30 0 1500
64782798 _lucifer_ C Nov. 13, 2019, 7:57 a.m. OK GNU C++17 TESTS 70 30 0 1500
63965157 xicarik C Nov. 1, 2019, 6:53 a.m. OK GNU C++17 TESTS 70 30 0 1500
61259739 vjudge4 C Sept. 25, 2019, 11:17 a.m. OK GNU C++17 TESTS 70 30 0 1500
58307141 tryhard C Aug. 4, 2019, 7:56 p.m. OK GNU C++17 TESTS 70 30 0 1500
57911505 HyperBeast C July 28, 2019, 8:34 p.m. OK GNU C++17 TESTS 70 30 0 1500
56474569 fakeaccc C July 3, 2019, 12:36 p.m. OK GNU C++17 TESTS 70 30 0 1500
52589566 Princ_iple C April 11, 2019, 4:19 a.m. OK GNU C++17 TESTS 70 30 0 1500
38071903 Thelias C May 9, 2018, 12:58 p.m. OK GNU C++17 Diagnostics TESTS 70 1029 99328000 1500
30396228 Martynas C Sept. 16, 2017, 6:22 p.m. OK Go TESTS 70 15 18022400 1500
31163112 Low_power C Oct. 9, 2017, 9:08 a.m. OK Go TESTS 70 15 18124800 1500
30498452 mishagam C Sept. 19, 2017, 1:04 p.m. OK Go TESTS 70 15 18124800 1500
30405770 ak464tnok C Sept. 16, 2017, 9:19 p.m. OK Haskell TESTS 70 15 8499200 1500
69604461 cribabby C Jan. 27, 2020, 9:10 a.m. OK Java 11 TESTS 70 202 0 1500
69784864 ashanksingh1997 C Jan. 29, 2020, 5:01 p.m. OK Java 11 TESTS 70 218 0 1500
30500336 I_Need_Alex_R_Coleman C Sept. 19, 2017, 2 p.m. OK Java 8 TESTS 70 109 0 1500
67627930 GiantTornado C Dec. 26, 2019, 12:08 a.m. OK Java 8 TESTS 70 109 0 1500
61846147 saurabhs1206 C Oct. 4, 2019, 11:22 a.m. OK Java 8 TESTS 70 109 0 1500
46455886 ZeyadKhattab C Dec. 1, 2018, 6:38 p.m. OK Java 8 TESTS 70 109 0 1500
45488024 mattzhang C Nov. 9, 2018, 5:52 p.m. OK Java 8 TESTS 70 109 0 1500
45486022 Ninsta22 C Nov. 9, 2018, 5:12 p.m. OK Java 8 TESTS 70 109 0 1500
30765136 MaddyThakker C Sept. 27, 2017, 12:28 a.m. OK Java 8 TESTS 70 109 0 1500
30761281 Musin C Sept. 26, 2017, 7:25 p.m. OK Java 8 TESTS 70 109 0 1500
30691281 tafit3 C Sept. 24, 2017, 9:52 p.m. OK Java 8 TESTS 70 109 0 1500
30684624 alibaba C Sept. 24, 2017, 4:42 p.m. OK Java 8 TESTS 70 109 0 1500
30597745 servina86 C Sept. 21, 2017, 7:06 p.m. OK Kotlin TESTS 70 140 0 1500
30393590 dened C Sept. 16, 2017, 5:57 p.m. OK Kotlin TESTS 70 140 409600 1500
30409909 og.kostya C Sept. 17, 2017, 5:23 a.m. OK MS C# TESTS 70 46 102400 1500
30399742 thetansquared C Sept. 16, 2017, 7:19 p.m. OK MS C# TESTS 70 46 102400 1500
30394163 leign C Sept. 16, 2017, 6:01 p.m. OK MS C# TESTS 70 61 204800 1500
30403564 lionvs13 C Sept. 16, 2017, 8 p.m. OK MS C# TESTS 70 62 2560000 1500
30392818 azukun C Sept. 16, 2017, 5:52 p.m. OK MS C# TESTS 70 62 2560000 1500
30458587 fr0st C Sept. 18, 2017, 8:38 a.m. OK MS C# TESTS 70 62 11776000 1500
30391909 fiver C Sept. 16, 2017, 5:47 p.m. OK MS C# TESTS 70 78 70041600 1500
30393572 Oleg_Smirnov C Sept. 16, 2017, 5:57 p.m. OK MS C++ TESTS 70 15 0 1500
30491462 kurs C Sept. 19, 2017, 8:25 a.m. OK MS C++ TESTS 70 15 204800 1500
30408337 mostafa_9a7c2 C Sept. 17, 2017, 2:18 a.m. OK MS C++ TESTS 70 15 204800 1500
30408286 mostafa_9a7c2 C Sept. 17, 2017, 2:12 a.m. OK MS C++ TESTS 70 15 204800 1500
30408262 mostafa_9a7c2 C Sept. 17, 2017, 2:09 a.m. OK MS C++ TESTS 70 15 204800 1500
30398619 Loremon C Sept. 16, 2017, 6:59 p.m. OK MS C++ TESTS 70 15 204800 1500
30398594 claus_spb C Sept. 16, 2017, 6:58 p.m. OK MS C++ TESTS 70 15 204800 1500
30396354 Pavs C Sept. 16, 2017, 6:24 p.m. OK MS C++ TESTS 70 15 204800 1500
30396075 dzhulgakov C Sept. 16, 2017, 6:20 p.m. OK MS C++ TESTS 70 15 204800 1500
30396035 CuriOusQuOkka C Sept. 16, 2017, 6:20 p.m. OK MS C++ TESTS 70 15 204800 1500
65577410 vjudge4 C Nov. 23, 2019, 9:51 a.m. OK MS C++ 2017 TESTS 70 31 0 1500
65562079 vjudge1 C Nov. 23, 2019, 3:36 a.m. OK MS C++ 2017 TESTS 70 31 0 1500
62669310 YHHxBULIATANIA C Oct. 16, 2019, 9:07 a.m. OK MS C++ 2017 TESTS 70 31 0 1500
59549805 vjudge3 C Aug. 27, 2019, 1:58 a.m. OK MS C++ 2017 TESTS 70 31 0 1500
57629549 pmitkov C July 24, 2019, 8:17 a.m. OK MS C++ 2017 TESTS 70 31 0 1500
55086515 index_ C June 4, 2019, 12:46 p.m. OK MS C++ 2017 TESTS 70 31 0 1500
49825860 Gladius_Smerch C Feb. 12, 2019, 11:36 a.m. OK MS C++ 2017 TESTS 70 31 0 1500
66583964 Mad112233 C Dec. 10, 2019, 10:28 a.m. OK MS C++ 2017 TESTS 70 31 307200 1500
65907619 vjudge4 C Nov. 28, 2019, 11:38 a.m. OK MS C++ 2017 TESTS 70 31 307200 1500
63235039 vjudge2 C Oct. 23, 2019, 12:03 p.m. OK MS C++ 2017 TESTS 70 31 409600 1500
30406023 rsFalse C Sept. 16, 2017, 9:36 p.m. OK Perl TESTS 70 31 0 1500
30405937 rsFalse C Sept. 16, 2017, 9:30 p.m. OK Perl TESTS 70 31 0 1500
30401991 rsFalse C Sept. 16, 2017, 7:44 p.m. OK Perl TESTS 70 46 0 1500
30396330 Wmson C Sept. 16, 2017, 6:24 p.m. OK PyPy 2 TESTS 70 62 0 1500
31909028 CyberZHG C Oct. 31, 2017, 2:10 a.m. OK PyPy 2 TESTS 70 77 0 1500
30396507 godmar C Sept. 16, 2017, 6:26 p.m. OK PyPy 2 TESTS 70 77 0 1500
30394849 sragavan C Sept. 16, 2017, 6:08 p.m. OK PyPy 2 TESTS 70 77 0 1500
30393761 alexwice C Sept. 16, 2017, 5:58 p.m. OK PyPy 2 TESTS 70 77 0 1500
30392495 masonsbro C Sept. 16, 2017, 5:50 p.m. OK PyPy 2 TESTS 70 77 0 1500
30792877 nealzane C Sept. 28, 2017, 1:38 a.m. OK PyPy 2 TESTS 70 78 0 1500
30544186 cchao C Sept. 20, 2017, 12:10 p.m. OK PyPy 2 TESTS 70 93 0 1500
45576962 raven_47 C Nov. 11, 2018, 9:29 p.m. OK PyPy 2 TESTS 70 124 0 1500
30393102 Giove C Sept. 16, 2017, 5:53 p.m. OK PyPy 2 TESTS 70 124 4710400 1500
31043354 DSRub C Oct. 5, 2017, 5:56 p.m. OK PyPy 3 TESTS 70 108 307200 1500
30768413 Marii C Sept. 27, 2017, 5:43 a.m. OK PyPy 3 TESTS 70 108 307200 1500
47783909 H4Wk3ye C Dec. 31, 2018, 9:38 a.m. OK PyPy 3 TESTS 70 124 0 1500
47547197 yellowflash C Dec. 27, 2018, 10:52 a.m. OK PyPy 3 TESTS 70 124 0 1500
30395452 Ferume C Sept. 16, 2017, 6:14 p.m. OK PyPy 3 TESTS 70 124 307200 1500
57335743 codeboy5 C July 19, 2019, 4 p.m. OK PyPy 3 TESTS 70 140 0 1500
54454915 hamed98 C May 21, 2019, 3:18 p.m. OK PyPy 3 TESTS 70 140 0 1500
46237199 homoeconomicus C Nov. 26, 2018, 4:25 a.m. OK PyPy 3 TESTS 70 140 0 1500
39866159 Ali_Pi C July 2, 2018, 11:20 a.m. OK PyPy 3 TESTS 70 140 716800 1500
62770774 Leendertz C Oct. 17, 2019, 10:12 a.m. OK PyPy 3 TESTS 70 155 0 1500
31285043 belkka C Oct. 13, 2017, 9:24 p.m. OK Python 2 TESTS 70 46 0 1500
30396266 melyshu C Sept. 16, 2017, 6:23 p.m. OK Python 2 TESTS 70 46 0 1500
30395142 wangkan2001 C Sept. 16, 2017, 6:10 p.m. OK Python 2 TESTS 70 46 0 1500
30456621 lizaigaoge550 C Sept. 18, 2017, 6:33 a.m. OK Python 2 TESTS 70 46 4710400 1500
30455877 lizaigaoge550 C Sept. 18, 2017, 5:42 a.m. OK Python 2 TESTS 70 46 4710400 1500
30395760 dbhrockzz C Sept. 16, 2017, 6:17 p.m. OK Python 2 TESTS 70 61 0 1500
31910668 StinsonOvO C Oct. 31, 2017, 4:56 a.m. OK Python 2 TESTS 70 62 0 1500
31197844 narender_khola C Oct. 10, 2017, 4:34 p.m. OK Python 2 TESTS 70 62 0 1500
30931004 xlk C Oct. 2, 2017, 1:06 a.m. OK Python 2 TESTS 70 62 0 1500
30866381 EON_KID C Sept. 30, 2017, 12:30 p.m. OK Python 2 TESTS 70 62 0 1500
32037617 pernay C Nov. 3, 2017, 9:34 p.m. OK Python 3 TESTS 70 62 0 1500
31270781 Obi_Wan C Oct. 13, 2017, 10:06 a.m. OK Python 3 TESTS 70 62 0 1500
31267616 avalya7 C Oct. 13, 2017, 7:33 a.m. OK Python 3 TESTS 70 62 0 1500
30909090 Zombarian C Oct. 1, 2017, 12:49 p.m. OK Python 3 TESTS 70 62 0 1500
30869281 patrikos C Sept. 30, 2017, 2:35 p.m. OK Python 3 TESTS 70 62 0 1500
30863142 2390_ C Sept. 30, 2017, 11:12 a.m. OK Python 3 TESTS 70 62 0 1500
30808292 shmabulock C Sept. 28, 2017, 2:50 p.m. OK Python 3 TESTS 70 62 0 1500
30761591 yugle7 C Sept. 26, 2017, 7:40 p.m. OK Python 3 TESTS 70 62 0 1500
30756011 miroqurcika C Sept. 26, 2017, 3:57 p.m. OK Python 3 TESTS 70 62 0 1500
30728534 aliheidary1989 C Sept. 25, 2017, 2:23 p.m. OK Python 3 TESTS 70 62 0 1500
30421237 ShJ C Sept. 17, 2017, 12:34 p.m. OK Ruby TESTS 70 92 0 1500
30420821 ShJ C Sept. 17, 2017, 12:21 p.m. OK Ruby TESTS 70 93 204800 1500
30401823 OgieKako C Sept. 16, 2017, 7:41 p.m. OK Rust TESTS 70 15 102400 1500
30402085 voxl C Sept. 16, 2017, 7:46 p.m. OK Rust TESTS 70 30 102400 1500

remove filters

Back to search problems