Help needed in a String Problem

Revision en3, by Omar_Mohammad, 2023-09-18 00:12:17

I have been stuck for days on this problem with no progress so any help will be appreciated.

the problem if the image is not clear: given two strings s and t(|t|, |s| <= 1e5) and q queries (q <= 1e6). let's denote by t(a, b) as the substring of t that starts at a and ends at b. each query is of the form: l, r, i, j find the number of occurrences of t(l, r) + t(i, j) in s. where "+" is the concatenation operator. the sum of |t|, |s|, and q over all test cases <= 1e6.

Tags string suffix structures

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English Omar_Mohammad 2023-09-18 00:12:17 38
en2 English Omar_Mohammad 2023-09-15 04:39:42 383
en1 English Omar_Mohammad 2023-09-15 04:34:10 205 Initial revision (published)