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 |
POJ的评测机上pascal的浮点运算误差比较大……rt 两个代码差别如下 AC代码 for i:=1 to 65536 do lg2[i]:=trunc(ln(i)/ln(2)+1e-8); WA代码 for i:=1 to 65536 do lg2[i]:=trunc(ln(i)/ln(2)); 一个AC,一个WA,但这两个代码在我自己机器上对拍几百组极限规模数据均无区别。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator