Good Bye 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
611 Good Bye 2015 FINISHED False 10800 280335299 Dec. 30, 2015, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2601 ) D New Year and Ancient Prophecy PROGRAMMING dp hashing strings 1900

B'Limak is a little polar bear. In the snow he found a scroll with the ancient prophecy. Limak doesn 't know any ancient languages and thus is unable to understand the prophecy. But he knows digits! One fragment of the prophecy is a sequence of n digits. The first digit isn 't zero. Limak thinks that it 's a list of some special years. It 's hard to see any commas or spaces, so maybe ancient people didn 't use them. Now Limak wonders what years are listed there. Limak assumes three things: Limak is going to consider all possible ways to split a sequence into numbers (years), satisfying the conditions above. He will do it without any help. However, he asked you to tell him the number of ways to do so. Since this number may be very large, you are only asked to calculate it modulo 109 xe2 x80 x89+ xe2 x80 x897. The first line of the input contains a single integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x895000) -- the number of digits. The second line contains a string of digits and has length equal to n. It 's guaranteed that the first digit is not '0 '. Print the number of ways to correctly split the given sequence modulo 109 xe2 x80 x89+ xe2 x80 x897. In the first sample there are 8 ways to split the sequence: Note that we don 't count a split "123434" = "12" + "34" + "34" because numbers have to be strictly increasing. In the second sample there are 4 ways:'...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
24689927 bzh D Feb. 15, 2017, 8:38 a.m. OK FPC TESTS 66 421 202956800 1900
24689849 bzh D Feb. 15, 2017, 8:34 a.m. OK FPC TESTS 66 452 303308800 1900
24689966 bzh D Feb. 15, 2017, 8:40 a.m. OK FPC TESTS 66 468 202956800 1900
15146537 SilverDH D Jan. 1, 2016, 9:14 a.m. OK FPC TESTS 66 483 201625600 1900
24689815 bzh D Feb. 15, 2017, 8:32 a.m. OK FPC TESTS 66 483 303308800 1900
15179561 slongle D Jan. 4, 2016, 10:05 a.m. OK FPC TESTS 66 499 301568000 1900
24689774 bzh D Feb. 15, 2017, 8:29 a.m. OK FPC TESTS 66 514 303308800 1900
15139854 urutom D Dec. 31, 2015, 5:44 p.m. OK FPC TESTS 66 561 200806400 1900
15137058 hdt D Dec. 31, 2015, 1:12 p.m. OK FPC TESTS 66 623 301363200 1900
24689360 bzh D Feb. 15, 2017, 8:11 a.m. OK FPC TESTS 66 654 303308800 1900
15134907 Chipe1 D Dec. 31, 2015, 9:37 a.m. OK GNU C TESTS 66 779 301568000 1900
15128655 sgtlaugh D Dec. 30, 2015, 7:58 p.m. OK GNU C TESTS 66 1466 451993600 1900
15128680 sgtlaugh D Dec. 30, 2015, 8 p.m. OK GNU C TESTS 66 1481 351641600 1900
15116166 hashlife D Dec. 30, 2015, 4:15 p.m. OK GNU C TESTS 66 1668 452915200 1900
26246066 yylidiw D April 10, 2017, 2:15 a.m. OK GNU C++ TESTS 66 139 102912000 1900
15115715 guille D Dec. 30, 2015, 4:11 p.m. OK GNU C++ TESTS 66 140 200806400 1900
40985473 ReaLNero1 D July 30, 2018, 7:58 p.m. OK GNU C++ TESTS 66 155 100864000 1900
15128552 gohan95 D Dec. 30, 2015, 7:50 p.m. OK GNU C++ TESTS 66 155 301158400 1900
15130879 130705009 D Dec. 31, 2015, 1:19 a.m. OK GNU C++ TESTS 66 171 0 1900
15117337 jiaqiyang D Dec. 30, 2015, 4:26 p.m. OK GNU C++ TESTS 66 171 0 1900
15115675 namai D Dec. 30, 2015, 4:11 p.m. OK GNU C++ TESTS 66 171 0 1900
15113094 natsugiri D Dec. 30, 2015, 3:51 p.m. OK GNU C++ TESTS 66 171 101273600 1900
15288535 immortalCO D Jan. 11, 2016, 2:01 p.m. OK GNU C++ TESTS 66 171 117657600 1900
15145013 triploblastic D Jan. 1, 2016, 4:33 a.m. OK GNU C++ TESTS 66 171 200806400 1900
56994455 rainboy D July 13, 2019, 8:42 p.m. OK GNU C11 TESTS 66 187 200396800 1900
15117950 fenzhang D Dec. 30, 2015, 4:31 p.m. OK GNU C++11 TESTS 66 109 614400 1900
15130254 lavin D Dec. 30, 2015, 11:18 p.m. OK GNU C++11 TESTS 66 140 819200 1900
15130177 lavin D Dec. 30, 2015, 11:03 p.m. OK GNU C++11 TESTS 66 155 819200 1900
15119320 j1k7_7 D Dec. 30, 2015, 4:45 p.m. OK GNU C++11 TESTS 66 155 201011200 1900
15226169 mutreta D Jan. 7, 2016, 2:25 p.m. OK GNU C++11 TESTS 66 170 200601600 1900
15161158 krijgertje D Jan. 2, 2016, 5:43 p.m. OK GNU C++11 TESTS 66 170 300646400 1900
16829534 freebsdx D March 20, 2016, 1:19 a.m. OK GNU C++11 TESTS 66 171 2048000 1900
15438911 tokers D Jan. 19, 2016, 11:11 a.m. OK GNU C++11 TESTS 66 171 101171200 1900
15147743 gorbunov D Jan. 1, 2016, 12:07 p.m. OK GNU C++11 TESTS 66 171 200499200 1900
15129160 SnapOutOfIt D Dec. 30, 2015, 8:48 p.m. OK GNU C++11 TESTS 66 171 200601600 1900
28003101 frankbozar D June 24, 2017, 10:23 a.m. OK GNU C++14 TESTS 66 140 104140800 1900
54522152 ae04071 D May 23, 2019, 12:45 p.m. OK GNU C++14 TESTS 66 187 201523200 1900
30319456 longNH.IT17 D Sept. 14, 2017, 3:17 a.m. OK GNU C++14 TESTS 66 233 200601600 1900
59656974 Jeffrey D Aug. 29, 2019, 10:51 a.m. OK GNU C++14 TESTS 66 234 200601600 1900
23415330 Jeremy1149 D Dec. 30, 2016, 8:28 a.m. OK GNU C++14 TESTS 66 248 203878400 1900
21872250 egor.okhterov D Oct. 29, 2016, 1:05 p.m. OK GNU C++14 TESTS 66 249 200396800 1900
27545839 ThanhSon_ D June 3, 2017, 1:30 p.m. OK GNU C++14 TESTS 66 249 247398400 1900
27957073 Light D June 22, 2017, 4:40 a.m. OK GNU C++14 TESTS 66 249 302592000 1900
20518114 maroonrk D Sept. 11, 2016, 2 a.m. OK GNU C++14 TESTS 66 264 101580800 1900
57321797 zzb111 D July 19, 2019, 10:22 a.m. OK GNU C++14 TESTS 66 264 212275200 1900
61366501 vjudge1 D Sept. 27, 2019, 1:40 p.m. OK GNU C++17 TESTS 66 249 200806400 1900
61366043 vjudge5 D Sept. 27, 2019, 1:32 p.m. OK GNU C++17 TESTS 66 249 201216000 1900
61336184 vjudge2 D Sept. 26, 2019, 4:30 p.m. OK GNU C++17 TESTS 66 264 201216000 1900
48552204 nong D Jan. 19, 2019, 2:44 a.m. OK GNU C++17 TESTS 66 264 201216000 1900
54495957 quake0 D May 22, 2019, 5:44 p.m. OK GNU C++17 TESTS 66 280 301158400 1900
54495995 quake0 D May 22, 2019, 5:45 p.m. OK GNU C++17 TESTS 66 296 301158400 1900
56766878 Rahul D July 9, 2019, 6:52 p.m. OK GNU C++17 TESTS 66 311 204492800 1900
41956597 cbb D Aug. 22, 2018, 6:58 a.m. OK GNU C++17 TESTS 66 374 200806400 1900
55959958 amnesiac_dusk D June 23, 2019, 9:07 a.m. OK GNU C++17 TESTS 66 374 200908800 1900
55490372 BohdanPastuschak D June 12, 2019, 9:48 a.m. OK GNU C++17 TESTS 66 389 201113600 1900
15131359 DukeOfYork D Dec. 31, 2015, 2:27 a.m. OK Java 7 TESTS 66 655 341094400 1900
15131349 DukeOfYork D Dec. 31, 2015, 2:26 a.m. OK Java 7 TESTS 66 670 341094400 1900
15136890 kuldeeppatel D Dec. 31, 2015, 12:58 p.m. OK Java 7 TESTS 66 732 339046400 1900
15114408 PlayLikeNeverB4 D Dec. 30, 2015, 4:01 p.m. OK Java 7 TESTS 66 763 341196800 1900
15136907 vrobyka D Dec. 31, 2015, 12:59 p.m. OK Java 7 TESTS 66 779 334438400 1900
15114823 knightL D Dec. 30, 2015, 4:04 p.m. OK Java 7 TESTS 66 935 341299200 1900
16337023 mkirsche D Feb. 25, 2016, 7:59 p.m. OK Java 7 TESTS 66 1185 343040000 1900
15122997 anandpatel9998 D Dec. 30, 2015, 5:25 p.m. OK Java 7 TESTS 66 1388 521523200 1900
15383153 siddv D Jan. 15, 2016, 6:26 a.m. OK Java 7 TESTS 66 1419 340275200 1900
15199559 nitegazer D Jan. 6, 2016, 3:36 a.m. OK Java 7 TESTS 66 1482 341094400 1900
15115514 Sumeet.Varma D Dec. 30, 2015, 4:10 p.m. OK Java 8 TESTS 66 405 176742400 1900
56994454 Dukkha D July 13, 2019, 8:42 p.m. OK Java 8 TESTS 66 499 251596800 1900
15116658 Sergey.Bankevich D Dec. 30, 2015, 4:19 p.m. OK Java 8 TESTS 66 685 319590400 1900
15120411 indy256 D Dec. 30, 2015, 4:56 p.m. OK Java 8 TESTS 66 748 318566400 1900
15133647 safarisoul D Dec. 31, 2015, 7:24 a.m. OK Java 8 TESTS 66 748 319385600 1900
15149790 d40a D Jan. 1, 2016, 3:47 p.m. OK Java 8 TESTS 66 748 427827200 1900
15154400 Tifuera D Jan. 2, 2016, 1:44 a.m. OK Java 8 TESTS 66 764 132096000 1900
15133667 safarisoul D Dec. 31, 2015, 7:26 a.m. OK Java 8 TESTS 66 764 319385600 1900
49219755 MuhammedAbdalla D Jan. 30, 2019, 6:34 p.m. OK Java 8 TESTS 66 779 252006400 1900
49966750 KulikAlex D Feb. 15, 2019, 9:17 p.m. OK Java 8 TESTS 66 779 478822400 1900
51781480 hongquanntct D March 24, 2019, 5:06 a.m. OK Mono C# TESTS 66 545 203468800 1900
15178336 kuuso D Jan. 4, 2016, 7:24 a.m. OK Mono C# TESTS 66 1154 212889600 1900
15137569 eitaho D Dec. 31, 2015, 1:55 p.m. OK MS C# TESTS 66 233 101068800 1900
15135028 og.kostya D Dec. 31, 2015, 9:51 a.m. OK MS C# TESTS 66 249 57548800 1900
15162818 Beresta D Jan. 2, 2016, 9:13 p.m. OK MS C# TESTS 66 264 101068800 1900
15162193 Beresta D Jan. 2, 2016, 7:38 p.m. OK MS C# TESTS 66 280 100966400 1900
15162752 Beresta D Jan. 2, 2016, 9:02 p.m. OK MS C# TESTS 66 373 52531200 1900
15162743 Beresta D Jan. 2, 2016, 9 p.m. OK MS C# TESTS 66 404 52633600 1900
15160771 Beresta D Jan. 2, 2016, 4:59 p.m. OK MS C# TESTS 66 436 77414400 1900
15160826 Beresta D Jan. 2, 2016, 5:05 p.m. OK MS C# TESTS 66 436 77414400 1900
15160546 Beresta D Jan. 2, 2016, 4:32 p.m. OK MS C# TESTS 66 452 153907200 1900
15160759 Beresta D Jan. 2, 2016, 4:57 p.m. OK MS C# TESTS 66 499 96563200 1900
15132244 mostafa_9a7c2 D Dec. 31, 2015, 4:32 a.m. OK MS C++ TESTS 66 233 301772800 1900
15128700 mostafa_9a7c2 D Dec. 30, 2015, 8:02 p.m. OK MS C++ TESTS 66 249 301772800 1900
15123198 Death_Knight_DK D Dec. 30, 2015, 5:28 p.m. OK MS C++ TESTS 66 249 426700800 1900
15334678 sjo200 D Jan. 13, 2016, 5:29 p.m. OK MS C++ TESTS 66 280 200806400 1900
15135660 maple_ D Dec. 31, 2015, 11:01 a.m. OK MS C++ TESTS 66 280 200806400 1900
15131954 scorpiowf D Dec. 31, 2015, 3:43 a.m. OK MS C++ TESTS 66 296 303001600 1900
15414002 vanvector D Jan. 17, 2016, 11:50 a.m. OK MS C++ TESTS 66 326 201318400 1900
15224397 tangshitao D Jan. 7, 2016, 11:47 a.m. OK MS C++ TESTS 66 327 200908800 1900
15122864 jasperH D Dec. 30, 2015, 5:24 p.m. OK MS C++ TESTS 66 342 200806400 1900
15115735 LLI_E_P_JI_O_K D Dec. 30, 2015, 4:11 p.m. OK MS C++ TESTS 66 343 150937600 1900
57098809 vjudge2 D July 15, 2019, 1:04 p.m. OK MS C++ 2017 TESTS 66 2137 502988800 1900
15138937 kchromatic D Dec. 31, 2015, 4:08 p.m. OK PyPy 2 TESTS 66 1684 405401600 1900
15138869 kchromatic D Dec. 31, 2015, 3:58 p.m. OK PyPy 2 TESTS 66 2106 406528000 1900
21695547 xqxm D Oct. 22, 2016, 11:25 p.m. OK PyPy 2 TESTS 66 2152 203673600 1900
15217780 gugugu D Jan. 6, 2016, 8:31 p.m. OK PyPy 2 TESTS 66 2464 238592000 1900
25206569 mio_h D March 4, 2017, 9:40 a.m. OK Rust TESTS 66 436 319488000 1900
25206596 mio_h D March 4, 2017, 9:41 a.m. OK Rust TESTS 66 468 302592000 1900
25201791 mio_h D March 4, 2017, 6 a.m. OK Rust TESTS 66 1575 219852800 1900
15271022 fido D Jan. 9, 2016, 2:52 p.m. OK Scala TESTS 66 2324 521728000 1900

remove filters

Back to search problems