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 |
别害人啊,根本不需要考虑0的情况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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator