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

一直WA的看这里!!!

Posted by 2730052770 at 2017-07-15 10:54:04 on Problem 1556
不要用scanf/printf
请像这样输入输出:

输入:
ios::sync_with_stdio(0);//加个速。。。
cin>>(输入的值);

输出:
#include<iomanip> //要加<iomanip>头文件
cout<<fixed<<setprecision(2)<<(输出的值)<<endl; //cout保留两位小数输出

另外温馨提醒:
总共最多18堵墙,所以x可以为小数哦
最后别忘了多组输入全局清零

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