Codeforces Round 530 (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
1098 Codeforces Round 530 (Div. 1) FINISHED False 9000 190473863 Jan. 5, 2019, 4:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 238 ) F Ж-function PROGRAMMING string suffix structures strings 3500

B"The length of the longest common prefix of two strings s=s_1 s_2 ldots s_n and t = t_1 t_2 ldots t_m is defined as the maximum k <= min(n, m) such that s_1 s_2 ldots s_k equals t_1 t_2 ldots t_k . Let's denote the longest common prefix of two strings s and t as lcp(s,t) . Z-function of a string s_1 s_2 ... s_n is a sequence of integers z_1, z_2, ldots, z_n , where z_i = lcp(s_1 s_2 ldots s_n, s_i s_{i+1} ... s_n) . xd0 x96-function of a string s is defined as z_1 + z_2 + ldots + z_n . You're given a string s=s_1 s_2 ldots s_n and q queries. Each query is described by two integers l_i and r_i , where 1 <= l_i <= r_i <= n . The answer for the query is defined as xd0 x96-function of the string s_{l_i} s_{l_i +1} ldots s_{r_i} . The first line contains the string s , consisting of lowercase English letters ( 1 <= q |s| <= q 200 ,000 ). The second line contains one integer q -- the number of queries ( 1 <= q q <= q 200 ,000 ). Each of the following q lines contains two integers l_i and r_i , describing the query ( 1 <= q l_i <= q r_i <= q |s| ). For every query output one integer: the value of xd0 x96-function of the corresponding substring. In the first sample case there are four queries: "...

Tutorials

64331

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
62854779 gongsuidashen F Oct. 18, 2019, 8:50 a.m. OK GNU C++11 TESTS 42 1434 176947200 3500
51129811 Iscream2001 F March 10, 2019, 1:15 p.m. OK GNU C++11 TESTS 42 1466 176844800 3500
50163914 lavender730 F Feb. 19, 2019, 1:49 p.m. OK GNU C++11 TESTS 42 1466 176844800 3500
53630409 ohweonfire F May 1, 2019, 3:33 p.m. OK GNU C++11 TESTS 42 1887 183091200 3500
57734251 py_ultron F July 25, 2019, 9:28 a.m. OK GNU C++11 TESTS 42 2074 304742400 3500
57867463 lopare F July 27, 2019, 10:16 p.m. OK GNU C++11 TESTS 42 2136 304742400 3500
48718360 guglikogeorgia F Jan. 22, 2019, 12:24 p.m. OK GNU C++11 TESTS 42 2480 465100800 3500
48487419 sasuuuke F Jan. 17, 2019, 9:02 a.m. OK GNU C++11 TESTS 42 2480 465100800 3500
48344947 oyqy1203 F Jan. 13, 2019, 3:22 p.m. OK GNU C++11 TESTS 42 2480 465100800 3500
48343998 oyqy1203 F Jan. 13, 2019, 3:18 p.m. OK GNU C++11 TESTS 42 2605 465100800 3500
50249306 liouzhou_101 F Feb. 20, 2019, 4:28 p.m. OK GNU C++14 TESTS 42 1356 177049600 3500
49895735 ochilov-2004 F Feb. 14, 2019, 6:49 a.m. OK GNU C++14 TESTS 42 1372 177049600 3500
49850942 liouzhou_101 F Feb. 13, 2019, 3:34 a.m. OK GNU C++14 TESTS 42 1372 177049600 3500
49764585 liouzhou_101 F Feb. 11, 2019, 11 a.m. OK GNU C++14 TESTS 42 1372 177868800 3500
49764481 liouzhou_101 F Feb. 11, 2019, 10:57 a.m. OK GNU C++14 TESTS 42 1372 178176000 3500
50249670 liouzhou_101 F Feb. 20, 2019, 4:37 p.m. OK GNU C++14 TESTS 42 1528 177049600 3500
50249603 liouzhou_101 F Feb. 20, 2019, 4:35 p.m. OK GNU C++14 TESTS 42 1528 177049600 3500
49948774 krijgertje F Feb. 15, 2019, 1:11 p.m. OK GNU C++14 TESTS 42 1622 378368000 3500
54452663 Ma_Ster1 F May 21, 2019, 2:19 p.m. OK GNU C++14 TESTS 42 1637 233881600 3500
60377806 Scut82 F Sept. 11, 2019, 7:30 a.m. OK GNU C++14 TESTS 42 1700 217804800 3500
49290031 abbas_helli6 F Jan. 31, 2019, 7:04 p.m. OK GNU C++17 TESTS 42 1528 146124800 3500
49517578 thulasiramsan F Feb. 6, 2019, 4:58 a.m. OK GNU C++17 TESTS 42 1622 142438400 3500
48416896 PoemWine F Jan. 15, 2019, 10:56 a.m. OK GNU C++17 TESTS 42 1653 142438400 3500
49350547 4d2 F Feb. 2, 2019, 8:14 a.m. OK GNU C++17 TESTS 42 1684 142745600 3500
54648301 Benq F May 26, 2019, 3:06 a.m. OK GNU C++17 TESTS 42 1902 239923200 3500
62574767 ak_taniya F Oct. 14, 2019, 3:33 p.m. OK GNU C++17 TESTS 42 2183 304947200 3500
58165267 Alireza_Keshavarz F Aug. 2, 2019, 8:49 a.m. OK GNU C++17 TESTS 42 2261 304947200 3500
56043542 maroonrk F June 25, 2019, 3:28 p.m. OK GNU C++17 TESTS 42 2526 422912000 3500
58519097 TianZuiXing F Aug. 10, 2019, 3:01 a.m. OK GNU C++17 TESTS 42 3197 315699200 3500
58520785 TianPingXing F Aug. 10, 2019, 4:28 a.m. OK GNU C++17 TESTS 42 3369 155136000 3500

remove filters

Back to search problems