Codeforces Round 110 (Div. 1)

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
156 Codeforces Round 110 (Div. 1) FINISHED False 7200 401286599 Feb. 29, 2012, 5:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3046 ) A Message PROGRAMMING brute force 1700

B'Dr. Moriarty is about to send a message to Sherlock Holmes. He has a string s. String p is called a substring of string s if you can read it starting from some position in the string s. For example, string "aba" has six substrings: "a", "b", "a", "ab", "ba", "aba". Dr. Moriarty plans to take string s and cut out some substring from it, let 's call it t. Then he needs to change the substring t zero or more times. As a result, he should obtain a fixed string u (which is the string that should be sent to Sherlock Holmes). One change is defined as making one of the following actions: Moriarty is very smart and after he chooses some substring t, he always makes the minimal number of changes to obtain u. Help Moriarty choose the best substring t from all substrings of the string s. The substring t should minimize the number of changes Moriarty should make to obtain the string u from it. The first line contains a non-empty string s, consisting of lowercase Latin letters. The second line contains a non-empty string u, consisting of lowercase Latin letters. The lengths of both strings are in the range from 1 to 2000, inclusive. Print the only integer -- the minimum number of changes that Dr. Moriarty has to make with the string that you choose. In the first sample Moriarty can take any substring of length 3, and it will be equal to the required message u, so Moriarty won 't have to make any changes. In the second sample you should take a substring consisting of characters from second to fourth ("bca") or from fifth to sixth ("bc"). Then you will only have to make one change: to change or to add the last character. In the third sample the initial string s doesn 't contain any character that the message should contain, so, whatever string you choose, you will have to make at least 7 changes to obtain the required message.'...

Tutorials

Codeforces Round 110 — Разбор задач

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
1355253 alexander-nsk94 A March 13, 2012, 3:24 p.m. OK Delphi TESTS 83 30 921600 1700
2404385 Misha100896 A Oct. 21, 2012, 2:22 p.m. OK Delphi TESTS 83 46 0 1700
3011688 Mosyagin A Jan. 26, 2013, 10:58 a.m. OK Delphi TESTS 83 46 102400 1700
1260569 m1_k3 A March 3, 2012, 2:34 p.m. OK Delphi TESTS 83 50 921600 1700
1260530 Natali A March 3, 2012, 2:18 p.m. OK Delphi TESTS 83 50 921600 1700
1251838 Casio A Feb. 29, 2012, 10:01 p.m. OK Delphi TESTS 83 50 921600 1700
1250245 agul A Feb. 29, 2012, 7:09 p.m. OK Delphi TESTS 83 50 921600 1700
1257115 agul A March 2, 2012, 1:30 p.m. OK Delphi TESTS 83 50 921600 1700
1407637 nebokaknebo A March 25, 2012, 6:41 a.m. OK Delphi TESTS 83 50 921600 1700
1338250 your_conscience A March 10, 2012, 4:54 p.m. OK Delphi TESTS 83 50 921600 1700
3408739 vanruch A March 26, 2013, 3:02 p.m. OK FPC TESTS 83 31 307200 1700
3750954 y.kemaev A May 20, 2013, 5:10 p.m. OK FPC TESTS 83 31 409600 1700
2754604 vjudge4 A Dec. 12, 2012, 12:54 p.m. OK FPC TESTS 83 46 512000 1700
1260710 Alex_2oo8 A March 3, 2012, 3:16 p.m. OK FPC TESTS 83 50 1024000 1700
1252518 coolinging A March 1, 2012, 3:28 a.m. OK FPC TESTS 83 50 1024000 1700
1442515 akim A March 30, 2012, 6:41 a.m. OK FPC TESTS 83 50 1331200 1700
1245960 Berezin A Feb. 29, 2012, 5:48 p.m. OK FPC TESTS 83 50 1331200 1700
1326815 object022 A March 9, 2012, 5:25 p.m. OK FPC TESTS 83 50 1433600 1700
1244232 Sereja A Feb. 29, 2012, 5:34 p.m. OK FPC TESTS 83 50 1433600 1700
1289798 wyl8899 A March 5, 2012, 9:13 a.m. OK FPC TESTS 83 60 1024000 1700
1254647 kelvinlau A March 1, 2012, 2:59 p.m. OK GNU C TESTS 83 30 1433600 1700
1249058 kawatea A Feb. 29, 2012, 6:37 p.m. OK GNU C TESTS 83 30 1433600 1700
3225184 backo A March 1, 2013, 1:26 p.m. OK GNU C TESTS 83 31 0 1700
4136365 picaso A July 22, 2013, 3:05 p.m. OK GNU C TESTS 83 46 64307200 1700
1383996 goxrush A March 21, 2012, 11:28 a.m. OK GNU C TESTS 83 50 1433600 1700
1383995 goxrush A March 21, 2012, 11:27 a.m. OK GNU C TESTS 83 50 1433600 1700
1259728 Sender A March 3, 2012, 9:53 a.m. OK GNU C TESTS 83 50 1433600 1700
1257757 Bounciness A March 2, 2012, 4:44 p.m. OK GNU C TESTS 83 50 1433600 1700
1256108 kagamiz A March 2, 2012, 6:14 a.m. OK GNU C TESTS 83 50 1433600 1700
1254165 coderbd A March 1, 2012, 12:50 p.m. OK GNU C TESTS 83 50 1433600 1700
3408842 guliashvili A March 26, 2013, 3:34 p.m. OK GNU C++ TESTS 83 15 0 1700
4084607 vjudge5 A July 17, 2013, 6:59 a.m. OK GNU C++ TESTS 83 15 0 1700
4084387 vjudge1 A July 17, 2013, 6:27 a.m. OK GNU C++ TESTS 83 15 0 1700
3993301 HoGho A June 29, 2013, 6:15 p.m. OK GNU C++ TESTS 83 15 0 1700
3993296 zzgooloo A June 29, 2013, 6:14 p.m. OK GNU C++ TESTS 83 15 0 1700
3697635 PeterNaut A May 9, 2013, 10:07 p.m. OK GNU C++ TESTS 83 15 0 1700
3195374 pimpke A Feb. 25, 2013, 3:15 p.m. OK GNU C++ TESTS 83 15 0 1700
3131381 lovefly1983 A Feb. 15, 2013, 8:06 a.m. OK GNU C++ TESTS 83 15 0 1700
2863683 hogloid A Jan. 1, 2013, 1:38 p.m. OK GNU C++ TESTS 83 15 0 1700
3195437 FreezingCool A Feb. 25, 2013, 3:32 p.m. OK GNU C++ TESTS 83 15 74854400 1700
3224537 2011330300713 A March 1, 2013, 12:21 p.m. OK GNU C++0x TESTS 83 15 0 1700
5456871 marat.snowbear A Dec. 17, 2013, 6:06 p.m. OK GNU C++0x TESTS 83 30 0 1700
4890825 A_Le_K A Oct. 25, 2013, 5:56 p.m. OK GNU C++0x TESTS 83 30 0 1700
1244550 watashi A Feb. 29, 2012, 5:36 p.m. OK GNU C++0x TESTS 83 30 1433600 1700
1251804 Archon.JK A Feb. 29, 2012, 9:49 p.m. OK GNU C++0x TESTS 83 30 17510400 1700
3199486 Doxer A Feb. 26, 2013, 3:36 p.m. OK GNU C++0x TESTS 83 46 0 1700
1253083 ronaflx A March 1, 2012, 6:44 a.m. OK GNU C++0x TESTS 83 50 1433600 1700
1251566 lyoz A Feb. 29, 2012, 9:07 p.m. OK GNU C++0x TESTS 83 50 1433600 1700
1247325 cafelier A Feb. 29, 2012, 6:05 p.m. OK GNU C++0x TESTS 83 50 1433600 1700
1248906 Archon.JK A Feb. 29, 2012, 6:34 p.m. OK GNU C++0x TESTS 83 50 17510400 1700
30698038 yaksha A Sept. 25, 2017, 7:55 a.m. OK GNU C++11 TESTS 83 30 0 1700
27427411 silicon_lover A May 29, 2017, 10:23 a.m. OK GNU C++11 TESTS 83 30 0 1700
22254341 apple1997 A Nov. 15, 2016, 11:44 p.m. OK GNU C++11 TESTS 83 30 0 1700
22206579 CKingy A Nov. 14, 2016, 11:45 a.m. OK GNU C++11 TESTS 83 30 0 1700
18591657 Levicorpus A June 19, 2016, 5:58 a.m. OK GNU C++11 TESTS 83 30 0 1700
15646828 ITDOI A Jan. 29, 2016, 2:06 p.m. OK GNU C++11 TESTS 83 30 0 1700
15199738 joisino A Jan. 6, 2016, 4:28 a.m. OK GNU C++11 TESTS 83 30 0 1700
15190245 cephian A Jan. 5, 2016, 10:54 a.m. OK GNU C++11 TESTS 83 30 0 1700
15166329 ImAlsoJoseph A Jan. 3, 2016, 8:54 a.m. OK GNU C++11 TESTS 83 30 0 1700
12611729 Scu_Mao A Aug. 20, 2015, 5:04 a.m. OK GNU C++11 TESTS 83 30 0 1700
32534439 Ashishgup A Nov. 21, 2017, 7:34 p.m. OK GNU C++14 TESTS 83 30 0 1700
32141020 Altitude A Nov. 8, 2017, 1:32 p.m. OK GNU C++14 TESTS 83 30 0 1700
30548262 zhouxiangjun A Sept. 20, 2017, 2:13 p.m. OK GNU C++14 TESTS 83 30 0 1700
29916782 ujjalpal04091997 A Aug. 30, 2017, 12:15 p.m. OK GNU C++14 TESTS 83 30 0 1700
27722205 Dalgerok A June 11, 2017, 2:08 p.m. OK GNU C++14 TESTS 83 30 0 1700
27709697 Bouhmid A June 10, 2017, 4:36 p.m. OK GNU C++14 TESTS 83 30 0 1700
22696221 aman_soni72 A Dec. 4, 2016, 1:05 p.m. OK GNU C++14 TESTS 83 30 204800 1700
35383362 hmc A Feb. 17, 2018, 6:16 a.m. OK GNU C++14 TESTS 83 30 1945600 1700
34063948 pirat3 A Jan. 10, 2018, 7:29 a.m. OK GNU C++14 TESTS 83 30 1945600 1700
34053595 nunes A Jan. 9, 2018, 4:29 p.m. OK GNU C++14 TESTS 83 30 1945600 1700
67685561 genesiscentury A Dec. 27, 2019, 8:42 a.m. OK GNU C++17 TESTS 83 60 204800 1700
59251039 vjudge2 A Aug. 22, 2019, 3:55 a.m. OK GNU C++17 TESTS 83 62 0 1700
68880018 amul_agrawal A Jan. 15, 2020, 6:24 p.m. OK GNU C++17 TESTS 83 62 0 1700
68862874 vjudge1 A Jan. 15, 2020, 12:39 p.m. OK GNU C++17 TESTS 83 62 0 1700
68862779 vjudge4 A Jan. 15, 2020, 12:37 p.m. OK GNU C++17 TESTS 83 62 0 1700
65792159 tizoy A Nov. 26, 2019, 11:54 p.m. OK GNU C++17 TESTS 83 62 0 1700
63731077 vjudge5 A Oct. 29, 2019, 2:03 p.m. OK GNU C++17 TESTS 83 62 0 1700
59510245 vjudge2 A Aug. 26, 2019, 7:43 a.m. OK GNU C++17 TESTS 83 62 0 1700
59047097 KirinDr A Aug. 18, 2019, 4:09 p.m. OK GNU C++17 TESTS 83 62 0 1700
58498235 SecondToNone A Aug. 9, 2019, 1:06 p.m. OK GNU C++17 TESTS 83 62 0 1700
51421697 yuhta A March 17, 2019, 4:53 p.m. OK Go TESTS 83 92 0 1700
1260421 cojna A March 3, 2012, 1:45 p.m. OK Haskell TESTS 83 170 2150400 1700
1310697 tjwilson A March 8, 2012, 1:53 a.m. OK Haskell TESTS 83 170 2150400 1700
1251084 Rotsor A Feb. 29, 2012, 8:32 p.m. OK Haskell TESTS 83 190 2150400 1700
1350367 hama-du A March 12, 2012, 5:35 a.m. OK Java 6 TESTS 83 110 43110400 1700
1245723 Sinner A Feb. 29, 2012, 5:46 p.m. OK Java 6 TESTS 83 110 44851200 1700
1253370 Lewin A March 1, 2012, 8:14 a.m. OK Java 6 TESTS 83 110 44851200 1700
1251776 Nox A Feb. 29, 2012, 9:45 p.m. OK Java 6 TESTS 83 110 44851200 1700
1246031 dusty.and.rusty A Feb. 29, 2012, 5:49 p.m. OK Java 6 TESTS 83 110 44851200 1700
1245055 uwi A Feb. 29, 2012, 5:40 p.m. OK Java 6 TESTS 83 110 44851200 1700
1246641 sophiebits A Feb. 29, 2012, 5:56 p.m. OK Java 6 TESTS 83 110 44953600 1700
1244796 bjin A Feb. 29, 2012, 5:38 p.m. OK Java 6 TESTS 83 110 44953600 1700
1246666 Slamur A Feb. 29, 2012, 5:56 p.m. OK Java 6 TESTS 83 110 45363200 1700
2102151 unit7 A Sept. 7, 2012, 9:44 a.m. OK Java 6 TESTS 83 125 43212800 1700
1310639 Naga A March 8, 2012, 1:16 a.m. OK Java 7 TESTS 83 170 44953600 1700
2754863 vjudge5 A Dec. 12, 2012, 2:03 p.m. OK Java 7 TESTS 83 171 14745600 1700
8532169 upsolving A Nov. 3, 2014, 7:27 a.m. OK Java 7 TESTS 83 186 0 1700
11686909 pitfall A June 20, 2015, 9:19 p.m. OK Java 7 TESTS 83 186 0 1700
1509203 littlepanda A April 10, 2012, 5:40 p.m. OK Java 7 TESTS 83 190 44953600 1700
7056642 alibaba A July 10, 2014, 5:37 a.m. OK Java 7 TESTS 83 216 0 1700
6060342 vjudge4 A March 18, 2014, 11:04 a.m. OK Java 7 TESTS 83 218 0 1700
4172939 0p9o8i A July 27, 2013, 3:50 a.m. OK Java 7 TESTS 83 218 0 1700
4203367 trunghieu11 A July 30, 2013, 8:49 a.m. OK Java 7 TESTS 83 248 0 1700
6125990 hama-du A March 23, 2014, 2:51 p.m. OK Java 7 TESTS 83 278 14233600 1700
69180354 adarsh000321 A Jan. 20, 2020, 9:53 a.m. OK Java 8 TESTS 83 248 0 1700
18633376 Safrout A June 21, 2016, 4:29 p.m. OK Java 8 TESTS 83 248 0 1700
44423303 ViciousCoder A Oct. 17, 2018, 1:36 a.m. OK Java 8 TESTS 83 280 0 1700
39580366 KulikAlex A June 23, 2018, 7:49 p.m. OK Java 8 TESTS 83 280 0 1700
68465651 Basant.Allam A Jan. 9, 2020, 8:12 p.m. OK Java 8 TESTS 83 310 0 1700
68465604 endlesserrors A Jan. 9, 2020, 8:11 p.m. OK Java 8 TESTS 83 310 0 1700
55841491 Leks360 A June 20, 2019, 6:16 p.m. OK Java 8 TESTS 83 310 0 1700
9641981 tomdmitriev A Jan. 31, 2015, 12:07 p.m. OK Java 8 TESTS 83 310 0 1700
18445326 vjudge4 A June 14, 2016, 7:16 a.m. OK Java 8 TESTS 83 310 20992000 1700
22199249 MazzForces A Nov. 13, 2016, 8:08 p.m. OK Java 8 TESTS 83 312 0 1700
1291440 sttaaasssiik A March 5, 2012, 4:08 p.m. OK Mono C# TESTS 83 90 13004800 1700
1255531 NickSerg A March 1, 2012, 8:46 p.m. OK Mono C# TESTS 83 110 13107200 1700
69491843 vasiliybukhanov A Jan. 24, 2020, 11:24 p.m. OK Mono C# TESTS 83 124 0 1700
13709407 Hepic_Antony_Skarlatos A Oct. 18, 2015, 8:43 a.m. OK Mono C# TESTS 83 124 204800 1700
1310624 stinstin A March 8, 2012, 1:11 a.m. OK Mono C# TESTS 83 130 13926400 1700
1289143 superbusinka A March 5, 2012, 6:12 a.m. OK Mono C# TESTS 83 130 28057600 1700
15158926 og.kostya A Jan. 2, 2016, 1:37 p.m. OK MS C# TESTS 83 186 102400 1700
5190999 Vlad_kv A Nov. 22, 2013, 10:31 a.m. OK MS C++ TESTS 83 30 0 1700
4942438 serglag A Oct. 31, 2013, 10:22 a.m. OK MS C++ TESTS 83 30 0 1700
4194621 Metamorphus A July 28, 2013, 12:23 p.m. OK MS C++ TESTS 83 30 0 1700
12610876 vjudge1 A Aug. 20, 2015, 2:21 a.m. OK MS C++ TESTS 83 30 0 1700
1293711 oppa.name A March 6, 2012, 10:09 a.m. OK MS C++ TESTS 83 30 1433600 1700
1438777 vjudge4 A March 29, 2012, 6:27 a.m. OK MS C++ TESTS 83 30 1433600 1700
1438841 vjudge5 A March 29, 2012, 6:57 a.m. OK MS C++ TESTS 83 30 1433600 1700
1438846 vjudge1 A March 29, 2012, 6:58 a.m. OK MS C++ TESTS 83 30 1433600 1700
1531370 emppu A April 13, 2012, 7:55 p.m. OK MS C++ TESTS 83 30 1433600 1700
1824666 goodhope A June 23, 2012, 6:33 p.m. OK MS C++ TESTS 83 30 1433600 1700
31959804 barmaleyKA A Nov. 1, 2017, 6:17 p.m. OK PascalABC.NET TESTS 83 92 102400 1700
45759619 mayakin A Nov. 15, 2018, 8:16 a.m. OK PHP TESTS 83 342 409600 1700
49369735 kipply A Feb. 2, 2019, 4:45 p.m. OK PyPy 2 TESTS 83 342 1433600 1700
23795151 masonsbro A Jan. 13, 2017, 11:52 p.m. OK PyPy 2 TESTS 83 342 22528000 1700
49368587 aeternalis1 A Feb. 2, 2019, 4:16 p.m. OK PyPy 2 TESTS 83 404 716800 1700
42857054 smnn A Sept. 14, 2018, 10:22 a.m. OK PyPy 3 TESTS 83 310 1638400 1700
64367553 hyodan A Nov. 6, 2019, 1:25 p.m. OK PyPy 3 TESTS 83 342 2560000 1700
64368152 Miraniyam A Nov. 6, 2019, 1:34 p.m. OK PyPy 3 TESTS 83 404 3379200 1700
3758883 Invincible_Pain A May 22, 2013, 9:48 p.m. OK Python 2 TESTS 83 875 614400 1700
1310863 dopey A March 8, 2012, 4:17 a.m. OK Python 2 TESTS 83 950 4096000 1700
5359516 yugle7 A Dec. 6, 2013, 9:46 a.m. OK Python 2 TESTS 83 1122 102400 1700
3417282 sping128 A March 28, 2013, 9:40 p.m. OK Python 2 TESTS 83 1296 921600 1700
35598389 laoliumang A Feb. 23, 2018, 1:49 p.m. OK Python 2 TESTS 83 1308 5120000 1700
5191108 Unlenin A Nov. 22, 2013, 10:48 a.m. OK Python 2 TESTS 83 1310 307200 1700
1354436 xonatius A March 13, 2012, 10:24 a.m. OK Python 2 TESTS 83 1720 2969600 1700
1256119 tmiyamon A March 2, 2012, 6:20 a.m. OK Python 2 TESTS 83 1860 2867200 1700
1256541 kovshi A March 2, 2012, 9:53 a.m. OK Python 2 TESTS 83 1880 2867200 1700
1806843 nealzane A June 16, 2012, 1:52 p.m. OK Python 2 TESTS 83 1880 2969600 1700
5359494 yugle7 A Dec. 6, 2013, 9:41 a.m. OK Python 3 TESTS 83 1278 102400 1700
41053739 indianfootball A July 31, 2018, 4:14 p.m. OK Python 3 TESTS 83 1590 0 1700
41983246 Mk_Python_v1 A Aug. 23, 2018, 3:45 a.m. OK Python 3 TESTS 83 1746 102400 1700
1310590 psomasu1 A March 8, 2012, 12:45 a.m. OK Ruby TESTS 83 1670 5632000 1700
1251087 mech A Feb. 29, 2012, 8:33 p.m. OK Scala TESTS 83 500 46387200 1700

remove filters

Back to search problems