SCU 2007 warmup contest 26

D: Gap Punishment Aligment Problem