Educational Codeforces Round 25

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
825 Educational Codeforces Round 25 FINISHED False 7200 231605699 July 16, 2017, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1526 ) F String Compression PROGRAMMING dp hashing string suffix structures strings 2400

B'Ivan wants to write a letter to his friend. The letter is a string s consisting of lowercase Latin letters. Unfortunately, when Ivan started writing the letter, he realised that it is very long and writing the whole letter may take extremely long time. So he wants to write the compressed version of string s instead of the string itself. The compressed version of string s is a sequence of strings c1, xe2 x80 x89s1, xe2 x80 x89c2, xe2 x80 x89s2, xe2 x80 x89..., xe2 x80 x89ck, xe2 x80 x89sk, where ci is the decimal representation of number ai (without any leading zeroes) and si is some string consisting of lowercase Latin letters. If Ivan writes string s1 exactly a1 times, then string s2 exactly a2 times, and so on, the result will be string s. The length of a compressed version is |c1| xe2 x80 x89+ xe2 x80 x89|s1| xe2 x80 x89+ xe2 x80 x89|c2| xe2 x80 x89+ xe2 x80 x89|s2|... |ck| xe2 x80 x89+ xe2 x80 x89|sk|. Among all compressed versions Ivan wants to choose a version such that its length is minimum possible. Help Ivan to determine minimum possible length. The only line of input contains one string s consisting of lowercase Latin letters (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89|s| xe2 x80 x89 xe2 x89 xa4 xe2 x80 x898000). Output one integer number -- the minimum possible length of a compressed version of s. In the first example Ivan will choose this compressed version: c1 is 10, s1 is a. In the second example Ivan will choose this compressed version: c1 is 1, s1 is abcab. In the third example Ivan will choose this compressed version: c1 is 2, s1 is c, c2 is 1, s2 is z, c3 is 4, s3 is ab. '...

Tutorials

