QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#331187#1373. Rating Problemsjhtang2#WA 0ms3712kbC++14330b2024-02-18 03:16:082024-02-18 03:16:09

Judging History

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

  • [2024-02-18 03:16:09]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3712kb
  • [2024-02-18 03:16:08]
  • 提交

answer

// Source: https://usaco.guide/general/io

#include <bits/stdc++.h>
using namespace std;

int main() {
	int n, k;
	cin >> n >> k;
	int sum = 0;	
	for (int i = 0; i < k; i++) {
		int r;
		cin >> r;
		sum += r;
	}

	cout << (sum + (n - k) * 3) / (double) n << " "
		<< (sum + (n - k) * -3) / (double) n << endl;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3712kb

input:

10 0

output:

3 -3

result:

wrong answer 1st numbers differ - expected: '-3.00000', found: '3.00000', error = '2.00000'