cocktail with snake

Problem Name:
cocktail with snake
Site:CodeForces
Links:
Tags: