HDOJ 4389 -- X mod f(x)
SRM 577
Merge branch 'master' of github.com:ftiasch/acm-icpc