gp of yuquan
What's the intended time complexity for E? Can it be solve in O(nk)?
2023 ICPC Asia West Continent Final Contest (live commentary)