Codeforces Round 244 (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
427 Codeforces Round 244 (Div. 2) FINISHED False 7200 332778599 May 2, 2014, 3:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2217 ) D Match & Catch PROGRAMMING dp string suffix structures strings 2000

B'Police headquarter is monitoring signal on different frequency levels. They have got two suspiciously encoded strings s1 and s2 from two different frequencies as signals. They are suspecting that these two strings are from two different criminals and they are planning to do some evil task. Now they are trying to find a common substring of minimum length between these two strings. The substring must occur only once in the first string, and also it must occur only once in the second string. Given two strings s1 and s2 consist of lowercase Latin letters, find the smallest (by length) common substring p of both s1 and s2, where p is a unique substring in s1 and also in s2. See notes for formal definition of substring and uniqueness. The first line of input contains s1 and the second line contains s2 (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89|s1|, xe2 x80 x89|s2| xe2 x80 x89 xe2 x89 xa4 xe2 x80 x895000). Both strings consist of lowercase Latin letters. Print the length of the smallest common unique substring of s1 and s2. If there are no common unique substrings of s1 and s2 print -1. Imagine we have string a xe2 x80 x89= xe2 x80 x89a1a2a3...a|a|, where |a| is the length of string a, and ai is the ith letter of the string. We will call string alal xe2 x80 x89+ xe2 x80 x891al xe2 x80 x89+ xe2 x80 x892...ar (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89l xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89r xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89|a|) the substring [l, xe2 x80 x89r] of the string a. The substring [l, xe2 x80 x89r] is unique in a if and only if there is no pair l1, xe2 x80 x89r1 such that l1 xe2 x80 x89 xe2 x89 xa0 xe2 x80 x89l and the substring [l1, xe2 x80 x89r1] is equal to the substring [l, xe2 x80 x89r] in a.'...

Tutorials