Educational Codeforces Round 25 - Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
28791387 WARenie F July 23, 2017, 4:17 a.m. OK FPC TESTS 63 1013 402841600 2400
28650414 isgulkov F July 17, 2017, 11:13 p.m. OK GNU C TESTS 63 826 258867200 2400
28620721 sgtlaugh F July 16, 2017, 10:08 p.m. OK GNU C TESTS 63 1933 516300800 2400
29675525 Heilce F Aug. 22, 2017, 6:33 a.m. OK GNU C++ TESTS 63 358 0 2400
32613460 Scut82 F Nov. 24, 2017, 7:47 a.m. OK GNU C++ TESTS 63 358 2150400 2400
38530957 vjudge3 F May 22, 2018, 10:05 a.m. OK GNU C++ TESTS 63 373 102400 2400
38530947 minisam233 F May 22, 2018, 10:05 a.m. OK GNU C++ TESTS 63 373 102400 2400
32071925 vjudge3 F Nov. 5, 2017, 9:16 a.m. OK GNU C++ TESTS 63 374 0 2400
32071786 vjudge2 F Nov. 5, 2017, 9:08 a.m. OK GNU C++ TESTS 63 374 0 2400
29289331 ThoseBygones F Aug. 8, 2017, 4:18 p.m. OK GNU C++ TESTS 63 374 2150400 2400
29188172 vjudge3 F Aug. 4, 2017, 8:13 a.m. OK GNU C++ TESTS 63 374 2252800 2400
28779950 ccdream F July 22, 2017, 1:37 p.m. OK GNU C++ TESTS 63 374 2252800 2400
28746699 joseph_chiang F July 21, 2017, 9:48 a.m. OK GNU C++ TESTS 63 374 2252800 2400
69175524 vjudge2 F Jan. 20, 2020, 7:56 a.m. OK GNU C++11 TESTS 63 296 102400 2400
69175468 Soetdit F Jan. 20, 2020, 7:55 a.m. OK GNU C++11 TESTS 63 296 102400 2400
37851943 RNS_MHB F May 3, 2018, 2:21 a.m. OK GNU C++11 TESTS 63 296 3584000 2400
50704129 vjudge2 F March 3, 2019, 2:07 a.m. OK GNU C++11 TESTS 63 342 102400 2400
55713905 KMAASZRAA F June 18, 2019, 11:43 a.m. OK GNU C++11 TESTS 63 343 102400 2400
50256856 vjudge3 F Feb. 20, 2019, 8:15 p.m. OK GNU C++11 TESTS 63 343 102400 2400
28617246 bmerry F July 16, 2017, 6:24 p.m. OK GNU C++11 TESTS 63 343 2252800 2400
28607754 krijgertje F July 16, 2017, 4:03 p.m. OK GNU C++11 TESTS 63 343 2252800 2400
49665909 vjudge2 F Feb. 9, 2019, 2:26 p.m. OK GNU C++11 TESTS 63 358 0 2400
49665900 vjudge2 F Feb. 9, 2019, 2:26 p.m. OK GNU C++11 TESTS 63 358 0 2400
40980574 ReaLNero1 F July 30, 2018, 5:35 p.m. OK GNU C++14 TESTS 63 280 102400 2400
33056728 Georgia_001 F Dec. 9, 2017, 5:01 p.m. OK GNU C++14 TESTS 63 280 2048000 2400
29590811 SmokeOut F Aug. 19, 2017, 6:51 a.m. OK GNU C++14 TESTS 63 312 102400 2400
28611806 Meirambek F July 16, 2017, 4:36 p.m. OK GNU C++14 TESTS 63 312 3276800 2400
29967128 Batman F Sept. 1, 2017, 8:42 a.m. OK GNU C++14 TESTS 63 327 102400 2400
36419581 Arg_007 F March 19, 2018, 7:41 p.m. OK GNU C++14 TESTS 63 342 3379200 2400
28609631 Shik F July 16, 2017, 4:17 p.m. OK GNU C++14 TESTS 63 342 259174400 2400
49681361 vjudge5 F Feb. 10, 2019, 2:17 a.m. OK GNU C++14 TESTS 63 343 102400 2400
50456065 bhargav_0085 F Feb. 24, 2019, 5:08 p.m. OK GNU C++14 TESTS 63 358 102400 2400
30745288 Rafaaaaaaaaaaaam F Sept. 26, 2017, 9:09 a.m. OK GNU C++14 TESTS 63 358 204800 2400
67851298 justfocusplease F Dec. 29, 2019, 3:14 a.m. OK GNU C++17 TESTS 63 280 102400 2400
61259677 keko37 F Sept. 25, 2019, 11:16 a.m. OK GNU C++17 TESTS 63 312 102400 2400
47547832 vjudge4 F Dec. 27, 2018, 11:17 a.m. OK GNU C++17 TESTS 63 358 307200 2400
60382953 balbit F Sept. 11, 2019, 10:09 a.m. OK GNU C++17 TESTS 63 374 102400 2400
59560530 hbi1998 F Aug. 27, 2019, 8:18 a.m. OK GNU C++17 TESTS 63 390 102400 2400
62242983 shuerss F Oct. 10, 2019, 2:48 a.m. OK GNU C++17 TESTS 63 405 102400 2400
50416355 vjudge3 F Feb. 24, 2019, 6:46 a.m. OK GNU C++17 TESTS 63 405 102400 2400
57828965 kongroo F July 27, 2019, 5:13 a.m. OK GNU C++17 TESTS 63 421 102400 2400
50416266 vjudge4 F Feb. 24, 2019, 6:43 a.m. OK GNU C++17 TESTS 63 421 102400 2400
50382392 vjudge3 F Feb. 23, 2019, 12:04 p.m. OK GNU C++17 TESTS 63 421 102400 2400
29193671 WangJialei F Aug. 4, 2017, 12:28 p.m. OK Go TESTS 63 1450 295731200 2400
43731253 Ahmad F Oct. 3, 2018, 2:13 p.m. OK Java 8 TESTS 63 764 0 2400
28609364 uwi F July 16, 2017, 4:15 p.m. OK Java 8 TESTS 63 764 21299200 2400
59128282 7dan F Aug. 20, 2019, 10:02 a.m. OK Java 8 TESTS 63 764 476876800 2400
28787042 uwi F July 22, 2017, 9:18 p.m. OK Java 8 TESTS 63 810 21196800 2400
28787031 uwi F July 22, 2017, 9:16 p.m. OK Java 8 TESTS 63 810 21196800 2400
28665516 Kvark161 F July 18, 2017, 10:52 a.m. OK Java 8 TESTS 63 1123 223948800 2400
30250964 dmitriy0712 F Sept. 10, 2017, 4:09 p.m. OK Java 8 TESTS 63 1247 195276800 2400
28665484 Kvark161 F July 18, 2017, 10:51 a.m. OK Java 8 TESTS 63 1263 224358400 2400
32050257 Scut82 F Nov. 4, 2017, 10:53 a.m. OK Java 8 TESTS 63 1372 449331200 2400
28665415 Kvark161 F July 18, 2017, 10:47 a.m. OK Java 8 TESTS 63 1419 224358400 2400
29337787 leign F Aug. 10, 2017, 7:54 p.m. OK Mono C# TESTS 63 810 274841600 2400
28745347 AnatolyTolstobrov F July 21, 2017, 8:52 a.m. OK MS C# TESTS 63 1138 144691200 2400
28745462 AnatolyTolstobrov F July 21, 2017, 8:56 a.m. OK MS C# TESTS 63 1169 146432000 2400
49612107 vjudge2 F Feb. 8, 2019, 2:38 a.m. OK MS C++ TESTS 63 421 102400 2400
47546909 vjudge1 F Dec. 27, 2018, 10:42 a.m. OK MS C++ TESTS 63 436 102400 2400
47546885 vjudge3 F Dec. 27, 2018, 10:41 a.m. OK MS C++ TESTS 63 436 102400 2400
47546869 vjudge5 F Dec. 27, 2018, 10:41 a.m. OK MS C++ TESTS 63 436 102400 2400
29318918 bramandia F Aug. 10, 2017, 6:17 a.m. OK MS C++ TESTS 63 452 2150400 2400
29188981 vjudge2 F Aug. 4, 2017, 8:44 a.m. OK MS C++ TESTS 63 483 2048000 2400
29188954 vjudge2 F Aug. 4, 2017, 8:43 a.m. OK MS C++ TESTS 63 499 2048000 2400
28605225 LLI_E_P_JI_O_K F July 16, 2017, 3:45 p.m. OK MS C++ TESTS 63 811 261836800 2400
49611958 vjudge4 F Feb. 8, 2019, 2:28 a.m. OK MS C++ TESTS 63 842 157491200 2400
49611942 vjudge2 F Feb. 8, 2019, 2:27 a.m. OK MS C++ TESTS 63 858 157491200 2400
65988119 iamssk F Nov. 29, 2019, 4:18 p.m. OK PyPy 3 TESTS 63 1778 12288000 2400

remove filters

Back to search problems