A Sequence Game
Idea from cmk666, Prepared by cmk666
B Even Modulo Pair
Idea from 244mhq, Prepared by NetSpeed1
C Dungeon
Idea from Link_Cut_qwq, Prepared by Xiaohuba
D Copy String
Idea from JoesSR, Prepared by JoesSR
E Journey
Idea from Link_Cut_qwq, Prepared by Xiaohuba
F1/F2 Chain Prefix Rank
Idea from JoesSR, Prepared by JoesSR
G Pointless Machine
Idea from Daniel777, Prepared by zjy2008
H PalindromePalindrome
Idea from zjy2008, Prepared by zjy2008
UPD: Unfortunately, the original analysis regarding the number of "relevant" pairs of disjoint substrings was incorrect. The proof was derived from an online blog concerning the range distinct palindrome substring query problem, but that proof turned out to be flawed. Consequently, we previously believed the complexity of the standard solution to be $$$O((n + q) \log n)$$$; however, after the contest, we discovered that it is actually $$$\Theta(n \log^2 n + q \log n)$$$ (and this lower bound is reachable). We apologize for any confusion caused.











