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 |
这个负数risk真是坑人一开始瞅了一眼感觉int不会超范围,就用的int了。 第一次 WA,看了下评论区,噢,居然还有负数。 遂把范围改为 (-1*total_str-1, total_weight] 改了好久才发现total_str超范围了,换成 -1*INF就OK了 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator