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

Re:蒟蒻求助。。。TLE快要吐了。。。这道题要卡常数吗?

Posted by 768059009 at 2017-06-17 18:43:42 on Problem 3723
In Reply To:蒟蒻求助。。。TLE快要吐了。。。这道题要卡常数吗? Posted by:suncongbo at 2017-05-23 17:24:51
我改了一下你find_fa就A了
int find_fa(int m)
{
   return m == fa[m] ? m : fa[m] = find_fa(fa[m]);
}

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