Codeforces Round 578 (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
1200 Codeforces Round 578 (Div. 2) FINISHED False 7200 166296299 Aug. 11, 2019, 12:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 7805 ) E Compress Words PROGRAMMING brute force hashing implementation string suffix structures strings 2000

B'Amugae has a sentence consisting of n words. He want to compress this sentence into one word. Amugae doesn 't like repetitions, so when he merges two words into one word, he removes the longest prefix of the second word that coincides with a suffix of the first word. For example, he merges "sample" and "please" into "samplease". Amugae will merge his sentence left to right (i.e. first merge the first two words, then merge the result with the third word and so on). Write a program that prints the compressed word after the merging process ends. The first line contains an integer n ( 1 <= n <= 10^5 ), the number of the words in Amugae 's sentence. The second line contains n words separated by single space. Each words is non-empty and consists of uppercase and lowercase English letters and digits ( 'A ', 'B ', ..., 'Z ', 'a ', 'b ', ..., 'z ', '0 ', '1 ', ..., '9 '). The total length of the words does not exceed 10^6 . In the only line output the compressed word after the merging process ends as described in the problem. '...

Tutorials

Codeforces Round #578 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
58611282 Cr_Momi91 E Aug. 11, 2019, 2:08 p.m. OK GNU C++11 TESTS 72 46 5836800 2000
58617815 sosusosu E Aug. 11, 2019, 2:33 p.m. OK GNU C++11 TESTS 72 46 6041600 2000
58611693 Lius E Aug. 11, 2019, 2:10 p.m. OK GNU C++11 TESTS 72 46 6041600 2000
58610390 jyx E Aug. 11, 2019, 2:05 p.m. OK GNU C++11 TESTS 72 46 6041600 2000
58608410 HyscereXD E Aug. 11, 2019, 1:57 p.m. OK GNU C++11 TESTS 72 46 6041600 2000
58608228 XiaoWu E Aug. 11, 2019, 1:57 p.m. OK GNU C++11 TESTS 72 46 6041600 2000
58608328 Groexhy E Aug. 11, 2019, 1:57 p.m. OK GNU C++11 TESTS 72 46 6860800 2000
58614597 D2JPJ2D E Aug. 11, 2019, 2:22 p.m. OK GNU C++11 TESTS 72 46 7065600 2000
58611155 hcy1394 E Aug. 11, 2019, 2:08 p.m. OK GNU C++11 TESTS 72 46 7065600 2000
58618490 lengyanze E Aug. 11, 2019, 2:34 p.m. OK GNU C++11 TESTS 72 46 7987200 2000
58614234 SuperSuck E Aug. 11, 2019, 2:20 p.m. OK GNU C++14 TESTS 72 46 6656000 2000
58610449 deevroman E Aug. 11, 2019, 2:05 p.m. OK GNU C++14 TESTS 72 46 6860800 2000
58607533 VA11-HALL-A E Aug. 11, 2019, 1:54 p.m. OK GNU C++14 TESTS 72 46 6963200 2000
58596114 Sait2000 E Aug. 11, 2019, 1:19 p.m. OK GNU C++14 TESTS 72 46 7680000 2000
58599828 dapu81000 E Aug. 11, 2019, 1:29 p.m. OK GNU C++14 TESTS 72 46 7884800 2000
58613611 tokitsukaze E Aug. 11, 2019, 2:18 p.m. OK GNU C++14 TESTS 72 46 10137600 2000
58596311 DWAE86 E Aug. 11, 2019, 1:20 p.m. OK GNU C++14 TESTS 72 61 6041600 2000
58593765 k5888200 E Aug. 11, 2019, 1:13 p.m. OK GNU C++14 TESTS 72 61 6041600 2000
58609999 K_T_O E Aug. 11, 2019, 2:03 p.m. OK GNU C++14 TESTS 72 61 13209600 2000
58594340 HailHomura E Aug. 11, 2019, 1:14 p.m. OK GNU C++14 TESTS 72 61 28160000 2000
58616918 despair E Aug. 11, 2019, 2:30 p.m. OK GNU C++17 TESTS 72 46 4915200 2000
58603349 IAmMyHope E Aug. 11, 2019, 1:40 p.m. OK GNU C++17 TESTS 72 46 6041600 2000
58615662 ivancastel E Aug. 11, 2019, 2:26 p.m. OK GNU C++17 TESTS 72 46 6963200 2000
58613657 Obada-AlAbbadi E Aug. 11, 2019, 2:18 p.m. OK GNU C++17 TESTS 72 46 6963200 2000
58605741 SUDAL E Aug. 11, 2019, 1:48 p.m. OK GNU C++17 TESTS 72 46 6963200 2000
58599137 rubix03 E Aug. 11, 2019, 1:27 p.m. OK GNU C++17 TESTS 72 46 6963200 2000
58611548 Green55 E Aug. 11, 2019, 2:09 p.m. OK GNU C++17 TESTS 72 46 7475200 2000
58618218 hongye123456 E Aug. 11, 2019, 2:34 p.m. OK GNU C++17 TESTS 72 46 11059200 2000
58610459 hello_kiss E Aug. 11, 2019, 2:05 p.m. OK GNU C++17 TESTS 72 46 11264000 2000
58603203 SetsunaOgiso E Aug. 11, 2019, 1:40 p.m. OK GNU C++17 TESTS 72 46 11264000 2000
58614970 Derino E Aug. 11, 2019, 2:23 p.m. OK Java 8 TESTS 72 202 3379200 2000
58608826 altik_nik E Aug. 11, 2019, 1:59 p.m. OK Java 8 TESTS 72 265 8908800 2000
58602938 YourAdCouldBeHere E Aug. 11, 2019, 1:39 p.m. OK Java 8 TESTS 72 280 31334400 2000
58603303 indy256 E Aug. 11, 2019, 1:40 p.m. OK Java 8 TESTS 72 343 37376000 2000
58602507 LockHeart E Aug. 11, 2019, 1:38 p.m. OK Java 8 TESTS 72 358 4096000 2000
58588444 Shae E Aug. 11, 2019, 1:01 p.m. OK Java 8 TESTS 72 358 70860800 2000
58613290 spar5h E Aug. 11, 2019, 2:16 p.m. OK Java 8 TESTS 72 374 36147200 2000
58607651 LateRest E Aug. 11, 2019, 1:55 p.m. OK Mono C# TESTS 72 140 100864000 2000
58604725 jjang36524 E Aug. 11, 2019, 1:44 p.m. OK MS C++ 2017 TESTS 72 62 6041600 2000
58611948 vpike E Aug. 11, 2019, 2:11 p.m. OK MS C++ 2017 TESTS 72 77 7270400 2000
58611474 siwei E Aug. 11, 2019, 2:09 p.m. OK MS C++ 2017 TESTS 72 124 4915200 2000
58602165 c1729 E Aug. 11, 2019, 1:36 p.m. OK PyPy 2 TESTS 72 530 53248000 2000
58618473 PoCTo E Aug. 11, 2019, 2:34 p.m. OK PyPy 3 TESTS 72 732 80998400 2000

remove filters

Back to search problems