Codeforces Round 115

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
175 Codeforces Round 115 FINISHED False 10800 403480786 April 14, 2012, 8 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2427 ) A Robot Bicorn Attack PROGRAMMING brute force implementation 1400

B'Vasya plays Robot Bicorn Attack. The game consists of three rounds. For each one a non-negative integer amount of points is given. The result of the game is the sum of obtained points. Vasya has already played three rounds and wrote obtained points one by one (without leading zeros) into the string s. Vasya decided to brag about his achievement to the friends. However, he has forgotten how many points he got for each round. The only thing he remembers is the string s. Help Vasya to find out what is the maximum amount of points he could get. Take into account that Vasya played Robot Bicorn Attack for the first time, so he could not get more than 1000000 (106) points for one round. The only line of input contains non-empty string s obtained by Vasya. The string consists of digits only. The string length does not exceed 30 characters. Print the only number -- the maximum amount of points Vasya could get. If Vasya is wrong and the string could not be obtained according to the rules then output number -1. In the first example the string must be split into numbers 1, 2 and 34. In the second example the string must be split into numbers 90, 0 and 0. In the third example the string is incorrect, because after splitting the string into 3 numbers number 00 or 09 will be obtained, but numbers cannot have leading zeroes.'...

Tutorials

Codeforces Round #115 — editorial F

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
5490327 Fuh A Dec. 22, 2013, 5:02 a.m. OK D TESTS 134 30 0 1400
5605222 mr_justadog A Jan. 2, 2014, 2:58 p.m. OK Delphi TESTS 134 30 102400 1400
1648093 Mosyagin A May 1, 2012, 3:25 p.m. OK Delphi TESTS 134 30 921600 1400
1643949 Spumote A April 29, 2012, 11:12 a.m. OK Delphi TESTS 134 30 921600 1400
1567545 pufff A April 17, 2012, 5:34 p.m. OK Delphi TESTS 134 30 921600 1400
1539021 ZOTAC89 A April 14, 2012, 10 p.m. OK Delphi TESTS 134 30 921600 1400
1537710 demolishka A April 14, 2012, 11:33 a.m. OK Delphi TESTS 134 30 921600 1400
1536342 PAG A April 14, 2012, 10:08 a.m. OK Delphi TESTS 134 30 921600 1400
1532812 ruban A April 14, 2012, 8:23 a.m. OK Delphi TESTS 134 30 921600 1400
1532439 Depool A April 14, 2012, 8:16 a.m. OK Delphi TESTS 134 30 921600 1400
1531987 tourist A April 14, 2012, 8:04 a.m. OK Delphi TESTS 134 30 921600 1400
3199574 SoulSilver A Feb. 26, 2013, 3:57 p.m. OK FPC TESTS 134 15 102400 1400
3111808 Chen_ChaoRui A Feb. 13, 2013, 1:48 p.m. OK FPC TESTS 134 15 102400 1400
26044424 simoncatcity A April 1, 2017, 6:14 a.m. OK FPC TESTS 134 15 1740800 1400
5600856 Erfan.aa A Jan. 1, 2014, 10:03 p.m. OK FPC TESTS 134 30 307200 1400
1626501 Launcelot278 A April 25, 2012, 8:40 a.m. OK FPC TESTS 134 30 1024000 1400
1626473 a0180600 A April 25, 2012, 8:31 a.m. OK FPC TESTS 134 30 1024000 1400
1613956 turkmen A April 22, 2012, 6:15 p.m. OK FPC TESTS 134 30 1024000 1400
1592570 MoRouZ A April 21, 2012, 6:09 a.m. OK FPC TESTS 134 30 1024000 1400
1574540 TNLong A April 19, 2012, 5:25 a.m. OK FPC TESTS 134 30 1024000 1400
1570159 Unreal A April 18, 2012, 8:21 a.m. OK FPC TESTS 134 30 1024000 1400
19514736 vjudge1 A July 30, 2016, 9:27 a.m. OK GNU C TESTS 134 15 0 1400
5647433 CeXtremePlusPlus A Jan. 9, 2014, 8:49 p.m. OK GNU C TESTS 134 30 0 1400
2039185 vjudge1 A Aug. 21, 2012, 1:30 a.m. OK GNU C TESTS 134 30 1433600 1400
2033712 vjudge2 A Aug. 19, 2012, 6:02 a.m. OK GNU C TESTS 134 30 1433600 1400
2031753 20102430128 A Aug. 18, 2012, 1 p.m. OK GNU C TESTS 134 30 1433600 1400
2031732 vjudge3 A Aug. 18, 2012, 12:55 p.m. OK GNU C TESTS 134 30 1433600 1400
2031677 vjudge5 A Aug. 18, 2012, 12:47 p.m. OK GNU C TESTS 134 30 1433600 1400
2031625 vjudge2 A Aug. 18, 2012, 12:40 p.m. OK GNU C TESTS 134 30 1433600 1400
2031554 vjudge4 A Aug. 18, 2012, 12:29 p.m. OK GNU C TESTS 134 30 1433600 1400
2031549 bnuvjudge A Aug. 18, 2012, 12:28 p.m. OK GNU C TESTS 134 30 1433600 1400
27688133 samarthkothari A June 9, 2017, 11:38 a.m. OK GNU C++ TESTS 134 15 0 1400
27443843 vjudge5 A May 30, 2017, 9:06 a.m. OK GNU C++ TESTS 134 15 0 1400
27442454 vjudge1 A May 30, 2017, 7:45 a.m. OK GNU C++ TESTS 134 15 0 1400
27442276 vjudge4 A May 30, 2017, 7:36 a.m. OK GNU C++ TESTS 134 15 0 1400
27442136 vjudge2 A May 30, 2017, 7:27 a.m. OK GNU C++ TESTS 134 15 0 1400
27442037 vjudge4 A May 30, 2017, 7:21 a.m. OK GNU C++ TESTS 134 15 0 1400
19533297 vjudge1 A July 31, 2016, 8:02 a.m. OK GNU C++ TESTS 134 15 0 1400
19532740 vjudge3 A July 31, 2016, 7:34 a.m. OK GNU C++ TESTS 134 15 0 1400
19532707 yangjiayun A July 31, 2016, 7:32 a.m. OK GNU C++ TESTS 134 15 0 1400
19531523 vjudge1 A July 31, 2016, 6:17 a.m. OK GNU C++ TESTS 134 15 0 1400
3667196 miyanaga.saki A May 4, 2013, 7:14 a.m. OK GNU C++0x TESTS 134 15 0 1400
3851145 A_Le_K A June 9, 2013, 3:09 p.m. OK GNU C++0x TESTS 134 15 102400 1400
3648774 maone A April 28, 2013, 3:51 p.m. OK GNU C++0x TESTS 134 15 102400 1400
3286385 amrzohdi A March 10, 2013, 9:17 p.m. OK GNU C++0x TESTS 134 15 102400 1400
3007094 Doxer A Jan. 25, 2013, 9:56 a.m. OK GNU C++0x TESTS 134 15 102400 1400
10305380 Seif A March 16, 2015, 9:18 p.m. OK GNU C++0x TESTS 134 30 0 1400
10171430 AymanZaki A March 6, 2015, 12:23 a.m. OK GNU C++0x TESTS 134 30 0 1400
9871461 Na2a A Feb. 16, 2015, 1:20 p.m. OK GNU C++0x TESTS 134 30 0 1400
8664242 tenshi_kanade A Nov. 11, 2014, 7:14 p.m. OK GNU C++0x TESTS 134 30 0 1400
4535754 harhrayr A Sept. 22, 2013, 9:37 a.m. OK GNU C++0x TESTS 134 30 0 1400
31272484 Elbrolosy A Oct. 13, 2017, 11:29 a.m. OK GNU C++11 TESTS 134 15 0 1400
29890807 .joKer. A Aug. 29, 2017, 4:25 p.m. OK GNU C++11 TESTS 134 15 0 1400
29845921 pr3pony A Aug. 28, 2017, 1:03 p.m. OK GNU C++11 TESTS 134 15 0 1400
29841108 johncreed A Aug. 28, 2017, 8:21 a.m. OK GNU C++11 TESTS 134 15 0 1400
29838921 johncreed A Aug. 28, 2017, 5:24 a.m. OK GNU C++11 TESTS 134 15 0 1400
29687521 Dannywang A Aug. 22, 2017, 3:52 p.m. OK GNU C++11 TESTS 134 15 0 1400
27709650 MaxZubec A June 10, 2017, 4:33 p.m. OK GNU C++11 TESTS 134 15 0 1400
27582134 Pursuit_ A June 5, 2017, 11:52 a.m. OK GNU C++11 TESTS 134 15 0 1400
27445388 vjudge2 A May 30, 2017, 9:54 a.m. OK GNU C++11 TESTS 134 15 0 1400
22585043 Manar_Sultan A Nov. 28, 2016, 8:57 p.m. OK GNU C++11 TESTS 134 15 0 1400
30407411 ahmed_elsayed A Sept. 17, 2017, 12:08 a.m. OK GNU C++14 TESTS 134 15 0 1400
30242233 Suicidal A Sept. 10, 2017, 9:56 a.m. OK GNU C++14 TESTS 134 15 0 1400
29845001 gkevinyen5418 A Aug. 28, 2017, 12:18 p.m. OK GNU C++14 TESTS 134 15 0 1400
29824645 ihave33cm A Aug. 27, 2017, 10:57 a.m. OK GNU C++14 TESTS 134 15 0 1400
29820611 alechuang98 A Aug. 27, 2017, 7:03 a.m. OK GNU C++14 TESTS 134 15 0 1400
29770363 wangyenjen A Aug. 25, 2017, 6:25 a.m. OK GNU C++14 TESTS 134 15 0 1400
29657037 owke A Aug. 21, 2017, 4:05 p.m. OK GNU C++14 TESTS 134 15 0 1400
29656969 kakalan A Aug. 21, 2017, 4:05 p.m. OK GNU C++14 TESTS 134 15 0 1400
27709886 RomanDerkach A June 10, 2017, 4:50 p.m. OK GNU C++14 TESTS 134 15 0 1400
27709392 danya.smelskiy A June 10, 2017, 4:15 p.m. OK GNU C++14 TESTS 134 15 0 1400
35122552 unique_digits A Feb. 10, 2018, 11:42 a.m. OK GNU C++17 TESTS 134 15 1945600 1400
54514425 123n00b123 A May 23, 2019, 9 a.m. OK GNU C++17 TESTS 134 30 0 1400
65161481 vjudge2 A Nov. 16, 2019, 11:33 a.m. OK GNU C++17 TESTS 134 31 0 1400
63727653 anakib1 A Oct. 29, 2019, 1:07 p.m. OK GNU C++17 TESTS 134 31 0 1400
62452066 tnakao A Oct. 13, 2019, 4:44 a.m. OK GNU C++17 TESTS 134 31 0 1400
58999397 landcold7 A Aug. 18, 2019, 1:01 p.m. OK GNU C++17 TESTS 134 31 0 1400
58957491 nongi A Aug. 17, 2019, 1:40 p.m. OK GNU C++17 TESTS 134 31 0 1400
58526927 ivan.v.gerasimov A Aug. 10, 2019, 7:35 a.m. OK GNU C++17 TESTS 134 31 0 1400
55962097 Killer0809 A June 23, 2019, 10:06 a.m. OK GNU C++17 TESTS 134 31 0 1400
54807557 charity A May 29, 2019, 3 p.m. OK GNU C++17 TESTS 134 31 0 1400
5490461 syocy A Dec. 22, 2013, 5:33 a.m. OK Haskell TESTS 134 30 0 1400
1715690 yukim A May 25, 2012, 2:05 p.m. OK Haskell TESTS 134 30 2150400 1400
1630377 DimsFromDergachy A April 27, 2012, 4:05 a.m. OK Haskell TESTS 134 30 2150400 1400
1584578 rayman A April 19, 2012, 1:42 p.m. OK Haskell TESTS 134 30 2150400 1400
1574393 tjwilson A April 19, 2012, 12:20 a.m. OK Haskell TESTS 134 30 2150400 1400
1558083 rexim A April 16, 2012, 3:15 p.m. OK Haskell TESTS 134 30 2150400 1400
1538699 hongletitbe A April 14, 2012, 4:28 p.m. OK Haskell TESTS 134 30 2150400 1400
1536655 ryna4c2e A April 14, 2012, 10:26 a.m. OK Haskell TESTS 134 30 2150400 1400
1532545 bjin A April 14, 2012, 8:17 a.m. OK Haskell TESTS 134 30 2150400 1400
1532401 Hinidu A April 14, 2012, 8:15 a.m. OK Haskell TESTS 134 50 2150400 1400
1567470 knok16 A April 17, 2012, 4:28 p.m. OK Java 6 TESTS 134 80 43110400 1400
1532794 tasyrkin A April 14, 2012, 8:23 a.m. OK Java 6 TESTS 134 80 43110400 1400
1532595 Lakers A April 14, 2012, 8:19 a.m. OK Java 6 TESTS 134 80 43110400 1400
1586179 raviagarwal A April 20, 2012, 2:10 p.m. OK Java 6 TESTS 134 90 43110400 1400
1539521 Azat_Yusupov A April 15, 2012, 9:15 a.m. OK Java 6 TESTS 134 90 43110400 1400
1536271 marque A April 14, 2012, 10:04 a.m. OK Java 6 TESTS 134 90 43110400 1400
1535433 rubbaltherebel A April 14, 2012, 9:28 a.m. OK Java 6 TESTS 134 90 43110400 1400
1535011 fayyaz A April 14, 2012, 9:14 a.m. OK Java 6 TESTS 134 90 43110400 1400
1535006 rajatag12 A April 14, 2012, 9:14 a.m. OK Java 6 TESTS 134 90 43110400 1400
1532897 khanhptnk A April 14, 2012, 8:25 a.m. OK Java 6 TESTS 134 90 43110400 1400
7819129 __TTS__ A Sept. 17, 2014, 2:58 p.m. OK Java 7 TESTS 134 62 0 1400
13356446 veeann A Oct. 3, 2015, 9:34 a.m. OK Java 7 TESTS 134 78 0 1400
11545203 Tamtomus A June 12, 2015, 3:02 p.m. OK Java 7 TESTS 134 78 0 1400
11523905 zCode93 A June 10, 2015, 4:42 p.m. OK Java 7 TESTS 134 78 0 1400
1532230 tanzaku A April 14, 2012, 8:12 a.m. OK Java 7 TESTS 134 90 44851200 1400
1532088 yaro A April 14, 2012, 8:08 a.m. OK Java 7 TESTS 134 90 44851200 1400
1532057 uwi A April 14, 2012, 8:07 a.m. OK Java 7 TESTS 134 90 44851200 1400
12701724 Yoyo2014 A Aug. 25, 2015, 10:40 p.m. OK Java 7 TESTS 134 93 0 1400
12294558 khaled_khattab A July 31, 2015, 5:06 p.m. OK Java 7 TESTS 134 93 0 1400
12123200 karimation A July 20, 2015, 12:30 a.m. OK Java 7 TESTS 134 93 0 1400
12136143 sweiss A July 20, 2015, 7:20 p.m. OK Java 8 TESTS 134 109 0 1400
9795934 anasos A Feb. 11, 2015, 7:08 a.m. OK Java 8 TESTS 134 109 0 1400
26791890 beroul A May 1, 2017, 8:18 p.m. OK Java 8 TESTS 134 109 20582400 1400
21767074 kocko A Oct. 25, 2016, 9:03 a.m. OK Java 8 TESTS 134 124 0 1400
13355166 yona A Oct. 3, 2015, 8:17 a.m. OK Java 8 TESTS 134 124 0 1400
10662597 poikniok A April 12, 2015, 5:03 a.m. OK Java 8 TESTS 134 124 0 1400
10199610 flyman3046 A March 8, 2015, 1:01 a.m. OK Java 8 TESTS 134 124 0 1400
19786772 Amman20 A Aug. 11, 2016, 3:18 p.m. OK Java 8 TESTS 134 124 20480000 1400
37497870 ViciousCoder A April 20, 2018, 8:49 p.m. OK Java 8 TESTS 134 139 20684800 1400
55233676 Anvit A June 7, 2019, 7:10 a.m. OK Java 8 TESTS 134 140 0 1400
1607961 duolon A April 22, 2012, 3:52 a.m. OK Mono C# TESTS 134 90 10035200 1400
1551528 Quercitron A April 16, 2012, 1:43 p.m. OK Mono C# TESTS 134 90 10035200 1400
1686953 consoleapplication1 A May 13, 2012, 8:37 p.m. OK Mono C# TESTS 134 90 10035200 1400
5647346 yazan09x A Jan. 9, 2014, 8:20 p.m. OK Mono C# TESTS 134 92 409600 1400
2307984 Guliash A Oct. 6, 2012, 3:22 p.m. OK Mono C# TESTS 134 93 102400 1400
2308001 Guliash A Oct. 6, 2012, 3:26 p.m. OK Mono C# TESTS 134 93 102400 1400
1538843 powqer A April 14, 2012, 6:26 p.m. OK Mono C# TESTS 134 110 9932800 1400
1532129 AlphaStream A April 14, 2012, 8:09 a.m. OK Mono C# TESTS 134 110 10035200 1400
1532477 fujiyama A April 14, 2012, 8:16 a.m. OK Mono C# TESTS 134 110 10035200 1400
1532791 maslowmw A April 14, 2012, 8:23 a.m. OK Mono C# TESTS 134 110 10035200 1400
11173027 i3DProgrammer A May 20, 2015, 5:30 a.m. OK MS C# TESTS 134 62 204800 1400
15427233 og.kostya A Jan. 18, 2016, 12:59 p.m. OK MS C# TESTS 134 93 102400 1400
2067198 Antonov A Aug. 29, 2012, 2:45 p.m. OK MS C++ TESTS 134 10 716800 1400
3012494 FreezingCool A Jan. 26, 2013, 2:18 p.m. OK MS C++ TESTS 134 15 0 1400
3172736 salsa A Feb. 22, 2013, 2:49 p.m. OK MS C++ TESTS 134 15 0 1400
3220621 tomas.svab A Feb. 28, 2013, 7:18 p.m. OK MS C++ TESTS 134 15 0 1400
3326379 xa.mohsen A March 16, 2013, 3:13 p.m. OK MS C++ TESTS 134 15 0 1400
3583063 fastholf A April 21, 2013, 2:40 a.m. OK MS C++ TESTS 134 15 0 1400
15143561 ZolfekarAskarieh A Dec. 31, 2015, 11:24 p.m. OK MS C++ TESTS 134 15 0 1400
15332458 Deathly_Hallows A Jan. 13, 2016, 2:47 p.m. OK MS C++ TESTS 134 15 0 1400
15434477 shio A Jan. 19, 2016, 2:58 a.m. OK MS C++ TESTS 134 15 0 1400
16441829 AhmedSamir.1907 A March 1, 2016, 1:24 p.m. OK MS C++ TESTS 134 15 0 1400
1532725 PSIAlt A April 14, 2012, 8:21 a.m. OK Perl TESTS 134 30 716800 1400
22484645 mayakin A Nov. 25, 2016, 8:11 a.m. OK PHP TESTS 134 46 512000 1400
1538850 taka_taka A April 14, 2012, 6:37 p.m. OK PHP TESTS 134 50 7065600 1400
1944068 serg.kovalchuk A July 27, 2012, 7:59 a.m. OK PHP TESTS 134 50 7168000 1400
10234310 I_love_Hoang_Yen A March 11, 2015, 8 a.m. OK PyPy 2 TESTS 134 77 0 1400
45946006 vjudge3 A Nov. 19, 2018, 12:15 a.m. OK PyPy 2 TESTS 134 170 0 1400
54518035 itissandeep98 A May 23, 2019, 10:57 a.m. OK PyPy 3 TESTS 134 140 0 1400
66540408 kid_maksikkk A Dec. 9, 2019, 11:17 a.m. OK PyPy 3 TESTS 134 156 0 1400
14849882 minimario A Dec. 17, 2015, 6:19 p.m. OK PyPy 3 TESTS 134 186 0 1400
1539526 Bugman A April 15, 2012, 9:17 a.m. OK Python 2 TESTS 134 60 2867200 1400
1723136 nealzane A May 27, 2012, 3:34 a.m. OK Python 2 TESTS 134 60 2867200 1400
1712527 eng.heshamali A May 23, 2012, 4:30 p.m. OK Python 2 TESTS 134 60 2867200 1400
1567161 4ybakut2004 A April 17, 2012, 1:26 p.m. OK Python 2 TESTS 134 60 2867200 1400
1539898 jackiesteed A April 15, 2012, 1:40 p.m. OK Python 2 TESTS 134 60 2867200 1400
1539473 neex.emil A April 15, 2012, 8:53 a.m. OK Python 2 TESTS 134 60 2867200 1400
1539439 tec A April 15, 2012, 8:27 a.m. OK Python 2 TESTS 134 60 2867200 1400
1538617 satoshii A April 14, 2012, 3:21 p.m. OK Python 2 TESTS 134 60 2867200 1400
1537534 ItsLastDay A April 14, 2012, 11:22 a.m. OK Python 2 TESTS 134 60 2867200 1400
1538967 HisShadow A April 14, 2012, 8:55 p.m. OK Python 2 TESTS 134 60 2969600 1400
15770664 _roCkY_ A Feb. 3, 2016, 2:33 p.m. OK Python 3 TESTS 134 62 0 1400
29829472 Daikon A Aug. 27, 2017, 3:19 p.m. OK Python 3 TESTS 134 62 0 1400
29784607 t1016d A Aug. 25, 2017, 3:01 p.m. OK Python 3 TESTS 134 62 0 1400
27107190 knight-erraunt A May 14, 2017, 1:14 p.m. OK Python 3 TESTS 134 62 0 1400
28135981 unused A June 29, 2017, 9:22 a.m. OK Python 3 TESTS 134 62 5529600 1400
35154521 yashar_sb_sb A Feb. 11, 2018, 1:41 p.m. OK Python 3 TESTS 134 62 5632000 1400
34276976 andryej A Jan. 18, 2018, 1:30 p.m. OK Python 3 TESTS 134 62 5632000 1400
29819107 eddy1021 A Aug. 27, 2017, 5:09 a.m. OK Python 3 TESTS 134 77 0 1400
29763491 Qumeric A Aug. 24, 2017, 10:59 p.m. OK Python 3 TESTS 134 77 0 1400
21114204 Amores A Oct. 2, 2016, 12:14 p.m. OK Python 3 TESTS 134 77 0 1400
29769996 0w1 A Aug. 25, 2017, 6:10 a.m. OK Ruby TESTS 134 62 0 1400
1537953 MuratKhayrulin A April 14, 2012, 12:02 p.m. OK Ruby TESTS 134 110 5529600 1400
1669507 july A May 8, 2012, 3:39 p.m. OK Ruby TESTS 134 110 5632000 1400
1533086 mfkhr A April 14, 2012, 8:28 a.m. OK Ruby TESTS 134 130 5632000 1400
1538790 akisute3 A April 14, 2012, 5:34 p.m. OK Ruby TESTS 134 130 5632000 1400
1531994 K_operafan A April 14, 2012, 8:05 a.m. OK Ruby TESTS 134 130 5632000 1400
1539710 ymatsux A April 15, 2012, 11:32 a.m. OK Scala TESTS 134 300 43929600 1400
1666154 ymatsux A May 6, 2012, 9:11 a.m. OK Scala TESTS 134 310 43827200 1400

remove filters

Back to search problems