Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

求解释啊~

Posted by Ruby931031 at 2012-03-21 20:28:39 on Problem 2240
我用的是Bellman-Ford算法。看了讨论帖,知道要注意一种货币对自身的汇率问题,然后就在程序里加了一句:

if ( str1==str2  && rate!=1 )
 则输出可以……

为什么这样就错了!!
我拿着我的程序跟网上搜来的代码对比了很久,把这一句注释掉然后就给AC了……
AC和WA的代码只差这一句的注释所用的两个'/'!!
狂WA无数次还找不到错在哪儿。。。TAT~

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator