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 wzx88268 at 2007-07-19 10:37:23 on Problem 1045
用cin输入就老是wrong anwer
cin>>vs>>r>>c>>n; 

后来改用scanf就AC了
scanf("%lf%lf%lf%d",&vs,&r,&c,&n);

郁闷,可能在一个输入流里的类型必须一致,前面的vs r c都是浮点 而n是整形,可能就导致出错了

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