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

C语言标准规定就是double用%f输出,只是一般的编译器也都允许用%lf进行输出。

Posted by Ruby931031 at 2013-05-19 21:38:16 on Problem 3686 and last updated at 2013-05-19 21:38:35
In Reply To:Re:注意G++输出浮点数需要用%f, 而不是%lf Posted by:fyq at 2011-01-01 12:52:56
因此一般来说%lf也能混过去,但如果要求比较严格,%lf就挂了。坚持使用%f绝对是个好习惯

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