Croc Champ 2012 - Round 2

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
176 Croc Champ 2012 - Round 2 FINISHED False 7200 396888899 April 20, 2012, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1834 ) B Word Cut PROGRAMMING dp 1900

B'Let 's consider one interesting word game. In this game you should transform one word into another through special operations. Let 's say we have word w, let 's split this word into two non-empty parts x and y so, that w xe2 x80 x89= xe2 x80 x89xy. A split operation is transforming word w xe2 x80 x89= xe2 x80 x89xy into word u xe2 x80 x89= xe2 x80 x89yx. For example, a split operation can transform word "wordcut" into word "cutword". You are given two words start and end. Count in how many ways we can transform word start into word end, if we apply exactly k split operations consecutively to word start. Two ways are considered different if the sequences of applied operations differ. Two operation sequences are different if exists such number i (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89i xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k), that in the i-th operation of the first sequence the word splits into parts x and y, in the i-th operation of the second sequence the word splits into parts a and b, and additionally x xe2 x80 x89 xe2 x89 xa0 xe2 x80 x89a holds. The first line contains a non-empty word start, the second line contains a non-empty word end. The words consist of lowercase Latin letters. The number of letters in word start equals the number of letters in word end and is at least 2 and doesn 't exceed 1000 letters. The third line contains integer k (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105) -- the required number of operations. Print a single number -- the answer to the problem. As this number can be rather large, print it modulo 1000000007 (109 xe2 x80 x89+ xe2 x80 x897). The sought way in the first sample is: ab xe2 x80 x89 xe2 x86 x92 xe2 x80 x89 a|b xe2 x80 x89 xe2 x86 x92 xe2 x80 x89 ba xe2 x80 x89 xe2 x86 x92 xe2 x80 x89 b|a xe2 x80 x89 xe2 x86 x92 xe2 x80 x89 ab In the second sample the two sought ways are:'...

Tutorials

