QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#717368 | #5304. Money Game | lllei# | WA | 1ms | 3852kb | C++14 | 283b | 2024-11-06 17:45:25 | 2024-11-06 17:45:26 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
int n;
double a[200010],tot;
int main()
{
cin>>n;
for(int i=1;i<=n;i++)
{
cin>>a[i];
tot+=a[i];
}
for(int i=1;i<=n;i++)
{
if(i==1)
cout<<tot/(n+1)*2<<' ';
else
cout<<tot/(n+1)<<' ';
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3808kb
input:
2 4 2
output:
4 2
result:
ok 2 numbers
Test #2:
score: -100
Wrong Answer
time: 0ms
memory: 3852kb
input:
2 2 3
output:
3.33333 1.66667
result:
wrong answer 2nd numbers differ - expected: '1.6666667', found: '1.6666700', error = '0.0000020'