# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
392371 | 2021-04-20T23:04:13 Z | Gamma | Prosjek (COCI18_prosjek) | C++14 | 1 ms | 204 KB |
#include <bits/stdc++.h> using namespace std; int n; double a[21]; int main() { scanf("%d", &n); for(int i = 0; i < n; i++) { cin >> a[i]; } sort(a, a + n); for(int i = 1; i < n; i++) { //cout << a[i] << ' '; a[i] = (a[i] + a[i - 1]) / 2.0; } printf("%llf\n", a[n - 1]); }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 204 KB | Expected double, but "nan" found |
2 | Incorrect | 1 ms | 204 KB | Expected double, but "nan" found |
3 | Incorrect | 1 ms | 204 KB | Expected double, but "nan" found |
4 | Incorrect | 1 ms | 204 KB | Expected double, but "nan" found |
5 | Incorrect | 1 ms | 204 KB | Expected double, but "nan" found |
6 | Incorrect | 1 ms | 204 KB | Expected double, but "nan" found |
7 | Incorrect | 1 ms | 204 KB | Expected double, but "nan" found |
8 | Incorrect | 1 ms | 204 KB | Expected double, but "nan" found |
9 | Incorrect | 1 ms | 204 KB | Expected double, but "nan" found |
10 | Incorrect | 1 ms | 204 KB | Expected double, but "nan" found |