QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#717368#5304. Money Gamelllei#WA 1ms3852kbC++14283b2024-11-06 17:45:252024-11-06 17:45:26

Judging History

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

  • [2024-11-06 17:45:26]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3852kb
  • [2024-11-06 17:45:25]
  • 提交

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;	
}

詳細信息

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'