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

别害人啊,根本不需要考虑0的情况

Posted by ACong at 2009-05-14 11:26:47 on Problem 2363
In Reply To:0 的答案是6... Posted by:CydorniaKnight at 2009-03-05 13:26:10
害得我真正的错误没找到,尽在这里费时间了。。。
常见错误应该是暴力时对上界的错误估计,像我一样以为pow(n,1/3)够了,其实当600时,最佳答案是6*10*10,这时ceil(pow(n,1/3))只等于9,如果只搜到这里的话,会找不到真正解,直接别吝啬了,改成ceil(sqrt(n))就行了。。。

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