Codeforces Round 410 (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
798 Codeforces Round 410 (Div. 2) FINISHED False 7200 239037899 April 21, 2017, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 8427 ) B Mike and strings PROGRAMMING brute force dp strings 1300

B'Mike has n strings s1, xe2 x80 x89s2, xe2 x80 x89..., xe2 x80 x89sn each consisting of lowercase English letters. In one move he can choose a string si, erase the first character and append it to the end of the string. For example, if he has the string "coolmike", in one move he can transform it into the string "oolmikec". Now Mike asks himself: what is minimal number of moves that he needs to do in order to make all the strings equal? The first line contains integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8950) -- the number of strings. This is followed by n lines which contain a string each. The i-th line corresponding to string si. Lengths of strings are equal. Lengths of each string is positive and don 't exceed 50. Print the minimal number of moves Mike needs in order to make all the strings equal or print xe2 x80 x89- xe2 x80 x891 if there is no solution. In the first sample testcase the optimal scenario is to perform operations in such a way as to transform all strings into "zwoxz". '...

Tutorials

Codeforces Round #410 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
47794669 vjudge1 B Dec. 31, 2018, 3:55 p.m. OK Clang++17 Diagnostics TESTS 99 46 0 1300
47840088 Sk. B Jan. 2, 2019, 11:20 a.m. OK Clang++17 Diagnostics TESTS 99 46 1126400 1300
40873364 vjudge1 B July 28, 2018, 7:22 a.m. OK Clang++17 Diagnostics TESTS 99 93 6348800 1300
26657602 StarScreamOwl B April 25, 2017, 10:04 a.m. OK Delphi TESTS 99 31 2560000 1300
30215177 vjudge2 B Sept. 9, 2017, 1:11 a.m. OK FPC TESTS 99 15 102400 1300
27394532 k_nd B May 27, 2017, 5:18 p.m. OK FPC TESTS 99 15 102400 1300
27919037 dambosin B June 20, 2017, 7:04 a.m. OK FPC TESTS 99 15 102400 1300
32317922 TShT B Nov. 14, 2017, 6:41 p.m. OK FPC TESTS 99 15 102400 1300
26701157 vjudge4 B April 27, 2017, 11:50 a.m. OK FPC TESTS 99 15 1740800 1300
26785641 quackable B May 1, 2017, 12:45 p.m. OK FPC TESTS 99 15 1740800 1300
26583943 yan_lazy B April 22, 2017, 12:54 p.m. OK FPC TESTS 99 15 1740800 1300
26643565 AHTOH._. B April 24, 2017, 2:58 p.m. OK FPC TESTS 99 15 1843200 1300
26576961 congdaoduy298 B April 22, 2017, 7:05 a.m. OK FPC TESTS 99 15 1843200 1300
26658142 nikih.10 B April 25, 2017, 10:39 a.m. OK FPC TESTS 99 30 1740800 1300
29841105 tabac B Aug. 28, 2017, 8:21 a.m. OK GNU C TESTS 99 15 0 1300
27100567 cshuaimin B May 14, 2017, 4:40 a.m. OK GNU C TESTS 99 15 0 1300
27099618 wingrez B May 14, 2017, 2:51 a.m. OK GNU C TESTS 99 15 0 1300
27066871 avdota2 B May 13, 2017, 1:28 a.m. OK GNU C TESTS 99 15 0 1300
26636583 KIDkid B April 24, 2017, 9:10 a.m. OK GNU C TESTS 99 15 1945600 1300
26801816 vjudge1 B May 2, 2017, 12:17 p.m. OK GNU C TESTS 99 15 1945600 1300
26738646 JoeBlow B April 29, 2017, 3:13 a.m. OK GNU C TESTS 99 15 1945600 1300
26706868 noyonhossen B April 27, 2017, 4:45 p.m. OK GNU C TESTS 99 15 1945600 1300
26688613 jk.bhu85 B April 26, 2017, 5:03 p.m. OK GNU C TESTS 99 15 1945600 1300
26632972 zhangcan2333 B April 24, 2017, 4:29 a.m. OK GNU C TESTS 99 15 1945600 1300
32325466 vjudge3 B Nov. 15, 2017, 6:35 a.m. OK GNU C++ TESTS 99 15 0 1300
32324823 vjudge5 B Nov. 15, 2017, 5:46 a.m. OK GNU C++ TESTS 99 15 0 1300
32156246 vjudge5 B Nov. 9, 2017, 11:27 a.m. OK GNU C++ TESTS 99 15 0 1300
31735900 mengbierr B Oct. 26, 2017, 11:03 a.m. OK GNU C++ TESTS 99 15 0 1300
31735729 _blackjack_ B Oct. 26, 2017, 10:56 a.m. OK GNU C++ TESTS 99 15 0 1300
31735533 qaz_kyle B Oct. 26, 2017, 10:49 a.m. OK GNU C++ TESTS 99 15 0 1300
32361899 Januzaj497 B Nov. 16, 2017, 5:37 p.m. OK GNU C++ TESTS 99 15 0 1300
31257247 code_crusher dextrous_fingers jayadhar_Gj B Oct. 12, 2017, 5:55 p.m. OK GNU C++ TESTS 99 15 0 1300
31168365 vjudge1 B Oct. 9, 2017, 1:21 p.m. OK GNU C++ TESTS 99 15 0 1300
30857091 vjudge1 B Sept. 30, 2017, 6:59 a.m. OK GNU C++ TESTS 99 15 0 1300
26829641 gr_koushik B May 4, 2017, 7:06 a.m. OK GNU C11 TESTS 99 15 0 1300
29487397 Abdollah B Aug. 15, 2017, 5:36 p.m. OK GNU C11 TESTS 99 15 1945600 1300
26587093 xiao-xiao B April 22, 2017, 3:23 p.m. OK GNU C11 TESTS 99 15 1945600 1300
47621341 keu B Dec. 28, 2018, 12:56 p.m. OK GNU C11 TESTS 99 31 0 1300
47459900 vjudge4 B Dec. 24, 2018, 2:31 p.m. OK GNU C11 TESTS 99 31 0 1300
60460984 kaiboy B Sept. 12, 2019, 8:34 p.m. OK GNU C11 TESTS 99 31 0 1300
47834839 vjudge3 B Jan. 2, 2019, 9:32 a.m. OK GNU C11 TESTS 99 31 0 1300
47834831 lxhsjbg B Jan. 2, 2019, 9:31 a.m. OK GNU C11 TESTS 99 31 0 1300
47803673 vjudge4 B Jan. 1, 2019, 4:20 a.m. OK GNU C11 TESTS 99 31 0 1300
47621357 vjudge5 B Dec. 28, 2018, 12:57 p.m. OK GNU C11 TESTS 99 31 0 1300
30253590 adelacvg B Sept. 10, 2017, 6:27 p.m. OK GNU C++11 TESTS 99 15 0 1300
31795741 stargazer B Oct. 27, 2017, 12:54 p.m. OK GNU C++11 TESTS 99 15 0 1300
31288849 MIS94 B Oct. 14, 2017, 4:07 a.m. OK GNU C++11 TESTS 99 15 0 1300
31231285 Aharder B Oct. 12, 2017, 3:13 a.m. OK GNU C++11 TESTS 99 15 0 1300
30789062 Nibir_Hossain B Sept. 27, 2017, 8:53 p.m. OK GNU C++11 TESTS 99 15 0 1300
30528757 Mohamed-Mostafa B Sept. 19, 2017, 8:23 p.m. OK GNU C++11 TESTS 99 15 0 1300
30497998 upczww B Sept. 19, 2017, 12:53 p.m. OK GNU C++11 TESTS 99 15 0 1300
29824885 Shrey97 B Aug. 27, 2017, 11:08 a.m. OK GNU C++11 TESTS 99 15 0 1300
29808548 wowoto9772 B Aug. 26, 2017, 2:31 p.m. OK GNU C++11 TESTS 99 15 0 1300
29769449 Jayzhang B Aug. 25, 2017, 5:45 a.m. OK GNU C++11 TESTS 99 15 0 1300
27227758 Zakntill_r18 B May 20, 2017, 4:17 a.m. OK GNU C++14 TESTS 99 15 0 1300
31874526 FastestFinger B Oct. 29, 2017, 6:24 p.m. OK GNU C++14 TESTS 99 15 0 1300
31874351 I_love_myself B Oct. 29, 2017, 6:15 p.m. OK GNU C++14 TESTS 99 15 0 1300
31134289 black_moon B Oct. 8, 2017, 6:12 a.m. OK GNU C++14 TESTS 99 15 0 1300
30655718 Lng B Sept. 24, 2017, 2:41 a.m. OK GNU C++14 TESTS 99 15 0 1300
30224964 shuafen B Sept. 9, 2017, 12:06 p.m. OK GNU C++14 TESTS 99 15 0 1300
27741065 Megumi_ B June 12, 2017, 3:57 p.m. OK GNU C++14 TESTS 99 15 0 1300
27398171 kingsmad B May 27, 2017, 11:56 p.m. OK GNU C++14 TESTS 99 15 0 1300
27349278 zstu_jack B May 26, 2017, 5:48 a.m. OK GNU C++14 TESTS 99 15 0 1300
27235451 npusjp B May 20, 2017, 12:56 p.m. OK GNU C++14 TESTS 99 15 0 1300
69775346 Anmol321 B Jan. 29, 2020, 4:16 p.m. OK GNU C++17 TESTS 99 15 204800 1300
59195715 sdibt4 B Aug. 21, 2019, 1:29 a.m. OK GNU C++17 TESTS 99 30 0 1300
51072581 zz212088 B March 9, 2019, 8:15 a.m. OK GNU C++17 TESTS 99 30 0 1300
51075981 loading.. B March 9, 2019, 9:23 a.m. OK GNU C++17 TESTS 99 30 0 1300
51088108 vjudge2 B March 9, 2019, 1:46 p.m. OK GNU C++17 TESTS 99 30 0 1300
51290447 Againstmoon B March 14, 2019, 9:52 a.m. OK GNU C++17 TESTS 99 30 204800 1300
64772601 LeoRiether B Nov. 13, 2019, 1:26 a.m. OK GNU C++17 TESTS 99 30 204800 1300
47362256 solo2309 B Dec. 22, 2018, 9:24 a.m. OK GNU C++17 TESTS 99 30 204800 1300
51109203 vjudge4 B March 10, 2019, 2:50 a.m. OK GNU C++17 TESTS 99 30 204800 1300
47967243 vjudge4 B Jan. 5, 2019, 12:45 p.m. OK GNU C++17 TESTS 99 30 307200 1300
35876973 vjudge1 B March 3, 2018, 9:37 a.m. OK GNU C++17 Diagnostics TESTS 99 1294 103833600 1300
27276160 megaspazz B May 22, 2017, 2:50 a.m. OK Go TESTS 99 31 204800 1300
26589111 odomontois B April 22, 2017, 5:38 p.m. OK Haskell TESTS 99 15 44851200 1300
26589145 odomontois B April 22, 2017, 5:40 p.m. OK Haskell TESTS 99 30 53248000 1300
31609023 nadavishe B Oct. 22, 2017, 4:17 p.m. OK Haskell TESTS 99 31 53248000 1300
67526710 codrex B Dec. 24, 2019, 2:18 p.m. OK Java 11 TESTS 99 218 0 1300
26990972 Laboon B May 10, 2017, 6:43 a.m. OK Java 8 TESTS 99 109 0 1300
49550705 Mooncrater B Feb. 7, 2019, 5:39 a.m. OK Java 8 TESTS 99 109 0 1300
47506995 satya26 B Dec. 26, 2018, 2 a.m. OK Java 8 TESTS 99 109 0 1300
29805814 miudit B Aug. 26, 2017, 12:07 p.m. OK Java 8 TESTS 99 109 0 1300
27479459 Sanjay_14BIT009 B June 1, 2017, 7:13 a.m. OK Java 8 TESTS 99 109 0 1300
27264695 saayaa B May 21, 2017, 10:29 a.m. OK Java 8 TESTS 99 109 0 1300
26986037 Aditya76 B May 9, 2017, 9:21 p.m. OK Java 8 TESTS 99 109 0 1300
26884227 v1ct0r30 B May 5, 2017, 3:41 p.m. OK Java 8 TESTS 99 109 0 1300
28950806 vjudge1 B July 28, 2017, 10:43 a.m. OK Java 8 TESTS 99 109 20582400 1300
29240280 love11mishra B Aug. 6, 2017, 11:45 a.m. OK Java 8 TESTS 99 109 20582400 1300
26804788 c01t B May 2, 2017, 2:55 p.m. OK JavaScript TESTS 99 31 7168000 1300
26577866 orailly B April 22, 2017, 7:52 a.m. OK JavaScript TESTS 99 46 8089600 1300
27557783 ricejars B June 4, 2017, 7:26 a.m. OK Kotlin TESTS 99 139 0 1300
26882106 nedomovnyvlad B May 5, 2017, 1:56 p.m. OK Kotlin TESTS 99 155 409600 1300
26718113 nedomovnyvlad B April 28, 2017, 11:40 a.m. OK Kotlin TESTS 99 156 22016000 1300
26633078 ScanNorOne B April 24, 2017, 4:38 a.m. OK Kotlin TESTS 99 202 22630400 1300
51027423 nemars B March 8, 2019, 12:18 p.m. OK Mono C# TESTS 99 62 6758400 1300
26580710 TRR B April 22, 2017, 10:14 a.m. OK Mono C# TESTS 99 62 9216000 1300
28653941 treasuryonly B July 18, 2017, 3:40 a.m. OK MS C# TESTS 99 46 12185600 1300
26644531 AnatolyTolstobrov B April 24, 2017, 3:51 p.m. OK MS C# TESTS 99 61 9523200 1300
26654378 alexweb B April 25, 2017, 6:54 a.m. OK MS C# TESTS 99 62 11878400 1300
26794211 vitoshacademy B May 2, 2017, 12:47 a.m. OK MS C# TESTS 99 62 14233600 1300
26604997 koyaaniqatsi B April 23, 2017, 1:30 p.m. OK MS C# TESTS 99 62 14336000 1300
26577808 ShowStopper728 B April 22, 2017, 7:49 a.m. OK MS C# TESTS 99 62 14438400 1300
26953032 nrvg B May 8, 2017, 8:44 a.m. OK MS C# TESTS 99 77 2969600 1300
32012696 Ahmad97Da B Nov. 3, 2017, 3:51 p.m. OK MS C++ TESTS 99 15 0 1300
30213781 Mii-chan B Sept. 8, 2017, 10:21 p.m. OK MS C++ TESTS 99 15 0 1300
26904502 PYLON B May 6, 2017, 3:19 p.m. OK MS C++ TESTS 99 15 102400 1300
27101894 wanggann B May 14, 2017, 6:52 a.m. OK MS C++ TESTS 99 15 102400 1300
27004843 unun B May 11, 2017, 1:31 a.m. OK MS C++ TESTS 99 15 102400 1300
26920407 vjudge5 B May 7, 2017, 9:37 a.m. OK MS C++ TESTS 99 15 102400 1300
26835566 Melo B May 4, 2017, 1:26 p.m. OK MS C++ TESTS 99 15 102400 1300
27701603 vjudge5 B June 10, 2017, 7:21 a.m. OK MS C++ TESTS 99 15 204800 1300
27403978 jerryovernight B May 28, 2017, 8:20 a.m. OK MS C++ TESTS 99 15 204800 1300
30239027 Egoist_ B Sept. 10, 2017, 6:37 a.m. OK MS C++ TESTS 99 15 204800 1300
69522821 vjudge5 B Jan. 25, 2020, 1:56 p.m. OK MS C++ 2017 TESTS 99 31 0 1300
51474472 dashayuandxiaokeai B March 19, 2019, 8:34 a.m. OK MS C++ 2017 TESTS 99 31 0 1300
55826891 felix412441 B June 20, 2019, 11:19 a.m. OK MS C++ 2017 TESTS 99 31 0 1300
69896499 vjudge3 B Jan. 31, 2020, 11:53 a.m. OK MS C++ 2017 TESTS 99 31 307200 1300
57991850 116c B July 30, 2019, 1:33 p.m. OK MS C++ 2017 TESTS 99 31 4812800 1300
51439322 biezhiwai B March 18, 2019, 8:53 a.m. OK MS C++ 2017 TESTS 99 46 0 1300
54913177 coder_pikachu B June 1, 2019, 12:17 p.m. OK MS C++ 2017 TESTS 99 46 102400 1300
61800537 AleksanderBalobanov B Oct. 3, 2019, 6:48 p.m. OK MS C++ 2017 TESTS 99 46 7270400 1300
54960037 jywj B June 2, 2019, 3:06 a.m. OK MS C++ 2017 TESTS 99 46 10035200 1300
26594447 19194 B April 23, 2017, 3:26 a.m. OK Perl TESTS 99 31 2764800 1300
26597849 mayakin B April 23, 2017, 7:34 a.m. OK PHP TESTS 99 46 6041600 1300
26589385 babang B April 22, 2017, 5:54 p.m. OK PyPy 2 TESTS 99 77 22118400 1300
26589405 babang B April 22, 2017, 5:55 p.m. OK PyPy 2 TESTS 99 78 22118400 1300
26952131 Yash_ B May 8, 2017, 7:24 a.m. OK PyPy 2 TESTS 99 93 921600 1300
26733802 attiw B April 28, 2017, 7:02 p.m. OK PyPy 2 TESTS 99 93 22118400 1300
30273484 neelbhallabos B Sept. 11, 2017, 7:51 p.m. OK PyPy 2 TESTS 99 109 614400 1300
43278544 soumyasarkar1998 B Sept. 23, 2018, 2:49 a.m. OK PyPy 2 TESTS 99 140 307200 1300
54852326 chaudhary_19 B May 30, 2019, 5:15 p.m. OK PyPy 2 TESTS 99 140 512000 1300
47870463 Mulx10 B Jan. 3, 2019, 12:34 p.m. OK PyPy 2 TESTS 99 155 204800 1300
29810995 m7mdbadawy B Aug. 26, 2017, 4:44 p.m. OK PyPy 2 TESTS 99 155 1126400 1300
45452879 YESMAths B Nov. 8, 2018, 5:07 p.m. OK PyPy 2 TESTS 99 202 2048000 1300
35903815 and800 B March 4, 2018, 12:02 a.m. OK PyPy 3 TESTS 99 93 20172800 1300
26873491 acesine B May 5, 2017, 5:38 a.m. OK PyPy 3 TESTS 99 124 3686400 1300
26579219 Ferume B April 22, 2017, 8:59 a.m. OK PyPy 3 TESTS 99 124 23961600 1300
47360135 yellowflash B Dec. 22, 2018, 8:15 a.m. OK PyPy 3 TESTS 99 140 409600 1300
44229704 omarnvidia B Oct. 12, 2018, 10:14 p.m. OK PyPy 3 TESTS 99 140 512000 1300
53844962 Hikari9 B May 7, 2019, 10:14 a.m. OK PyPy 3 TESTS 99 140 921600 1300
60668049 kopok2 B Sept. 16, 2019, 9:13 a.m. OK PyPy 3 TESTS 99 140 1843200 1300
47444816 H4Wk3ye B Dec. 24, 2018, 5:23 a.m. OK PyPy 3 TESTS 99 156 1740800 1300
62075786 scheduler B Oct. 7, 2019, 6:22 p.m. OK PyPy 3 TESTS 99 171 3174400 1300
45550397 homoeconomicus B Nov. 11, 2018, 4:39 a.m. OK PyPy 3 TESTS 99 186 921600 1300
27681450 Ostkaka B June 9, 2017, 2:50 a.m. OK Python 2 TESTS 99 61 0 1300
26895029 BlueHazard_rony B May 6, 2017, 7:01 a.m. OK Python 2 TESTS 99 61 0 1300
28553175 Serggor B July 14, 2017, 4:28 p.m. OK Python 2 TESTS 99 61 4710400 1300
31289279 biltharesatyendra B Oct. 14, 2017, 4:39 a.m. OK Python 2 TESTS 99 62 0 1300
27531925 instantkarma B June 2, 2017, 9:30 p.m. OK Python 2 TESTS 99 62 0 1300
27125890 muffy B May 15, 2017, 3:18 p.m. OK Python 2 TESTS 99 62 0 1300
26890471 downloadsteven B May 6, 2017, 12:40 a.m. OK Python 2 TESTS 99 62 0 1300
26775756 dfridman1 B April 30, 2017, 10:17 p.m. OK Python 2 TESTS 99 62 4710400 1300
26705344 igor375 B April 27, 2017, 3:08 p.m. OK Python 2 TESTS 99 62 4710400 1300
26589701 dan_ghita B April 22, 2017, 6:20 p.m. OK Python 2 TESTS 99 62 4710400 1300
30975740 _swarna B Oct. 3, 2017, 6:33 p.m. OK Python 3 TESTS 99 62 0 1300
27893683 andha_coder B June 19, 2017, 1:54 a.m. OK Python 3 TESTS 99 62 0 1300
27698214 Gandji B June 10, 2017, 1 a.m. OK Python 3 TESTS 99 62 0 1300
27469288 rhdmstjr B May 31, 2017, 2:46 p.m. OK Python 3 TESTS 99 62 0 1300
27460969 _kenn_chen B May 31, 2017, 7:14 a.m. OK Python 3 TESTS 99 62 0 1300
27418606 chetanrns B May 28, 2017, 7:07 p.m. OK Python 3 TESTS 99 62 0 1300
27340867 -wolfie- B May 25, 2017, 4:23 p.m. OK Python 3 TESTS 99 62 0 1300
27175316 Dawn_Smith B May 17, 2017, 8:34 a.m. OK Python 3 TESTS 99 62 0 1300
27057149 gh0st-dog B May 12, 2017, 3:09 p.m. OK Python 3 TESTS 99 62 0 1300
26891916 asangisetti B May 6, 2017, 3:16 a.m. OK Python 3 TESTS 99 62 0 1300
26611301 cielavenir B April 23, 2017, 4:53 p.m. OK Ruby TESTS 99 77 7065600 1300
26587326 phirasit B April 22, 2017, 3:37 p.m. OK Ruby TESTS 99 93 6860800 1300
26588371 JhonTorres B April 22, 2017, 4:41 p.m. OK Ruby TESTS 99 109 6553600 1300
26811822 I_love_SY B May 3, 2017, 3:02 a.m. OK Rust TESTS 99 31 1536000 1300

remove filters

Back to search problems