Arrival of the General

Problem Name:
Arrival of the General
Site:CodeForces
Links:
Tags:
Problem setters: