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

我用"%lf"读入,得到了一堆WA,改成cin竟然直接AC

Posted by fanhqme at 2010-07-27 11:43:08 on Problem 1810
In Reply To:不就是一直用“%lf”,不知“失败”何意? Posted by:nkzgm at 2010-07-27 11:02:42
double x,y;
scanf("%lf %lf",&x,&y);
map[(int)x][(int)y]++;
//这个是WA

double x,y;
cin>>x>>y;
map[(int)x][(int)y]++;
//这个是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