The PDF version of the problemset can be downloaded here.
To enhance the strongness of the testdata: - the time limit has been shrunk to 2 seconds. - the upper bound of N, Q has been raised to 300000.
Migrated from old NTUJ.