Thrid part of my COJ solutions

Caribbean Online Judge