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 |
不用彻底int64In Reply To:彻底int64就可 Posted by:rruucc at 2004-02-07 00:18:01 其实就一处乘除法的中间结果会超过int32,最终结果明显不会超过L。单独对此处int64计算就行。 甚至一处int64不用都行,利用代数变换,让中间结果不会太大就行(先除后乘,不要先乘后除) Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator