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 H3100402060 at 2011-02-20 21:36:48 on Problem 1703
In Reply To:先 re 在TLE 再超内存 天啊! 大牛们HELLP啊 Posted by:H3100402060 at 2011-02-20 21:30:16
我是找了两个点来当做树根,再对输入的数进行分类分别接在两棵树上 ,判断时再判断两个点是不是在同一棵树上!
  就是超内存啊,本人乃并查集新手,大牛们给点点拨

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