Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
思路1:用HASH或TRIE树统计各颜色出现次数 2:将颜色看成结点,用并查集判断颜色间的连通性 3:根据欧拉半回路定理判定是棍子是否可以连成一条线,即不超过两种颜色的出现次数为奇数 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator