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

E: Cow Telephones