Codeforces Round 364 (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
700 Codeforces Round 364 (Div. 1) FINISHED False 7200 267974663 July 22, 2016, 4:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1210 ) E Cool Slogans PROGRAMMING string suffix structures strings 3300

B'Bomboslav set up a branding agency and now helps companies to create new logos and advertising slogans. In term of this problems, slogan of the company should be a non-empty substring of its name. For example, if the company name is "hornsandhoofs", then substrings "sand" and "hor" could be its slogans, while strings "e" and "hornss" can not. Sometimes the company performs rebranding and changes its slogan. Slogan A is considered to be cooler than slogan B if B appears in A as a substring at least twice (this occurrences are allowed to overlap). For example, slogan A xe2 x80 x89= xe2 x80 x89 "abacaba" is cooler than slogan B xe2 x80 x89= xe2 x80 x89 "ba", slogan A xe2 x80 x89= xe2 x80 x89 "abcbcbe" is cooler than slogan B xe2 x80 x89= xe2 x80 x89 "bcb", but slogan A xe2 x80 x89= xe2 x80 x89 "aaaaaa" is not cooler than slogan B xe2 x80 x89= xe2 x80 x89 "aba". You are given the company name w and your task is to help Bomboslav determine the length of the longest sequence of slogans s1, xe2 x80 x89s2, xe2 x80 x89..., xe2 x80 x89sk, such that any slogan in the sequence is cooler than the previous one. The first line of the input contains a single integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89200 xe2 x80 x89000) -- the length of the company name that asks Bomboslav to help. The second line contains the string w of length n, that consists of lowercase English letters. Print a single integer -- the maximum possible length of the sequence of slogans of the company named w, such that any slogan in the sequence (except the first one) is cooler than the previous '...

Tutorials

