Codeforces Round 253 (Div. 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
443 Codeforces Round 253 (Div. 2) FINISHED False 7200 328631399 June 19, 2014, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4067 ) B Kolya and Tandem Repeat PROGRAMMING brute force implementation strings 1500

B'Kolya got string s for his birthday, the string consists of small English letters. He immediately added k more characters to the right of the string. Then Borya came and said that the new string contained a tandem repeat of length l as a substring. How large could l be? See notes for definition of a tandem repeat. The first line contains s (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89|s| xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89200). This string contains only small English letters. The second line contains number k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89200) -- the number of the added characters. Print a single number -- the maximum length of the tandem repeat that could have occurred in the new string. A tandem repeat of length 2n is string s, where for any position i (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89i xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n) the following condition fulfills: si xe2 x80 x89= xe2 x80 x89si xe2 x80 x89+ xe2 x80 x89n. In the first sample Kolya could obtain a string aabaab, in the second -- aaabbbbbb, in the third -- abracadabrabracadabra.'...

Tutorials

Codeforces #253 editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
7425221 hos.lyric B Aug. 11, 2014, 8:38 a.m. OK D TESTS 34 30 1433600 1500
7101999 MRedor B July 14, 2014, 3:07 p.m. OK Delphi TESTS 34 31 102400 1500
8283311 metalopocalipsis B Oct. 17, 2014, 2:45 p.m. OK Delphi TESTS 34 93 102400 1500
7072474 pqhuy98 B July 13, 2014, 6:35 a.m. OK FPC TESTS 34 15 0 1500
7501089 vjudge2 B Aug. 18, 2014, 12:56 p.m. OK FPC TESTS 34 15 0 1500
15763689 Marry_me_Marusja B Feb. 3, 2016, 7:17 a.m. OK FPC TESTS 34 15 102400 1500
31956516 TShT B Nov. 1, 2017, 4:08 p.m. OK FPC TESTS 34 15 204800 1500
12298280 VAVAvile B Aug. 1, 2015, 2:48 a.m. OK FPC TESTS 34 15 307200 1500
8899144 iKID.Huy B Nov. 30, 2014, 3:38 p.m. OK FPC TESTS 34 15 307200 1500
7297626 imhereonlyforcookies B July 31, 2014, 7:40 a.m. OK FPC TESTS 34 15 409600 1500
35789152 Jerry2001 B Feb. 28, 2018, 3:13 p.m. OK FPC TESTS 34 15 1740800 1500
23346678 Jicote B Dec. 26, 2016, 6:53 p.m. OK FPC TESTS 34 15 1843200 1500
7004779 how_to_become_purple B July 3, 2014, 2:07 p.m. OK FPC TESTS 34 30 0 1500
11080263 deathcoder123 B May 12, 2015, 4:38 p.m. OK GNU C TESTS 34 15 0 1500
15140794 hardiknegi B Dec. 31, 2015, 7:46 p.m. OK GNU C TESTS 34 15 0 1500
13813254 vjudge2 B Oct. 23, 2015, 5:56 p.m. OK GNU C TESTS 34 15 0 1500
12346803 BJTUone B Aug. 5, 2015, 6:38 a.m. OK GNU C TESTS 34 15 0 1500
9427197 DatTenNayChoNgan B Jan. 14, 2015, 5:47 a.m. OK GNU C TESTS 34 15 0 1500
9420170 kiran711 B Jan. 12, 2015, 9:38 p.m. OK GNU C TESTS 34 15 0 1500
8594183 nanu B Nov. 6, 2014, 5:28 p.m. OK GNU C TESTS 34 15 0 1500
7346703 egorow29 B Aug. 4, 2014, 4:54 p.m. OK GNU C TESTS 34 15 0 1500
7295088 sumit007 B July 30, 2014, 7:33 p.m. OK GNU C TESTS 34 15 0 1500
7060274 learncricket B July 10, 2014, 6:15 p.m. OK GNU C TESTS 34 15 0 1500
38989776 vjudge5 B June 6, 2018, 9:28 a.m. OK GNU C++ TESTS 34 15 0 1500
38987056 vjudge3 B June 6, 2018, 7:35 a.m. OK GNU C++ TESTS 34 15 0 1500
32532649 vjudge2 B Nov. 21, 2017, 5:52 p.m. OK GNU C++ TESTS 34 15 0 1500
32503121 vjudge3 B Nov. 20, 2017, 2:44 p.m. OK GNU C++ TESTS 34 15 0 1500
32500969 vjudge5 B Nov. 20, 2017, 1:28 p.m. OK GNU C++ TESTS 34 15 0 1500
32495552 vjudge5 B Nov. 20, 2017, 10:10 a.m. OK GNU C++ TESTS 34 15 0 1500
32495524 vjudge5 B Nov. 20, 2017, 10:08 a.m. OK GNU C++ TESTS 34 15 0 1500
32491982 vjudge3 B Nov. 20, 2017, 7:27 a.m. OK GNU C++ TESTS 34 15 0 1500
32489716 vjudge1 B Nov. 20, 2017, 5:16 a.m. OK GNU C++ TESTS 34 15 0 1500
31239842 none44353 B Oct. 12, 2017, 11:51 a.m. OK GNU C++ TESTS 34 15 0 1500
8773015 anatolat B Nov. 21, 2014, 10:48 a.m. OK GNU C++0x TESTS 34 15 0 1500
10017726 What_is_life B Feb. 25, 2015, 10:13 a.m. OK GNU C++0x TESTS 34 15 0 1500
10017575 What_is_life B Feb. 25, 2015, 9:59 a.m. OK GNU C++0x TESTS 34 15 0 1500
9807472 Rainto96 B Feb. 12, 2015, 12:31 p.m. OK GNU C++0x TESTS 34 15 0 1500
9482824 _iris_ B Jan. 20, 2015, 8:49 a.m. OK GNU C++0x TESTS 34 15 0 1500
9303474 mredigonda B Dec. 30, 2014, 7:39 a.m. OK GNU C++0x TESTS 34 15 0 1500
9293549 sokian B Dec. 28, 2014, 6:23 p.m. OK GNU C++0x TESTS 34 15 0 1500
8879727 Hawkings B Nov. 28, 2014, 2:33 p.m. OK GNU C++0x TESTS 34 15 0 1500
8808826 determinism B Nov. 23, 2014, 5:45 a.m. OK GNU C++0x TESTS 34 15 0 1500
8704083 maxkvant B Nov. 15, 2014, 2:43 p.m. OK GNU C++0x TESTS 34 15 0 1500
15459699 Mohamed_AboBakr B Jan. 20, 2016, 10:11 p.m. OK GNU C11 TESTS 34 15 0 1500
11542540 NoSoul B June 12, 2015, 10:37 a.m. OK GNU C11 TESTS 34 31 0 1500
30236942 __timus B Sept. 10, 2017, 3:07 a.m. OK GNU C++11 TESTS 34 15 0 1500
29709920 albeXL B Aug. 23, 2017, 2:27 p.m. OK GNU C++11 TESTS 34 15 0 1500
27877232 brodo B June 18, 2017, 5:38 a.m. OK GNU C++11 TESTS 34 15 0 1500
27691421 Rajat_Tyagi B June 9, 2017, 2:49 p.m. OK GNU C++11 TESTS 34 15 0 1500
27614643 abhi_learner B June 6, 2017, 1:16 p.m. OK GNU C++11 TESTS 34 15 0 1500
52590120 guptamanthan99 B April 11, 2019, 4:51 a.m. OK GNU C++11 TESTS 34 15 0 1500
49851848 AlphaBetaTheta B Feb. 13, 2019, 4:28 a.m. OK GNU C++11 TESTS 34 15 0 1500
30796119 Melnik B Sept. 28, 2017, 6:08 a.m. OK GNU C++11 TESTS 34 15 0 1500
31276330 darkknight896 B Oct. 13, 2017, 1:53 p.m. OK GNU C++11 TESTS 34 15 0 1500
30237123 __timus B Sept. 10, 2017, 3:23 a.m. OK GNU C++11 TESTS 34 15 0 1500
31237254 gravito12345 B Oct. 12, 2017, 9:58 a.m. OK GNU C++14 TESTS 34 15 0 1500
53825123 Vladikus004 B May 6, 2019, 3:34 p.m. OK GNU C++14 TESTS 34 15 0 1500
45894757 karl.marx B Nov. 17, 2018, 9:14 p.m. OK GNU C++14 TESTS 34 15 0 1500
39221741 israttarin B June 13, 2018, 4:26 p.m. OK GNU C++14 TESTS 34 15 0 1500
39179641 bhuiyannowrin B June 12, 2018, 3:58 a.m. OK GNU C++14 TESTS 34 15 0 1500
32571532 _yxg123 B Nov. 23, 2017, 10:03 a.m. OK GNU C++14 TESTS 34 15 0 1500
32361625 Dalgerok B Nov. 16, 2017, 5:24 p.m. OK GNU C++14 TESTS 34 15 0 1500
32207887 K-th_Person B Nov. 10, 2017, 11:46 p.m. OK GNU C++14 TESTS 34 15 0 1500
31769589 Hassanosama B Oct. 26, 2017, 6:36 p.m. OK GNU C++14 TESTS 34 15 0 1500
31701392 bird_14 B Oct. 25, 2017, 7:11 a.m. OK GNU C++14 TESTS 34 15 0 1500
50248530 rishabh_sethi B Feb. 20, 2019, 4:05 p.m. OK GNU C++17 TESTS 34 15 0 1500
39006136 Systa B June 7, 2018, 12:26 a.m. OK GNU C++17 TESTS 34 15 0 1500
54806136 shiyuKirito B May 29, 2019, 2:15 p.m. OK GNU C++17 TESTS 34 15 0 1500
56636182 sjovanovic B July 6, 2019, 7:42 p.m. OK GNU C++17 TESTS 34 15 0 1500
38078335 _Muhammad B May 9, 2018, 5:42 p.m. OK GNU C++17 TESTS 34 15 3379200 1500
38904039 Mjgonzales B June 2, 2018, 9:41 p.m. OK GNU C++17 TESTS 34 15 3379200 1500
38904008 Mjgonzales B June 2, 2018, 9:39 p.m. OK GNU C++17 TESTS 34 15 3379200 1500
57742277 KODS B July 25, 2019, 11:49 a.m. OK GNU C++17 TESTS 34 30 0 1500
69486296 mshv97 B Jan. 24, 2020, 7:44 p.m. OK GNU C++17 TESTS 34 30 0 1500
66638171 gigawhiz B Dec. 11, 2019, 1:43 p.m. OK GNU C++17 TESTS 34 30 0 1500
7065483 ronaflx B July 11, 2014, 9:16 p.m. OK Go TESTS 34 15 0 1500
7203324 dikei B July 22, 2014, 3:46 p.m. OK Go TESTS 34 30 0 1500
8183658 arnoldjulians B Oct. 12, 2014, 1:17 p.m. OK Go TESTS 34 31 0 1500
7203336 dikei B July 22, 2014, 3:48 p.m. OK Go TESTS 34 31 0 1500
7155862 tnoda B July 19, 2014, 9:02 a.m. OK Go TESTS 34 31 0 1500
7243833 tottoripaper B July 25, 2014, 4:06 p.m. OK Haskell TESTS 34 46 102400 1500
7005248 Petya B July 3, 2014, 3:38 p.m. OK Haskell TESTS 34 93 1126400 1500
67600484 sunnycarlos B Dec. 25, 2019, 11:44 a.m. OK Java 11 TESTS 34 187 0 1500
68055390 exopeng B Jan. 1, 2020, 10:02 p.m. OK Java 11 TESTS 34 233 0 1500
8042075 siddv B Oct. 1, 2014, 2:38 a.m. OK Java 6 TESTS 34 62 0 1500
8475564 xiaowuc1 B Oct. 30, 2014, 3:31 a.m. OK Java 6 TESTS 34 77 0 1500
7450139 nikunjbanka B Aug. 15, 2014, 6:06 a.m. OK Java 6 TESTS 34 78 0 1500
6975671 timurtibeyev B June 28, 2014, 1:44 p.m. OK Java 6 TESTS 34 93 0 1500
7191126 maitony B July 21, 2014, 5:43 a.m. OK Java 6 TESTS 34 93 0 1500
8248580 Nitto B Oct. 16, 2014, 2 p.m. OK Java 6 TESTS 34 124 0 1500
6981759 Aker B June 29, 2014, 6:27 p.m. OK Java 7 TESTS 34 62 0 1500
9366484 7IDO B Jan. 5, 2015, 2:41 p.m. OK Java 7 TESTS 34 77 0 1500
8645009 chinh7 B Nov. 11, 2014, 3:14 a.m. OK Java 7 TESTS 34 77 0 1500
8300676 megaspazz B Oct. 19, 2014, 6:26 a.m. OK Java 7 TESTS 34 77 0 1500
7736550 monsterspy B Sept. 10, 2014, 4:56 p.m. OK Java 7 TESTS 34 77 0 1500
7677818 di_halt B Sept. 3, 2014, 10:12 p.m. OK Java 7 TESTS 34 77 0 1500
7367187 upsolving B Aug. 7, 2014, 12:49 p.m. OK Java 7 TESTS 34 77 0 1500
7189220 diany.45 B July 20, 2014, 10:01 p.m. OK Java 7 TESTS 34 77 0 1500
7116968 Junior94 B July 16, 2014, 2:23 p.m. OK Java 7 TESTS 34 77 0 1500
13074468 binary_eagle B Sept. 17, 2015, 6:11 p.m. OK Java 7 TESTS 34 77 0 1500
66674261 adarsh000321 B Dec. 12, 2019, 10:39 a.m. OK Java 8 TESTS 34 109 0 1500
66454705 Oom B Dec. 7, 2019, 12:45 p.m. OK Java 8 TESTS 34 109 0 1500
59601223 IDzekh B Aug. 28, 2019, 6:08 a.m. OK Java 8 TESTS 34 109 0 1500
56474877 zmurzagaliev B July 3, 2019, 12:43 p.m. OK Java 8 TESTS 34 109 0 1500
55685914 prakhar897 B June 17, 2019, 3:28 p.m. OK Java 8 TESTS 34 109 0 1500
50236860 o.radwan B Feb. 20, 2019, 11:09 a.m. OK Java 8 TESTS 34 109 0 1500
19585890 Ahmad_Elsagheer B Aug. 2, 2016, 7:21 p.m. OK Java 8 TESTS 34 109 0 1500
12339253 .tx B Aug. 4, 2015, 1:53 p.m. OK Java 8 TESTS 34 109 0 1500
12329235 TWO_POINTER B Aug. 3, 2015, 5:42 p.m. OK Java 8 TESTS 34 109 0 1500
12329200 TWO_POINTER B Aug. 3, 2015, 5:38 p.m. OK Java 8 TESTS 34 109 0 1500
6996765 Fefer_Ivan B July 2, 2014, 10:42 a.m. OK JavaScript TESTS 34 31 102400 1500
10846177 .PEIN. B April 24, 2015, 11:07 a.m. OK JavaScript TESTS 34 109 35225600 1500
51798002 Mosyagin B March 24, 2019, 4:19 p.m. OK Mono C# TESTS 34 61 0 1500
13076816 QuantumKnight B Sept. 17, 2015, 10:18 p.m. OK MS C# TESTS 34 46 102400 1500
7020890 gualex B July 6, 2014, 10:38 a.m. OK MS C# TESTS 34 46 102400 1500
6999684 ig_quasar B July 2, 2014, 9 p.m. OK MS C# TESTS 34 46 102400 1500
6982211 Trixic B June 29, 2014, 8:37 p.m. OK MS C# TESTS 34 46 102400 1500
7007793 raider71 B July 4, 2014, 2:29 a.m. OK MS C# TESTS 34 46 1740800 1500
14224611 _Sergey_ B Nov. 13, 2015, 10:04 a.m. OK MS C# TESTS 34 61 0 1500
8245157 mohsennayyeri B Oct. 16, 2014, 10:28 a.m. OK MS C# TESTS 34 62 102400 1500
9357031 MingFei B Jan. 4, 2015, 2:34 a.m. OK MS C# TESTS 34 77 204800 1500
18115409 Mem B May 27, 2016, 9:09 a.m. OK MS C# TESTS 34 77 9113600 1500
9397263 camypaper B Jan. 10, 2015, 12:23 p.m. OK MS C# TESTS 34 78 204800 1500
19529208 vjudge5 B July 31, 2016, 2:43 a.m. OK MS C++ TESTS 34 15 0 1500
22494622 mostafa_9a7c2 B Nov. 25, 2016, 5:29 p.m. OK MS C++ TESTS 34 15 0 1500
20410706 vjudge5 B Sept. 6, 2016, 2:23 a.m. OK MS C++ TESTS 34 15 0 1500
16708903 vjudge3 B March 14, 2016, 6:56 a.m. OK MS C++ TESTS 34 15 0 1500
16552829 Sandmann B March 6, 2016, 1:29 p.m. OK MS C++ TESTS 34 15 0 1500
15437779 dilshodp B Jan. 19, 2016, 9:28 a.m. OK MS C++ TESTS 34 15 0 1500
14003706 mreash B Nov. 1, 2015, 8:54 a.m. OK MS C++ TESTS 34 15 0 1500
13904770 AhmedElyamani B Oct. 27, 2015, 7:55 p.m. OK MS C++ TESTS 34 15 0 1500
13337207 yangxinthu B Oct. 1, 2015, 11:45 p.m. OK MS C++ TESTS 34 15 0 1500
11399820 OmarHashim B June 3, 2015, 10:20 a.m. OK MS C++ TESTS 34 15 0 1500
59601893 vjudge1 B Aug. 28, 2019, 6:32 a.m. OK MS C++ 2017 TESTS 34 46 0 1500
44954576 mayakin B Oct. 27, 2018, 1:37 p.m. OK PHP TESTS 34 46 0 1500
44389886 FatherofBenoni B Oct. 16, 2018, 7:58 a.m. OK PyPy 2 TESTS 34 140 819200 1500
44177490 Onesh0t B Oct. 12, 2018, 9:34 a.m. OK PyPy 2 TESTS 34 155 1433600 1500
51582570 cs1g B March 20, 2019, 3 p.m. OK PyPy 3 TESTS 34 124 307200 1500
19920276 Vosatorp B Aug. 17, 2016, 5:43 a.m. OK PyPy 3 TESTS 34 124 23654400 1500
51582519 cs1g B March 20, 2019, 2:59 p.m. OK PyPy 3 TESTS 34 140 307200 1500
56441673 FlyingBag65 B July 2, 2019, 4:43 p.m. OK PyPy 3 TESTS 34 140 2150400 1500
55212810 shiv1470 B June 6, 2019, 3:21 p.m. OK PyPy 3 TESTS 34 156 1433600 1500
68124937 raj1307 B Jan. 3, 2020, 2:48 p.m. OK PyPy 3 TESTS 34 171 2048000 1500
7122537 baozhao B July 17, 2014, 9:27 a.m. OK Python 2 TESTS 34 46 0 1500
7047584 sglyons2 B July 8, 2014, 1:32 p.m. OK Python 2 TESTS 34 46 0 1500
6989454 kelwenp B July 1, 2014, 2:58 a.m. OK Python 2 TESTS 34 46 0 1500
7105733 synapse B July 15, 2014, 4:52 a.m. OK Python 2 TESTS 34 46 102400 1500
7007437 deletegroup B July 4, 2014, 12:31 a.m. OK Python 2 TESTS 34 46 102400 1500
6981785 billionprince B June 29, 2014, 6:35 p.m. OK Python 2 TESTS 34 46 102400 1500
9149477 itytwt B Dec. 16, 2014, 9:26 a.m. OK Python 2 TESTS 34 61 0 1500
9149469 itytwt B Dec. 16, 2014, 9:24 a.m. OK Python 2 TESTS 34 62 0 1500
8036906 urationc B Sept. 30, 2014, 1:53 p.m. OK Python 2 TESTS 34 62 0 1500
7097183 victsou B July 14, 2014, 5:33 a.m. OK Python 2 TESTS 34 62 0 1500
15915289 not_bot_but_POT B Feb. 9, 2016, 2:03 p.m. OK Python 3 TESTS 34 61 0 1500
11035979 merolish B May 7, 2015, 8:56 p.m. OK Python 3 TESTS 34 61 0 1500
10637878 illidanldx B April 9, 2015, 8:49 a.m. OK Python 3 TESTS 34 62 0 1500
6974836 BreakVoid B June 28, 2014, 10:58 a.m. OK Python 3 TESTS 34 62 0 1500
29489779 Qumeric B Aug. 15, 2017, 8:01 p.m. OK Python 3 TESTS 34 62 4608000 1500
28211223 thelastprime B July 2, 2017, 1:23 p.m. OK Python 3 TESTS 34 62 5529600 1500
35872640 ______u______ B March 3, 2018, 7:15 a.m. OK Python 3 TESTS 34 62 5632000 1500
35872402 ______n______ B March 3, 2018, 7:10 a.m. OK Python 3 TESTS 34 62 5632000 1500
35871789 _____k_____ B March 3, 2018, 6:58 a.m. OK Python 3 TESTS 34 62 5632000 1500
35871787 _____i_____ B March 3, 2018, 6:58 a.m. OK Python 3 TESTS 34 62 5632000 1500
11374877 mysterion B June 1, 2015, 8:47 a.m. OK Scala TESTS 34 202 0 1500
17709193 reldan B May 4, 2016, 2:01 p.m. OK Scala TESTS 34 358 39833600 1500

remove filters

Back to search problems