15453721 2016-01-20 16:18:12 Los_Angelos_Laycurse D — Dining Room MS C++ Accepted 2464 ms 24600 KB
http://codeforces.me/gym/100863
spend three days on this egg hurt(chinglish) problem.
complexity : (N*Q^2*log(N)) notice :this is log(N) not log(N)^2
with very very very very very very very very heavily optimizition..