QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#142272 | #1373. Rating Problems | A3bat_team_f_Masr# | Compile Error | / | / | C++14 | 323b | 2023-08-18 21:19:31 | 2023-08-18 21:19:31 |
Judging History
answer
#include <iostream>
using namespace std;
int main()
{
int n,k;
cin>>n>>k;
double sum=0;
for(int i=0;i<k;i++)
{
int x;
cin>>x;
sum+=x;
}
double tmp1=sum+(n-k)*3,tmp2=sum-(n-k)*3;
cout<<fixed<<setprecision(10)<<tmp2/n<<" "<<tmp1/n;
return 0;
}
詳細信息
answer.code: In function ‘int main()’: answer.code:17:18: error: ‘setprecision’ was not declared in this scope 17 | cout<<fixed<<setprecision(10)<<tmp2/n<<" "<<tmp1/n; | ^~~~~~~~~~~~