Codechef April 2014 Long

First 3 problems