Codeforces Round #244 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
58415005 luogu_bot1 D Aug. 7, 2019, 4:18 a.m. OK FPC TESTS 169 46 1945600 2000
58415193 vjudge1 D Aug. 7, 2019, 4:25 a.m. OK FPC TESTS 169 46 2252800 2000
58414032 luogu_bot4 D Aug. 7, 2019, 3:31 a.m. OK FPC TESTS 169 124 1945600 2000
29517209 Minh_love_Hong_Phuc D Aug. 17, 2017, 3:39 a.m. OK FPC TESTS 169 249 326451200 2000
52556677 newp D April 10, 2019, 8:09 a.m. OK FPC TESTS 169 514 100864000 2000
27783394 logarithm D June 14, 2017, 11:56 p.m. OK GNU C TESTS 169 31 6348800 2000
29641351 vjudge2 D Aug. 21, 2017, 10:38 a.m. OK GNU C++ TESTS 169 15 307200 2000
19587600 vjudge3 D Aug. 2, 2016, 9:26 p.m. OK GNU C++ TESTS 169 15 307200 2000
23004232 vjudge1 D Dec. 15, 2016, 11:19 a.m. OK GNU C++ TESTS 169 15 512000 2000
14759180 accelerator D Dec. 11, 2015, 2:21 p.m. OK GNU C++ TESTS 169 15 1331200 2000
25244622 Grunt D March 5, 2017, 12:06 p.m. OK GNU C++ TESTS 169 15 2150400 2000
23217260 stonepage D Dec. 22, 2016, 4:43 a.m. OK GNU C++ TESTS 169 15 2355200 2000
14107521 keshuai D Nov. 6, 2015, 1:58 p.m. OK GNU C++ TESTS 169 15 2355200 2000
14058350 vjudge1 D Nov. 4, 2015, 1:42 p.m. OK GNU C++ TESTS 169 15 2355200 2000
14058321 vjudge2 D Nov. 4, 2015, 1:40 p.m. OK GNU C++ TESTS 169 15 2355200 2000
25452800 Heilce D March 13, 2017, 11:48 a.m. OK GNU C++ TESTS 169 15 2457600 2000
58041954 rainboy D July 30, 2019, 8:08 p.m. OK GNU C11 TESTS 169 343 300748800 2000
19355013 vjudge3 D July 23, 2016, 3:59 a.m. OK GNU C++11 TESTS 169 15 307200 2000
19355036 vjudge5 D July 23, 2016, 4 a.m. OK GNU C++11 TESTS 169 15 307200 2000
30323461 newgate D Sept. 14, 2017, 9:02 a.m. OK GNU C++11 TESTS 169 15 1228800 2000
31212023 vjudge3 D Oct. 11, 2017, 9:15 a.m. OK GNU C++11 TESTS 169 15 1228800 2000
15338792 Heristor D Jan. 14, 2016, 1:45 a.m. OK GNU C++11 TESTS 169 15 1536000 2000
25362521 shenzui D March 9, 2017, 2:42 p.m. OK GNU C++11 TESTS 169 15 2150400 2000
21313188 hippie D Oct. 9, 2016, 8:30 a.m. OK GNU C++11 TESTS 169 15 2355200 2000
26787656 SilverNebula D May 1, 2017, 2:56 p.m. OK GNU C++11 TESTS 169 15 2355200 2000
25656790 AaronSwartz D March 19, 2017, 11:05 p.m. OK GNU C++11 TESTS 169 15 2457600 2000
20265411 tun D Aug. 29, 2016, 9:57 p.m. OK GNU C++11 TESTS 169 15 2560000 2000
31880017 smu201111192 D Oct. 30, 2017, 2:24 a.m. OK GNU C++14 TESTS 169 15 409600 2000
32098879 cwhao D Nov. 6, 2017, 2:52 p.m. OK GNU C++14 TESTS 169 15 512000 2000
31211101 vjudge3 D Oct. 11, 2017, 8:30 a.m. OK GNU C++14 TESTS 169 15 1331200 2000
31210992 vjudge5 D Oct. 11, 2017, 8:26 a.m. OK GNU C++14 TESTS 169 15 1331200 2000
31211299 vjudge5 D Oct. 11, 2017, 8:39 a.m. OK GNU C++14 TESTS 169 15 1331200 2000
35992702 farhad519 D March 6, 2018, 1:12 p.m. OK GNU C++14 TESTS 169 15 2355200 2000
35718761 0w1 D Feb. 26, 2018, 3:29 a.m. OK GNU C++14 TESTS 169 15 2355200 2000
28388435 tom D July 9, 2017, 1:44 p.m. OK GNU C++14 TESTS 169 15 2355200 2000
25163486 Grunt D March 3, 2017, 6:14 a.m. OK GNU C++14 TESTS 169 15 2457600 2000
32911591 vjudge4 D Dec. 4, 2017, 2:53 a.m. OK GNU C++14 TESTS 169 15 2457600 2000
56806571 oridya D July 10, 2019, 2:07 p.m. OK GNU C++17 TESTS 169 31 204800 2000
56796803 oridya D July 10, 2019, 12:49 p.m. OK GNU C++17 TESTS 169 31 204800 2000
43647793 Abdelrhman_Akram D Oct. 1, 2018, 2:25 p.m. OK GNU C++17 TESTS 169 31 307200 2000
38535667 RUSH_D_CAT D May 22, 2018, 12:44 p.m. OK GNU C++17 TESTS 169 31 307200 2000
43273818 MahmoudHamdyY D Sept. 22, 2018, 8:51 p.m. OK GNU C++17 TESTS 169 31 512000 2000
59435071 vjudge2 D Aug. 25, 2019, 8:22 a.m. OK GNU C++17 TESTS 169 31 1638400 2000
40653592 vjudge2 D July 23, 2018, 1:50 a.m. OK GNU C++17 TESTS 169 31 1638400 2000
58365501 ruo D Aug. 6, 2019, 3:32 a.m. OK GNU C++17 TESTS 169 31 1843200 2000
58710590 Demerzel_wyh D Aug. 13, 2019, 12:04 p.m. OK GNU C++17 TESTS 169 31 2560000 2000
61775012 shuerss D Oct. 3, 2019, 11:27 a.m. OK GNU C++17 TESTS 169 31 2560000 2000
63962272 synapse D Nov. 1, 2019, 5:45 a.m. OK Go TESTS 169 46 0 2000
62033815 synapse D Oct. 7, 2019, 2:37 a.m. OK Go TESTS 169 46 0 2000
62033503 synapse D Oct. 7, 2019, 2:27 a.m. OK Go TESTS 169 46 0 2000
34729615 aabdelzaher D Jan. 31, 2018, 7:30 a.m. OK Java 8 TESTS 169 140 21811200 2000
34663086 Hoda_Hisham D Jan. 29, 2018, 1:38 p.m. OK Java 8 TESTS 169 140 21811200 2000
34661502 Kharouba D Jan. 29, 2018, 12:46 p.m. OK Java 8 TESTS 169 140 21811200 2000
41537953 aminul D Aug. 12, 2018, 7:19 p.m. OK Java 8 TESTS 169 155 0 2000
31795087 tomdmitriev D Oct. 27, 2017, 12:34 p.m. OK Java 8 TESTS 169 155 0 2000
34693949 G.Mohamed D Jan. 30, 2018, 1:14 a.m. OK Java 8 TESTS 169 155 21708800 2000
34662290 Minaa D Jan. 29, 2018, 1:14 p.m. OK Java 8 TESTS 169 155 21708800 2000
34662549 mariem_kandil D Jan. 29, 2018, 1:22 p.m. OK Java 8 TESTS 169 156 21913600 2000
49174689 I_love_Harpae D Jan. 29, 2019, 7:46 p.m. OK Java 8 TESTS 169 171 0 2000
46956051 Ahmad D Dec. 13, 2018, 4:05 a.m. OK Java 8 TESTS 169 171 0 2000
31618148 marszed D Oct. 23, 2017, 2:43 a.m. OK MS C++ TESTS 169 30 5427200 2000
58410663 vjudge3 D Aug. 7, 2019, 1:26 a.m. OK MS C++ TESTS 169 31 204800 2000
12941696 Maffka D Sept. 10, 2015, 5:59 p.m. OK MS C++ TESTS 169 31 1433600 2000
58428044 vjudge2 D Aug. 7, 2019, 10:38 a.m. OK MS C++ TESTS 169 46 307200 2000
40988699 ReaLNero1 D July 30, 2018, 10:16 p.m. OK MS C++ TESTS 169 46 307200 2000
44721341 vjudge1 D Oct. 23, 2018, 5:20 a.m. OK MS C++ TESTS 169 46 2969600 2000
27095344 robinyu D May 13, 2017, 6:21 p.m. OK MS C++ TESTS 169 171 54784000 2000
58709742 vjudge4 D Aug. 13, 2019, 11:47 a.m. OK MS C++ TESTS 169 358 204800 2000
13258591 Auster D Sept. 28, 2015, 7:35 a.m. OK MS C++ TESTS 169 841 614400 2000
47486397 yakamoto D Dec. 25, 2018, 8:57 a.m. OK Scala TESTS 169 514 0 2000

remove filters

Back to search problems