3
18.85 28.27
double!!!
C++中,数据保留小数点后面两位的方法:
cout<<setiosflags(ios::fixed)<<setprecision(2);
同时,在程序开始处引入其所在的头文件:
#include <iomanip>
using namespace std;
Anything about this OnlineJudge, Please Contact Administrator. Click add QQ
OJ system based on HUSTOJ Project , UI based on Twitter Bootstrap
Copyright 2016 ACM算法攻关部cnt: 50083
关于网站改版