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 checkoj at 2011-02-26 14:44:03 on Problem 2383
没想到什么好算法,于是就暴力了,

先用了一个 10^3 * 10^4 * 10^3 = 10^10 的暴力算法,结果2000+ms过了~

然后用了一下路径压缩 10^3 * 10^4 * α = 10^7 的算法,然后就900+ms了~

代码很短,去掉头文件的话大概不到 1000B 了

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