(CodeForce) F. Ivan and Burgers(线性基+离线)

NoSuchKey