GCJ 2014 ... it begins
Finished Problem A correctly
Begin Problem B
Mostly working but having a small error in one of the sample cases. Still trying to identify what's going on