ACM/ICPC集训队个人积分赛5

E: Cow Hopscotch