Help needed in a String Problem

Правка en3, от 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.

Теги string suffix structures

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский Omar_Mohammad 2023-09-18 00:12:17 38
en2 Английский Omar_Mohammad 2023-09-15 04:39:42 383
en1 Английский Omar_Mohammad 2023-09-15 04:34:10 205 Initial revision (published)