# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
676361 | 2022-12-30T13:24:52 Z | _________ | Mean (info1cup19_mean) | C++17 | 1 ms | 212 KB |
#include<bits/stdc++.h> using namespace std; int main (){ int x; cin>>x; int s; vector<int>q(0,x); for(int o=0;o<x;o++){ int z; cin>>z; q.push_back(z); } sort(q.begin(),q.end()); s=q[0]; for(int o=1;o<x;o++){s=(s+q[o])/2; } cout<<s; }
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 212 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 212 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |