Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:一直WA的看这里!!!In Reply To:一直WA的看这里!!! Posted by:2730052770 at 2017-07-15 10:54:04 > 不要用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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator