Codeforces Round 622 (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
1313 Codeforces Round 622 (Div. 2) FINISHED False 7200 154731263 Feb. 23, 2020, 9:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 589 ) E Concatenation with intersection PROGRAMMING data structures hashing strings two pointers 2800

B"Vasya had three strings a , b and s , which consist of lowercase English letters. The lengths of strings a and b are equal to n , the length of the string s is equal to m . Vasya decided to choose a substring of the string a , then choose a substring of the string b and concatenate them. Formally, he chooses a segment [l_1, r_1] ( 1 <= q l_1 <= q r_1 <= q n ) and a segment [l_2, r_2] ( 1 <= q l_2 <= q r_2 <= q n ), and after concatenation he obtains a string a[l_1, r_1] + b[l_2, r_2] = a_{l_1} a_{l_1 + 1} ldots a_{r_1} b_{l_2} b_{l_2 + 1} ldots b_{r_2} . Now, Vasya is interested in counting number of ways to choose those segments adhering to the following conditions: The first line contains integers n and m ( 1 <= q n <= q 500 ,000, 2 <= q m <= q 2 cdot n ) -- the length of strings a and b and the length of the string s . The next three lines contain strings a , b and s , respectively. The length of the strings a and b is n , while the length of the string s is m . All strings consist of lowercase English letters. Print one integer -- the number of ways to choose a pair of segments, which satisfy Vasya's conditions. Let's list all the pairs of segments that Vasya could choose in the first example: "...

Tutorials

Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
71751262 dysyn1314 E Feb. 24, 2020, 8:15 a.m. OK GNU C++11 TESTS 106 62 25600000 2800
71798298 2016wudi E Feb. 24, 2020, 3:49 p.m. OK GNU C++11 TESTS 106 62 31027200 2800
71780476 C20191629 E Feb. 24, 2020, 2:56 p.m. OK GNU C++11 TESTS 106 62 41062400 2800
71765399 ddytxdy E Feb. 24, 2020, 1:21 p.m. OK GNU C++11 TESTS 106 62 43110400 2800
71678634 __CYJian__ E Feb. 23, 2020, 10:38 a.m. OK GNU C++11 TESTS 106 77 30412800 2800
71896281 xht37 E Feb. 26, 2020, 5:40 a.m. OK GNU C++11 TESTS 106 77 31232000 2800
71762980 msuwakow E Feb. 24, 2020, 12:35 p.m. OK GNU C++11 TESTS 106 77 34201600 2800
71740746 Frame233 E Feb. 24, 2020, 3:12 a.m. OK GNU C++11 TESTS 106 77 37068800 2800
71697218 xht37 E Feb. 23, 2020, 2:29 p.m. OK GNU C++11 TESTS 106 78 31232000 2800
71740723 Frame233 E Feb. 24, 2020, 3:12 a.m. OK GNU C++11 TESTS 106 78 33075200 2800
71681170 SARS-CoV-2 E Feb. 23, 2020, 10:48 a.m. OK GNU C++14 TESTS 106 93 37068800 2800
71684224 wucstdio E Feb. 23, 2020, 11 a.m. OK GNU C++14 TESTS 106 108 31539200 2800
71695673 yan-zp E Feb. 23, 2020, 2 p.m. OK GNU C++14 TESTS 106 109 19353600 2800
71904527 777777777Plus E Feb. 26, 2020, 9:26 a.m. OK GNU C++14 TESTS 106 109 62156800 2800
71767429 Combi E Feb. 24, 2020, 1:56 p.m. OK GNU C++14 TESTS 106 109 63385600 2800
71681351 Jeffrey E Feb. 23, 2020, 10:49 a.m. OK GNU C++14 TESTS 106 124 31436800 2800
71683070 RedStar_13 E Feb. 23, 2020, 10:56 a.m. OK GNU C++14 TESTS 106 139 120217600 2800
71753805 Mackerel_Pike E Feb. 24, 2020, 9:13 a.m. OK GNU C++14 TESTS 106 140 53862400 2800
71703495 Hell_Eclipse E Feb. 23, 2020, 4:12 p.m. OK GNU C++14 TESTS 106 140 74649600 2800
71679712 Aeon E Feb. 23, 2020, 10:42 a.m. OK GNU C++14 TESTS 106 187 58675200 2800
71898366 linly8713 E Feb. 26, 2020, 6:42 a.m. OK GNU C++17 TESTS 106 78 40140800 2800
71749870 emengdeath E Feb. 24, 2020, 7:41 a.m. OK GNU C++17 TESTS 106 93 78131200 2800
71692993 hank55663 E Feb. 23, 2020, 1:11 p.m. OK GNU C++17 TESTS 106 109 32051200 2800
71759389 libra9z E Feb. 24, 2020, 11:17 a.m. OK GNU C++17 TESTS 106 109 52633600 2800
71906891 luogu_bot4 E Feb. 26, 2020, 10:22 a.m. OK GNU C++17 TESTS 106 124 52633600 2800
71720777 hongvip1638 E Feb. 23, 2020, 5:49 p.m. OK GNU C++17 TESTS 106 124 64307200 2800
71896667 jiangly E Feb. 26, 2020, 5:52 a.m. OK GNU C++17 TESTS 106 140 23347200 2800
71679152 jiangly E Feb. 23, 2020, 10:40 a.m. OK GNU C++17 TESTS 106 140 23347200 2800
71674496 fake123 E Feb. 23, 2020, 10:21 a.m. OK GNU C++17 TESTS 106 140 33280000 2800
71675307 fmota E Feb. 23, 2020, 10:24 a.m. OK GNU C++17 TESTS 106 155 51609600 2800
71753105 cwise E Feb. 24, 2020, 8:58 a.m. OK Java 8 TESTS 106 1216 151244800 2800
71667642 riantkb E Feb. 23, 2020, 9:55 a.m. OK Mono C# TESTS 106 265 69632000 2800

remove filters

Back to search problems