Magic Ship

Problem Name:
Magic Ship
Site:CodeForces
Links:
Tags:
Problem setters: