답안 #87820

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
87820 2018-12-02T17:04:51 Z AntonioDaki Prosjek (COCI18_prosjek) C++14
5 / 50
3 ms 624 KB
#include<bits/stdc++.h>

using namespace std;

int main()
{
	ios::sync_with_stdio(0);
	cin.tie(0);
	
    double n, x[22], m = 0;
    cin >> n;
    cin >> x[0];
    for(int i = 1; i < n; ++i){
    	cin >> x[i];
    	x[i] = (x[i] + x[i - 1]) / 2;
    	if(x[i] > m) m = x[i];
	}
	cout << m;

	return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 2 ms 376 KB Output isn't correct
2 Incorrect 2 ms 500 KB Output isn't correct
3 Incorrect 3 ms 500 KB Output isn't correct
4 Incorrect 2 ms 500 KB Output isn't correct
5 Correct 2 ms 588 KB Output is correct
6 Incorrect 2 ms 588 KB Output isn't correct
7 Incorrect 3 ms 588 KB Output isn't correct
8 Incorrect 2 ms 624 KB Output isn't correct
9 Incorrect 2 ms 624 KB Output isn't correct
10 Incorrect 2 ms 624 KB Output isn't correct