Croc Champ 2012 — Round 2 — Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
3670198 AleksanderBalobanov B May 4, 2013, 7:31 p.m. OK Delphi TESTS 90 78 1126400 1900
1589688 bearf B April 20, 2012, 4:30 p.m. OK Delphi TESTS 90 80 921600 1900
1593055 ruban B April 21, 2012, 9:46 a.m. OK Delphi TESTS 90 90 2662400 1900
1589468 TheHedgehog B April 20, 2012, 4:23 p.m. OK Delphi TESTS 90 390 4096000 1900
2065056 vilcheuski B Aug. 28, 2012, 8:11 p.m. OK Delphi TESTS 90 1610 9728000 1900
1607990 bidzilya B April 22, 2012, 4:13 a.m. OK Delphi TESTS 90 1910 1024000 1900
1589474 alexej B April 20, 2012, 4:23 p.m. OK FPC TESTS 90 30 1433600 1900
1588683 chiemduybao B April 20, 2012, 4 p.m. OK FPC TESTS 90 30 2969600 1900
1666266 vlad107 B May 6, 2012, 9:59 a.m. OK FPC TESTS 90 30 5427200 1900
2829658 studytolive B Dec. 26, 2012, 3:56 p.m. OK FPC TESTS 90 31 1945600 1900
1587795 coolinging B April 20, 2012, 3:38 p.m. OK FPC TESTS 90 50 1024000 1900
1587092 Sereja B April 20, 2012, 3:23 p.m. OK FPC TESTS 90 50 1331200 1900
1591194 con_nha_ngheo B April 20, 2012, 5:27 p.m. OK FPC TESTS 90 50 1843200 1900
1848905 OVR B July 2, 2012, 12:35 p.m. OK FPC TESTS 90 50 1945600 1900
1595182 mike_zzw B April 21, 2012, 2:19 p.m. OK FPC TESTS 90 50 2252800 1900
1589102 zanoes B April 20, 2012, 4:11 p.m. OK FPC TESTS 90 50 7475200 1900
3042116 hariprasath B Jan. 31, 2013, 7:21 p.m. OK GNU C TESTS 90 15 0 1900
1587269 LayCurse B April 20, 2012, 3:27 p.m. OK GNU C TESTS 90 30 1433600 1900
1587715 kawatea B April 20, 2012, 3:36 p.m. OK GNU C TESTS 90 30 2969600 1900
1591619 s864372002 B April 20, 2012, 6:16 p.m. OK GNU C TESTS 90 50 2150400 1900
3722718 vjudge4 B May 15, 2013, 7:45 a.m. OK GNU C++ TESTS 90 15 0 1900
3558916 haxxpop B April 18, 2013, 5:13 a.m. OK GNU C++ TESTS 90 15 0 1900
2877395 AlexJH B Jan. 6, 2013, 9:33 a.m. OK GNU C++ TESTS 90 15 0 1900
3323915 lysine B March 16, 2013, 5:55 a.m. OK GNU C++ TESTS 90 15 102400 1900
3142556 taojiaen B Feb. 18, 2013, 9:03 a.m. OK GNU C++ TESTS 90 15 1536000 1900
3253765 vjudge5 B March 5, 2013, 11:34 a.m. OK GNU C++ TESTS 90 15 1638400 1900
3147151 crazy_apple B Feb. 19, 2013, 1:29 p.m. OK GNU C++ TESTS 90 15 1638400 1900
2831148 Poseidon B Dec. 26, 2012, 9:23 p.m. OK GNU C++ TESTS 90 15 1843200 1900
2806604 Nekosyndrome B Dec. 22, 2012, 12:01 p.m. OK GNU C++ TESTS 90 15 1843200 1900
3070764 Ericcwang B Feb. 4, 2013, 12:35 p.m. OK GNU C++ TESTS 90 15 2150400 1900
1591115 Archon.JK B April 20, 2012, 5:24 p.m. OK GNU C++0x TESTS 90 30 1433600 1900
7351820 Cromel B Aug. 5, 2014, 11:05 a.m. OK GNU C++0x TESTS 90 30 1638400 1900
8379691 ecapia B Oct. 24, 2014, 4:29 p.m. OK GNU C++0x TESTS 90 30 1740800 1900
2095901 yc0576 B Sept. 4, 2012, 7:45 p.m. OK GNU C++0x TESTS 90 30 2457600 1900
2420558 Archon.JK B Oct. 24, 2012, 9:08 a.m. OK GNU C++0x TESTS 90 31 819200 1900
1588822 left_wing B April 20, 2012, 4:04 p.m. OK GNU C++0x TESTS 90 50 1433600 1900
1589588 jiangzhijie B April 20, 2012, 4:26 p.m. OK GNU C++0x TESTS 90 50 2252800 1900
9125980 determinism B Dec. 14, 2014, 8:22 a.m. OK GNU C++0x TESTS 90 62 0 1900
6458028 wanbo B April 24, 2014, 3:21 a.m. OK GNU C++0x TESTS 90 62 1024000 1900
10215894 harshil B March 9, 2015, 9:25 a.m. OK GNU C++0x TESTS 90 62 1638400 1900
32148073 Nson B Nov. 8, 2017, 11:02 p.m. OK GNU C++11 TESTS 90 30 0 1900
32147616 Nson B Nov. 8, 2017, 10:07 p.m. OK GNU C++11 TESTS 90 30 0 1900
32147502 Nson B Nov. 8, 2017, 9:56 p.m. OK GNU C++11 TESTS 90 30 0 1900
27081109 theodor.moroianu B May 13, 2017, 10:37 a.m. OK GNU C++11 TESTS 90 30 0 1900
16251032 suchir B Feb. 20, 2016, 9:37 p.m. OK GNU C++11 TESTS 90 30 0 1900
15449941 vjudge3 B Jan. 20, 2016, 7:53 a.m. OK GNU C++11 TESTS 90 30 0 1900
15448876 vjudge3 B Jan. 20, 2016, 6:35 a.m. OK GNU C++11 TESTS 90 30 0 1900
15447749 vjudge2 B Jan. 20, 2016, 5:03 a.m. OK GNU C++11 TESTS 90 30 0 1900
15076866 bill_kondo B Dec. 28, 2015, 8 p.m. OK GNU C++11 TESTS 90 30 0 1900
14043942 cq_phqg B Nov. 3, 2015, 3:27 p.m. OK GNU C++11 TESTS 90 30 819200 1900
26836662 rng_57 B May 4, 2017, 2:26 p.m. OK GNU C++14 TESTS 90 30 204800 1900
27099835 ascchrvalstr B May 14, 2017, 3:17 a.m. OK GNU C++14 TESTS 90 30 1740800 1900
23620779 Ali.Pi B Jan. 7, 2017, 9:25 a.m. OK GNU C++14 TESTS 90 30 1945600 1900
26745869 Denverjin B April 29, 2017, 10:55 a.m. OK GNU C++14 TESTS 90 30 2048000 1900
25361601 vjudge1 B March 9, 2017, 1:57 p.m. OK GNU C++14 TESTS 90 30 2048000 1900
26746282 MAGRANT B April 29, 2017, 11:21 a.m. OK GNU C++14 TESTS 90 30 2150400 1900
23348894 O.Dem B Dec. 26, 2016, 9:31 p.m. OK GNU C++14 TESTS 90 30 2764800 1900
32458098 waynetuinfor B Nov. 19, 2017, 1:35 p.m. OK GNU C++14 TESTS 90 30 2867200 1900
24586236 Kerim.K B Feb. 11, 2017, 9:49 a.m. OK GNU C++14 TESTS 90 30 3072000 1900
28400226 vjudge2 B July 10, 2017, 6:53 a.m. OK GNU C++14 TESTS 90 30 3584000 1900
66615756 Juve45 B Dec. 11, 2019, 3:41 a.m. OK GNU C++17 TESTS 90 62 0 1900
56884047 vjudge2 B July 12, 2019, 11:48 a.m. OK GNU C++17 TESTS 90 62 0 1900
43501112 Martin53 B Sept. 27, 2018, 5:09 p.m. OK GNU C++17 TESTS 90 62 0 1900
41436657 LEOLEI B Aug. 10, 2018, 3:31 p.m. OK GNU C++17 TESTS 90 62 0 1900
41296011 franklwy B Aug. 7, 2018, 7:14 a.m. OK GNU C++17 TESTS 90 62 0 1900
40237475 vjudge5 B July 12, 2018, 3:54 p.m. OK GNU C++17 TESTS 90 62 0 1900
53973238 vamaddur B May 11, 2019, 1:24 a.m. OK GNU C++17 TESTS 90 62 204800 1900
44111775 ruo B Oct. 11, 2018, 12:11 p.m. OK GNU C++17 TESTS 90 62 307200 1900
68594007 abhinav2603 B Jan. 11, 2020, 1:31 p.m. OK GNU C++17 TESTS 90 62 1638400 1900
61294670 pulsatio B Sept. 25, 2019, 11:49 p.m. OK GNU C++17 TESTS 90 62 1638400 1900
1589670 bohuss B April 20, 2012, 4:29 p.m. OK Java 6 TESTS 90 90 43110400 1900
1588516 fetetriste B April 20, 2012, 3:56 p.m. OK Java 6 TESTS 90 90 43110400 1900
1590728 sas4eka B April 20, 2012, 4:59 p.m. OK Java 6 TESTS 90 90 43212800 1900
2947290 thesilione B Jan. 17, 2013, 5:05 a.m. OK Java 6 TESTS 90 93 0 1900
2254674 uwi B Sept. 27, 2012, 3:13 a.m. OK Java 6 TESTS 90 93 0 1900
1588287 winger B April 20, 2012, 3:50 p.m. OK Java 6 TESTS 90 110 43110400 1900
1588144 chavit B April 20, 2012, 3:47 p.m. OK Java 6 TESTS 90 110 43110400 1900
1587386 niyaznigmatul B April 20, 2012, 3:29 p.m. OK Java 6 TESTS 90 110 43110400 1900
1588465 AlexanderBolshakov B April 20, 2012, 3:55 p.m. OK Java 6 TESTS 90 110 43212800 1900
1588805 SpookyCookie B April 20, 2012, 4:04 p.m. OK Java 6 TESTS 90 110 43315200 1900
1589202 Abra B April 20, 2012, 4:14 p.m. OK Java 7 TESTS 90 110 44851200 1900
1588152 yaro B April 20, 2012, 3:47 p.m. OK Java 7 TESTS 90 110 44851200 1900
1587740 eatmore B April 20, 2012, 3:37 p.m. OK Java 7 TESTS 90 130 44953600 1900
11121124 peter31415 B May 16, 2015, 10:08 p.m. OK Java 7 TESTS 90 154 0 1900
4322322 santjuan B Aug. 22, 2013, 3:48 a.m. OK Java 7 TESTS 90 186 0 1900
51134493 hongquanntct B March 10, 2019, 3:22 p.m. OK Java 8 TESTS 90 248 0 1900
51134434 hongquanntct B March 10, 2019, 3:20 p.m. OK Java 8 TESTS 90 248 0 1900
15179825 alibaba B Jan. 4, 2016, 10:35 a.m. OK Java 8 TESTS 90 248 0 1900
15179778 alibaba B Jan. 4, 2016, 10:30 a.m. OK Java 8 TESTS 90 248 0 1900
11077131 A.Elahi B May 12, 2015, 10:40 a.m. OK Java 8 TESTS 90 248 0 1900
61738359 armking B Oct. 2, 2019, 7:05 p.m. OK Java 8 TESTS 90 280 0 1900
39778577 unicorn20141 B June 29, 2018, 6:41 p.m. OK Java 8 TESTS 90 280 0 1900
41448910 vjudge5 B Aug. 11, 2018, 2:29 a.m. OK Java 8 TESTS 90 342 0 1900
1635141 Quercitron B April 28, 2012, 12:40 p.m. OK Mono C# TESTS 90 110 11776000 1900
41686248 Mickey-snow B Aug. 17, 2018, 2:21 p.m. OK Mono C# TESTS 90 124 0 1900
57128505 og.kostya B July 16, 2019, 6:01 a.m. OK Mono C# TESTS 90 124 3174400 1900
1588204 it4.kp B April 20, 2012, 3:48 p.m. OK Mono C# TESTS 90 480 11776000 1900
3727474 Scorpy B May 16, 2013, 2:59 p.m. OK MS C++ TESTS 90 15 0 1900
7114439 vjudge1 B July 16, 2014, 8:26 a.m. OK MS C++ TESTS 90 30 0 1900
1588254 KirillB B April 20, 2012, 3:50 p.m. OK MS C++ TESTS 90 30 1433600 1900
1587964 witua B April 20, 2012, 3:42 p.m. OK MS C++ TESTS 90 30 1433600 1900
1587508 GlebsHP B April 20, 2012, 3:31 p.m. OK MS C++ TESTS 90 30 1433600 1900
1587153 bayleef B April 20, 2012, 3:25 p.m. OK MS C++ TESTS 90 30 1433600 1900
1589480 DAle B April 20, 2012, 4:23 p.m. OK MS C++ TESTS 90 30 1433600 1900
1590154 soundsdx B April 20, 2012, 4:44 p.m. OK MS C++ TESTS 90 30 1433600 1900
1769565 maksay B June 7, 2012, 1:13 p.m. OK MS C++ TESTS 90 30 1433600 1900
1588289 Lepetrandr B April 20, 2012, 3:50 p.m. OK MS C++ TESTS 90 30 1433600 1900
1589027 alexey.shchepin B April 20, 2012, 4:10 p.m. OK Ocaml TESTS 90 90 6860800 1900
1645215 LinJiYuan90 B April 30, 2012, 6:13 a.m. OK Python 2 TESTS 90 160 2969600 1900
1645230 LinJiYuan90 B April 30, 2012, 6:24 a.m. OK Python 2 TESTS 90 170 2969600 1900
1591996 -dp- B April 20, 2012, 8:32 p.m. OK Python 2 TESTS 90 200 2969600 1900
15142902 HappyNewYearMike B Dec. 31, 2015, 10:50 p.m. OK Python 2 TESTS 90 218 204800 1900
2683107 nealzane B Dec. 1, 2012, 8:54 a.m. OK Python 2 TESTS 90 234 0 1900
15914901 not_bot_but_POT B Feb. 9, 2016, 1:55 p.m. OK Python 2 TESTS 90 310 102400 1900
35842482 ______u______ B March 2, 2018, 2:54 p.m. OK Python 2 TESTS 90 312 4608000 1900
35842461 ______n______ B March 2, 2018, 2:54 p.m. OK Python 2 TESTS 90 312 4608000 1900
35842190 _____i_____ B March 2, 2018, 2:49 p.m. OK Python 2 TESTS 90 312 4608000 1900
35842180 _____k_____ B March 2, 2018, 2:49 p.m. OK Python 2 TESTS 90 312 4608000 1900
68296974 Guaty B Jan. 6, 2020, 3:40 a.m. OK Python 3 TESTS 90 310 307200 1900
14714620 dududcbier B Dec. 9, 2015, 2:34 p.m. OK Python 3 TESTS 90 436 5120000 1900

remove filters

Back to search problems