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 |
Re:蒟蒻求助。。。TLE快要吐了。。。这道题要卡常数吗?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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator