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 tdzl2003 at 2005-07-27 20:58:12 on Problem 2509
In Reply To:怎么回事会WA,还有什么情况没有考虑到???是不是数据精度不够? Posted by:springtty at 2005-07-27 17:15:17
例如:
5 3
先是吸五根,换一根又吸掉,此时还剩三个而不是一个烟头,又可以换一根烟。因此结果应该是7而非六。
而你的程序输出结果为6。

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