Codeforces Round 358 (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
682 Codeforces Round 358 (Div. 2) FINISHED False 7200 265641899 June 17, 2016, 4:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3337 ) D Alyona and Strings PROGRAMMING dp strings 1900

B"After returned from forest, Alyona started reading a book. She noticed strings s and t, lengths of which are n and m respectively. As usual, reading bored Alyona and she decided to pay her attention to strings s and t, which she considered very similar. Alyona has her favourite positive integer k and because she is too small, k does not exceed 10. The girl wants now to choose k disjoint non-empty substrings of string s such that these strings appear as disjoint substrings of string t and in the same order as they do in string s. She is also interested in that their length is maximum possible among all variants. Formally, Alyona wants to find a sequence of k non-empty strings p1, xe2 x80 x89p2, xe2 x80 x89p3, xe2 x80 x89..., xe2 x80 x89pk satisfying following conditions: Please help Alyona solve this complicated problem and find at least the sum of the lengths of the strings in a desired sequence. A substring of a string is a subsequence of consecutive characters of the string. In the first line of the input three integers n, m, k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891000, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8910) are given -- the length of the string s, the length of the string t and Alyona's favourite number respectively. The second line of the input contains string s, consisting of lowercase English letters. The third line of the input contains string t, consisting of lowercase English letters. In the only line print the only non-negative integer -- the sum of the lengths of the strings in a desired sequence. It is guaranteed, that at least one desired sequence exists. The following image describes the answer for the second sample case: "...

Tutorials

45491

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
18570424 lerom D June 18, 2016, 3:31 a.m. OK FPC TESTS 80 62 52838400 1900
22030550 nxkhang D Nov. 4, 2016, 9:11 a.m. OK FPC TESTS 81 78 88985600 1900
18693554 LossABike D June 24, 2016, 4:23 a.m. OK FPC TESTS 81 93 49152000 1900
18569281 dujunyi D June 18, 2016, 1:55 a.m. OK FPC TESTS 80 93 88371200 1900
18857267 yan_lazy D July 2, 2016, 4:47 p.m. OK FPC TESTS 81 93 88780800 1900
23531643 garde D Jan. 4, 2017, 8:59 a.m. OK FPC TESTS 81 93 109363200 1900
23532992 prosmgeorg D Jan. 4, 2017, 10:15 a.m. OK FPC TESTS 81 93 109465600 1900
20086958 Sanja D Aug. 23, 2016, 1:50 p.m. OK FPC TESTS 81 124 178380800 1900
18582907 ndkhaivn D June 18, 2016, 3:55 p.m. OK FPC TESTS 81 155 104960000 1900
18856430 yubaby D July 2, 2016, 3:35 p.m. OK FPC TESTS 81 187 96563200 1900
18603678 kostantinaras D June 19, 2016, 6:48 p.m. OK GNU C TESTS 81 77 89088000 1900
41295470 small_shulker D Aug. 7, 2018, 6:54 a.m. OK GNU C TESTS 81 78 88371200 1900
18573080 2013300262 D June 18, 2016, 6:52 a.m. OK GNU C++ TESTS 80 31 52531200 1900
18913825 1403mashaonan D July 6, 2016, 7:35 a.m. OK GNU C++ TESTS 81 46 12185600 1900
18567582 kainthabhishek D June 17, 2016, 11:04 p.m. OK GNU C++ TESTS 80 46 48435200 1900
19201137 vjudge2 D July 18, 2016, 4:47 a.m. OK GNU C++ TESTS 81 46 48537600 1900
18575611 jszyxw D June 18, 2016, 9:21 a.m. OK GNU C++ TESTS 80 46 48537600 1900
18576555 aryan_r D June 18, 2016, 10:14 a.m. OK GNU C++ TESTS 81 46 48742400 1900
19086724 Anadi D July 13, 2016, 5:04 p.m. OK GNU C++ TESTS 81 46 48947200 1900
18714535 liutun_ouc D June 25, 2016, 6:33 a.m. OK GNU C++ TESTS 81 46 49049600 1900
18570857 Minology D June 18, 2016, 4:08 a.m. OK GNU C++ TESTS 80 46 49049600 1900
24105484 JackSlowFuck D Jan. 25, 2017, 6:30 a.m. OK GNU C++ TESTS 81 46 50688000 1900
56727058 rainboy D July 8, 2019, 8:33 p.m. OK GNU C11 TESTS 81 61 8089600 1900
19186493 rawat D July 17, 2016, 8:09 a.m. OK GNU C11 TESTS 81 155 96563200 1900
18643947 imamit D June 22, 2016, 9:34 a.m. OK GNU C++11 TESTS 81 31 48537600 1900
19312462 coco0115401 D July 22, 2016, 3:29 a.m. OK GNU C++11 TESTS 81 31 52326400 1900
18576798 atatomir D June 18, 2016, 10:27 a.m. OK GNU C++11 TESTS 81 46 4198400 1900
18599359 JAFTW D June 19, 2016, 1:47 p.m. OK GNU C++11 TESTS 81 46 7884800 1900
18617837 quailty D June 20, 2016, 4:50 p.m. OK GNU C++11 TESTS 81 46 8089600 1900
18572766 vmrajas D June 18, 2016, 6:31 a.m. OK GNU C++11 TESTS 80 46 12083200 1900
55842673 mpnri D June 20, 2019, 6:58 p.m. OK GNU C++11 TESTS 81 46 12083200 1900
18870613 Darts501 D July 3, 2016, 4:59 p.m. OK GNU C++11 TESTS 81 46 16179200 1900
18639328 doraemon D June 22, 2016, 2:34 a.m. OK GNU C++11 TESTS 81 46 16793600 1900
18780086 reijnnn D June 29, 2016, 8:49 a.m. OK GNU C++11 TESTS 81 46 44953600 1900
69039202 vjudge1 D Jan. 18, 2020, 9:43 a.m. OK GNU C++14 TESTS 81 46 16076800 1900
21223483 ZYF1024 D Oct. 6, 2016, 12:15 a.m. OK GNU C++14 TESTS 81 46 24064000 1900
33852733 21August D Jan. 1, 2018, 6:11 p.m. OK GNU C++14 TESTS 81 46 46387200 1900
21962305 Kira96 D Nov. 1, 2016, 9:25 a.m. OK GNU C++14 TESTS 81 46 49049600 1900
25170383 vinayjaisinghani D March 3, 2017, 12:41 p.m. OK GNU C++14 TESTS 81 46 50483200 1900
24870309 Shiina D Feb. 21, 2017, 12:02 p.m. OK GNU C++14 TESTS 81 46 50995200 1900
29521464 2390_ D Aug. 17, 2017, 8:04 a.m. OK GNU C++14 TESTS 81 46 52633600 1900
26581862 square1001 D April 22, 2017, 11:17 a.m. OK GNU C++14 TESTS 81 46 59084800 1900
35591668 vjudge5 D Feb. 23, 2018, 8:45 a.m. OK GNU C++14 TESTS 81 46 90214400 1900
35591742 yp155136 D Feb. 23, 2018, 8:48 a.m. OK GNU C++14 TESTS 81 46 90214400 1900
69385894 aki167yuuki D Jan. 22, 2020, 10:24 p.m. OK GNU C++17 TESTS 81 46 9728000 1900
62433052 unrated_grandmaster D Oct. 12, 2019, 4:26 p.m. OK GNU C++17 TESTS 81 61 48230400 1900
56856868 PaciukZvichainyi D July 11, 2019, 6:58 p.m. OK GNU C++17 TESTS 81 61 88371200 1900
54462133 quake0 D May 21, 2019, 7:30 p.m. OK GNU C++17 TESTS 81 61 88371200 1900
51407688 Andreasyan D March 17, 2019, 10:37 a.m. OK GNU C++17 TESTS 81 61 88678400 1900
41657933 XsliferX D Aug. 16, 2018, 4 p.m. OK GNU C++17 TESTS 81 62 204800 1900
54462067 quake0 D May 21, 2019, 7:27 p.m. OK GNU C++17 TESTS 81 62 88371200 1900
54461812 quake0 D May 21, 2019, 7:16 p.m. OK GNU C++17 TESTS 81 62 88371200 1900
52641134 nishank.suresh D April 12, 2019, 12:31 p.m. OK GNU C++17 TESTS 81 62 89907200 1900
53406133 AryaKnight D April 27, 2019, 10:52 a.m. OK GNU C++17 TESTS 81 62 90009600 1900
18574690 gooo D June 18, 2016, 8:25 a.m. OK Go TESTS 80 234 22732800 1900
18574731 hanfei19910905 D June 18, 2016, 8:27 a.m. OK Go TESTS 80 249 88371200 1900
18574390 gooo D June 18, 2016, 8:08 a.m. OK Go TESTS 80 264 22220800 1900
69279963 ypa D Jan. 22, 2020, 5:22 a.m. OK Java 11 TESTS 81 499 142950400 1900
18657189 brian D June 23, 2016, 5:35 a.m. OK Java 7 TESTS 81 358 138137600 1900
18586192 sanket407 D June 18, 2016, 7:46 p.m. OK Java 7 TESTS 81 389 138240000 1900
18572226 daiict D June 18, 2016, 5:49 a.m. OK Java 7 TESTS 80 514 88371200 1900
18582549 heekyu83 D June 18, 2016, 3:35 p.m. OK Java 7 TESTS 81 530 77926400 1900
18652719 calvin.wunderkind D June 22, 2016, 8:30 p.m. OK Java 7 TESTS 81 873 161689600 1900
18607578 aste D June 20, 2016, 1:53 a.m. OK Java 7 TESTS 81 1013 138240000 1900
18957455 Aemon D July 7, 2016, 8:07 p.m. OK Java 7 TESTS 81 1232 138240000 1900
18712541 AbdelRahmanEmara D June 25, 2016, 2:29 a.m. OK Java 8 TESTS 81 202 73523200 1900
18565037 wistful23 D June 17, 2016, 8:41 p.m. OK Java 8 TESTS 80 218 5017600 1900
56727057 Dukkha D July 8, 2019, 8:33 p.m. OK Java 8 TESTS 81 249 4300800 1900
68068649 yaoct D Jan. 2, 2020, 9:10 a.m. OK Java 8 TESTS 81 280 141824000 1900
26503101 pitfall D April 19, 2017, 7:18 p.m. OK Java 8 TESTS 81 343 99532800 1900
50926400 hongquanntct D March 7, 2019, 12:04 p.m. OK Java 8 TESTS 81 358 77926400 1900
18602996 kvafy D June 19, 2016, 5:59 p.m. OK Java 8 TESTS 81 358 142028800 1900
18631717 Lili_ka D June 21, 2016, 2:20 p.m. OK Java 8 TESTS 81 373 76288000 1900
18631710 Lili_ka D June 21, 2016, 2:20 p.m. OK Java 8 TESTS 81 373 76288000 1900
18629789 yfo D June 21, 2016, 12:15 p.m. OK Java 8 TESTS 81 373 76288000 1900
18579671 renadeen D June 18, 2016, 1:05 p.m. OK MS C# TESTS 81 264 65126400 1900
22678426 og.kostya D Dec. 3, 2016, 1:51 p.m. OK MS C# TESTS 81 1200 88985600 1900
18567926 grandrogue D June 17, 2016, 11:36 p.m. OK MS C++ TESTS 80 46 48230400 1900
37509309 vjudge5 D April 21, 2018, 9:11 a.m. OK MS C++ TESTS 81 46 63180800 1900
28499667 alimamdouh1809 D July 13, 2017, 10:54 a.m. OK MS C++ TESTS 81 61 46592000 1900
19779656 Flowersea D Aug. 11, 2016, 8:16 a.m. OK MS C++ TESTS 81 61 51097600 1900
18565708 acka1357 D June 17, 2016, 9:01 p.m. OK MS C++ TESTS 80 61 88166400 1900
18574857 lxn D June 18, 2016, 8:33 a.m. OK MS C++ TESTS 80 62 204800 1900
19205355 zhujiawei D July 18, 2016, 7:37 a.m. OK MS C++ TESTS 81 62 121446400 1900
18751725 mshcherba D June 27, 2016, 12:11 p.m. OK MS C++ TESTS 81 77 88371200 1900
18574891 Denisson D June 18, 2016, 8:35 a.m. OK MS C++ TESTS 80 77 89395200 1900
19205547 vjudge5 D July 18, 2016, 7:43 a.m. OK MS C++ TESTS 81 77 121446400 1900
18698070 orailly D June 24, 2016, 9:39 a.m. OK PyPy 2 TESTS 81 327 10035200 1900
31630456 yugle7 D Oct. 23, 2017, 1:29 p.m. OK PyPy 3 TESTS 81 389 40857600 1900

remove filters

Back to search problems