Captain Flint and a Long Voyage

Problem Name:
Captain Flint and a Long Voyage
Site:CodeForces
Links:
Tags: