Judicious Watching

Problem Name:
Judicious Watching
Site:CodeForces
Links:
Tags: