QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#660312 | #5304. Money Game | Dark_night | WA | 0ms | 3880kb | C++14 | 460b | 2024-10-20 10:16:46 | 2024-10-20 10:16:47 |
Judging History
answer
#include<bits/stdc++.h>
#define ll long long
using namespace std;
int n;
ll sum;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0),cout.tie(0);
cin>>n;
for(int i=1;i<=n;i++)
{
int a;
cin>>a;
sum+=a;
}
for(int i=1;i<=n;i++)
{
if(i==1)
cout<<2.0*sum/(n+1)<<' ';
else
cout<<1.0*sum/(n+1)<<' ';
}
cout<<'\n';
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3880kb
input:
2 4 2
output:
4 2
result:
ok 2 numbers
Test #2:
score: -100
Wrong Answer
time: 0ms
memory: 3876kb
input:
2 2 3
output:
3.33333 1.66667
result:
wrong answer 2nd numbers differ - expected: '1.6666667', found: '1.6666700', error = '0.0000020'