Codeforces Round 853 (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
1789 Codeforces Round 853 (Div. 2) FINISHED False 7200 54488399 Feb. 25, 2023, 2:20 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 726 ) F Serval and Brain Power PROGRAMMING brute force dp dp greedy implementation

B"Serval loves Brain Power and his brain power problem. Serval defines that a string T is powerful iff T can be obtained by concatenating some string T' multiple times. Formally speaking, T is powerful iff there exist a string T' and an integer k geq 2 such that T= underbrace{T'+T'+ ... +T'}_{k text{ times}} For example, gogogo is powerful because it can be obtained by concatenating go three times, but power is not powerful. Serval has a string S consists of lowercase English letters. He is curious about the longest powerful subsequence of S , and he only needs you to find out the length of it. If all the non-empty subsequences of S is not powerful, the answer is considered to be 0 . A string a is a subsequence of a string b if a can be obtained from b by the deletion of several (possibly, zero or all) characters. The first line contains a single string S ( |S| <= q 80 ) consisting of lowercase English letters. Print a single integer -- the length of the longest powerful subsequence of S . If all the non-empty subsequences of S is not powerful, print 0 . For the first sample, all of the non-empty subsequences of buaa are listed below: Since texttt{aa} = texttt{a} + texttt{a} , aa is a powerful subsequence. It can be shown that aa is the only powerful subsequence among them. So the answer is 2 . For the second sample, the longest powerful subsequence is codcod from codeforcesround. So the answer is 6 . "...

Tutorials

Codeforces Round #853 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
195015450 Xu_Hongxi F Feb. 26, 2023, 5:23 a.m. OK GNU C++14 TESTS 278 171 2457600
194973957 tibinyte F Feb. 25, 2023, 5:02 p.m. OK GNU C++14 TESTS 278 249 204800
195014248 DitaMirika F Feb. 26, 2023, 5:05 a.m. OK GNU C++14 TESTS 278 811 2457600
194963391 Krystallos F Feb. 25, 2023, 3:52 p.m. OK GNU C++14 TESTS 278 889 4710400
194967844 Reisael F Feb. 25, 2023, 4:09 p.m. OK GNU C++14 TESTS 278 1263 2662400
194967278 MakaPakka F Feb. 25, 2023, 4:07 p.m. OK GNU C++14 TESTS 278 1591 2457600
194976888 Cocoly1990 F Feb. 25, 2023, 5:20 p.m. OK GNU C++14 TESTS 278 1622 137113600
194966891 liympanda F Feb. 25, 2023, 4:05 p.m. OK GNU C++17 TESTS 278 265 4198400
195010180 jjjjj19980806 F Feb. 26, 2023, 3:30 a.m. OK GNU C++17 TESTS 278 374 1638400
194977989 Agreb F Feb. 25, 2023, 5:30 p.m. OK GNU C++17 TESTS 278 389 2355200
195005931 Zy2 F Feb. 26, 2023, 1:39 a.m. OK GNU C++17 TESTS 278 452 18841600
194967282 Um_nik F Feb. 25, 2023, 4:07 p.m. OK GNU C++17 TESTS 278 546 2355200
194979936 DeadlyPillow F Feb. 25, 2023, 5:48 p.m. OK GNU C++17 TESTS 278 639 716800
194969357 inhabitant F Feb. 25, 2023, 4:15 p.m. OK GNU C++17 TESTS 278 639 1740800
194979994 superguymj F Feb. 25, 2023, 5:49 p.m. OK GNU C++17 TESTS 278 655 2560000
195009526 alex0101 F Feb. 26, 2023, 3:12 a.m. OK GNU C++17 TESTS 278 686 2252800
195010687 superguymj F Feb. 26, 2023, 3:44 a.m. OK GNU C++17 TESTS 278 997 2560000
194963013 luogubot F Feb. 25, 2023, 3:50 p.m. OK GNU C++17 (64) TESTS 278 93 6348800
194988517 aryanc403 F Feb. 25, 2023, 7:23 p.m. OK GNU C++17 (64) TESTS 278 171 2150400
194985042 Krzychuo F Feb. 25, 2023, 6:40 p.m. OK GNU C++17 (64) TESTS 278 312 2457600
194968908 tute7627 F Feb. 25, 2023, 4:13 p.m. OK GNU C++17 (64) TESTS 278 780 2560000
195008805 Cxny F Feb. 26, 2023, 2:52 a.m. OK GNU C++17 (64) TESTS 278 1014 2969600
194993293 aryanc403 F Feb. 25, 2023, 8:32 p.m. OK GNU C++17 (64) TESTS 278 1029 2150400
194989844 MarcosK F Feb. 25, 2023, 7:41 p.m. OK GNU C++17 (64) TESTS 278 1170 2150400
194956596 aryanc403 F Feb. 25, 2023, 3:29 p.m. OK GNU C++17 (64) TESTS 278 1248 2150400
194989403 MarcosK F Feb. 25, 2023, 7:35 p.m. OK GNU C++17 (64) TESTS 278 1294 2150400
195015532 Kal_tsiit F Feb. 26, 2023, 5:25 a.m. OK GNU C++17 (64) TESTS 278 1388 4096000
194986412 triveni F Feb. 25, 2023, 6:56 p.m. OK GNU C++20 (64) TESTS 278 156 2048000
195012456 Zesty_Fox F Feb. 26, 2023, 4:29 a.m. OK GNU C++20 (64) TESTS 278 156 2457600
195005364 A_G F Feb. 26, 2023, 1:23 a.m. OK GNU C++20 (64) TESTS 278 171 2252800
195017555 amano_hina F Feb. 26, 2023, 5:54 a.m. OK GNU C++20 (64) TESTS 278 202 4096000
195005320 mister F Feb. 26, 2023, 1:22 a.m. OK GNU C++20 (64) TESTS 278 312 102400
194964527 maspy F Feb. 25, 2023, 3:56 p.m. OK GNU C++20 (64) TESTS 278 327 2150400
195010194 cmk666 F Feb. 26, 2023, 3:31 a.m. OK GNU C++20 (64) TESTS 278 452 25190400
195010417 SSerxhs F Feb. 26, 2023, 3:37 a.m. OK GNU C++20 (64) TESTS 278 483 1536000
194999151 SugoiTurtle F Feb. 25, 2023, 10:16 p.m. OK GNU C++20 (64) TESTS 278 483 5017600
194965540 kshitij_sodani F Feb. 25, 2023, 4 p.m. OK GNU C++20 (64) TESTS 278 514 4300800

remove filters

Back to search problems