# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
493251 | 2021-12-10T13:57:29 Z | 123 | Prosjek (COCI18_prosjek) | C++14 | 1 ms | 204 KB |
#include <bits/stdc++.h> using namespace std; int main(){ int n; double x[100]; for(int i=0;i<n;i++){ cin>> x[i]; } sort(x,x+n); x[1]=(x[0]+x[1])/2; for(int i=2;i<n;i++){ x[i]=(x[i-1]+x[i])/2; } printf("%.6lf\n",x[n-1]); }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 204 KB | Output isn't correct |
2 | Incorrect | 0 ms | 204 KB | Output isn't correct |
3 | Incorrect | 0 ms | 204 KB | Output isn't correct |
4 | Incorrect | 0 ms | 204 KB | Output isn't correct |
5 | Incorrect | 0 ms | 204 KB | Output isn't correct |
6 | Incorrect | 1 ms | 204 KB | Output isn't correct |
7 | Incorrect | 0 ms | 204 KB | Output isn't correct |
8 | Incorrect | 0 ms | 204 KB | Output isn't correct |
9 | Incorrect | 1 ms | 204 KB | Output isn't correct |
10 | Incorrect | 1 ms | 204 KB | Output isn't correct |