Added codejam 2013, round 1C, problem A

This solution passes the small input, but not the large one.
Iterative (and much faster) version of GCJ 2013 1C-A

Solves both inputs.
Solution for GCJ 2013 1C-B small input