Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

思路

Posted by micweaver at 2010-04-04 19:50:49 on Problem 2513
  1:用HASH或TRIE树统计各颜色出现次数
  2:将颜色看成结点,用并查集判断颜色间的连通性
  3:根据欧拉半回路定理判定是棍子是否可以连成一条线,即不超过两种颜色的出现次数为奇数

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator