codechef nov 2014 long contest
adding a bit based question