One-Dimensional Battle Ships

Problem Name:
One-Dimensional Battle Ships
Site:CodeForces
Links:
Tags:
Problem setters: