QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#660312#5304. Money GameDark_nightWA 0ms3880kbC++14460b2024-10-20 10:16:462024-10-20 10:16:47

Judging History

你现在查看的是最新测评结果

  • [2024-10-20 10:16:47]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3880kb
  • [2024-10-20 10:16:46]
  • 提交

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'