46283

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
39670731 luogu_bot5 E June 26, 2018, 9:03 a.m. OK GNU C++ TESTS 63 295 119193600 3300
40245586 jzqjzq E July 13, 2018, 12:23 a.m. OK GNU C++ TESTS 63 296 33484800 3300
36658638 elijahqi E March 27, 2018, 5:26 a.m. OK GNU C++ TESTS 63 296 121548800 3300
40235166 yasugongshang E July 12, 2018, 2:22 p.m. OK GNU C++ TESTS 63 296 247091200 3300
40234840 yasugongshang E July 12, 2018, 2:10 p.m. OK GNU C++ TESTS 63 296 247091200 3300
40604534 Stump E July 21, 2018, 10:34 a.m. OK GNU C++ TESTS 63 311 123699200 3300
37699480 zhhx E April 29, 2018, 4:06 a.m. OK GNU C++ TESTS 63 311 150937600 3300
40235344 yasugongshang E July 12, 2018, 2:27 p.m. OK GNU C++ TESTS 63 311 247091200 3300
28982922 vjudge4 E July 30, 2017, 5:26 a.m. OK GNU C++ TESTS 63 327 32972800 3300
30387996 vjudge3 E Sept. 16, 2017, 4:21 p.m. OK GNU C++ TESTS 63 327 53964800 3300
69833133 gongsuidashen E Jan. 30, 2020, 11:07 a.m. OK GNU C++11 TESTS 63 155 19251200 3300
67696726 XieRujian E Dec. 27, 2019, 1:08 p.m. OK GNU C++11 TESTS 63 156 19251200 3300
47242274 free4all E Dec. 19, 2018, 2:58 a.m. OK GNU C++11 TESTS 63 233 134758400 3300
49850388 SovietPower E Feb. 13, 2019, 2:59 a.m. OK GNU C++11 TESTS 63 249 134758400 3300
46699913 Hzyuer E Dec. 7, 2018, 12:36 a.m. OK GNU C++11 TESTS 63 249 215040000 3300
57814671 py_ultron E July 26, 2019, 7:03 p.m. OK GNU C++11 TESTS 63 264 31846400 3300
52332792 1695651 E April 5, 2019, 6:21 a.m. OK GNU C++11 TESTS 63 264 215244800 3300
50238420 Feeey E Feb. 20, 2019, 11:53 a.m. OK GNU C++11 TESTS 63 265 31846400 3300
50238253 Feeey E Feb. 20, 2019, 11:49 a.m. OK GNU C++11 TESTS 63 265 31846400 3300
51261313 awimrain E March 13, 2019, 1:26 p.m. OK GNU C++11 TESTS 63 265 135065600 3300
50808939 luogu_bot2 E March 5, 2019, 7:26 a.m. OK GNU C++14 TESTS 63 264 156569600 3300
50808794 hyj542682306 E March 5, 2019, 7:20 a.m. OK GNU C++14 TESTS 63 265 156569600 3300
47094285 david7ch E Dec. 16, 2018, 7:41 a.m. OK GNU C++14 TESTS 63 265 215244800 3300
30548277 vjudge2 E Sept. 20, 2017, 2:13 p.m. OK GNU C++14 TESTS 63 280 30924800 3300
51854109 DeadPillow E March 26, 2019, 9:44 a.m. OK GNU C++14 TESTS 63 280 31232000 3300
26869496 RNS_JKS E May 5, 2017, 12:31 a.m. OK GNU C++14 TESTS 63 295 30924800 3300
57450180 Scut82 E July 21, 2019, 9:28 a.m. OK GNU C++14 TESTS 63 295 31334400 3300
43898804 wangju E Oct. 6, 2018, 11:49 a.m. OK GNU C++14 TESTS 63 295 151142400 3300
52751041 vjudge4 E April 14, 2019, 2:03 p.m. OK GNU C++14 TESTS 63 296 119091200 3300
49847753 vjudge4 E Feb. 12, 2019, 11:47 p.m. OK GNU C++14 TESTS 63 296 294400000 3300
58369231 Refloria E Aug. 6, 2019, 5:51 a.m. OK GNU C++17 TESTS 63 265 171724800 3300
69551542 Tgiwx E Jan. 26, 2020, 6:44 a.m. OK GNU C++17 TESTS 63 280 215347200 3300
36634980 xehoth E March 26, 2018, 8:01 a.m. OK GNU C++17 TESTS 63 296 28160000 3300
50529197 CMXRYNP E Feb. 26, 2019, 12:59 p.m. OK GNU C++17 TESTS 63 311 114790400 3300
64151724 realSpongeBob E Nov. 3, 2019, 11:38 a.m. OK GNU C++17 TESTS 63 311 156467200 3300
68471502 hanyuwei E Jan. 10, 2020, 2:06 a.m. OK GNU C++17 TESTS 63 311 310681600 3300
60333484 vjudge5 E Sept. 10, 2019, 7:19 a.m. OK GNU C++17 TESTS 63 342 152678400 3300
39186260 iotang E June 12, 2018, 9:18 a.m. OK GNU C++17 TESTS 63 342 157491200 3300
41151056 zhaimingshuzms E Aug. 3, 2018, 8:54 a.m. OK GNU C++17 TESTS 63 342 162099200 3300
57797884 ZevenWu E July 26, 2019, 12:08 p.m. OK GNU C++17 TESTS 63 342 170496000 3300
38654627 guoshiyuan484 E May 27, 2018, 11:57 a.m. OK MS C++ TESTS 63 358 215244800 3300
38654434 guoshiyuan484 E May 27, 2018, 11:48 a.m. OK MS C++ TESTS 63 389 215244800 3300
47516021 vjudge2 E Dec. 26, 2018, 9:58 a.m. OK MS C++ TESTS 63 468 196812800 3300
20221229 lxn E Aug. 29, 2016, 1:49 a.m. OK MS C++ TESTS 63 3010 33484800 3300
20221222 lxn E Aug. 29, 2016, 1:47 a.m. OK MS C++ TESTS 63 3697 33484800 3300
20214157 lxn E Aug. 28, 2016, 3:16 p.m. OK MS C++ TESTS 63 3712 35532800 3300
68861373 vjudge3 E Jan. 15, 2020, 12:11 p.m. OK MS C++ 2017 TESTS 63 389 468377600 3300
68860553 vjudge2 E Jan. 15, 2020, 11:57 a.m. OK MS C++ 2017 TESTS 63 499 309657600 3300

remove filters

Back to search problems