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 |
Re:把min 设成0x7FFFFFFF,WA,改为0x7FFFFF,AC 为甚么啊,In Reply To:把min 设成0x7FFFFFFF,WA,改为0x7FFFFF,AC 为甚么啊, Posted by:ZJNU09220229 at 2010-10-30 17:09:34 注意这句:min+f[k][j]…… 目测楼上把无穷设的太大了,导致加法溢出,这个和变成负数==! 要给这个if语句里加一个判断条件min!=INF(因为min=INF时和不可能比D[j]更小), 或者把INF定的小一点。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator