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 zoujing1978 at 2016-10-13 22:31:45 on Problem 2502
这道题我已经看出是个求最短路径的Dijkstra算法的题目,网上一搜,果然是用这个算法,然后我就放心按照这个思路去做,Sample通过了,但是提交WA了好几次,郁闷之下,再看网上别人AC的代码,发现程序框架和算法都是一样的,只是最后输出的时候别人保留了两位小数,而我没有直接输出的。后来我也该为输出保留2位小数,就AC了。但是再一看题目,不知道题目哪里说了要保留两位小数啊,好像没说啊!我英语都忘光了,谁能告诉我题目哪里说了要保留两位小数?

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