Codeforces1100F. Ivan and Burgers(离线+线性基)

NoSuchKey