# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
917229 | 2024-01-27T13:51:46 Z | MateiKing80 | Mean (info1cup19_mean) | C++14 | 1 ms | 600 KB |
#include <bits/stdc++.h> using namespace std; priority_queue<int> pq; int main() { int n, a; cin >> n; for(int i = 1; i <= n; i ++) cin >> a, pq.push(-a); while(pq.size() > 1) { int x = pq.top(); pq.pop(); int y = pq.top(); pq.pop(); pq.push(-((- x - y) / 2)); } cout << -pq.top(); }
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 600 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 600 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |