http://www.ityuedu.com/article/87351062923/
http://codeforces.com/blog/entry/4898
https://www.dropbox.com/s/6qa66ndsm9kt4v8/present.pdf
nthu:7354,usaco:6.1.3
hoj92