CodeChef October Challenge, Chef And Ground, Devu Land Dinasours, AC.