QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#331187 | #1373. Rating Problems | jhtang2# | WA | 0ms | 3712kb | C++14 | 330b | 2024-02-18 03:16:08 | 2024-02-18 03:16:09 |
Judging History
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'