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

Re:为何这样AC cout<<setiosflags(ios::fixed)<<setprecision(6)<<x<<endl;这样就WA printf("%.6lf\n", x);

Posted by cloudsky at 2017-02-12 18:17:14 on Problem 2165
In Reply To:Re:为何这样AC cout<<setiosflags(ios::fixed)<<setprecision(6)<<x<<endl;这样就WA printf("%.6lf\n", x); Posted by:cloudsky at 2017-02-12 18:15:34
不要用"%lf",poj要用"%f"
bzoj等就可以用前者,不清楚为什么poj就不给用(貌似网上有分析?lf不是正规用法?)

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