# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
604063 | hyakup | Prosjek (COCI18_prosjek) | C++17 | 1 ms | 340 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
int main(){
int n; scanf("%d", &n);
multiset<double> s;
for( int i = 0; i < n; i++){
double g; scanf("%lf", &g);
s.insert(g);
}
multiset<double>::iterator it, it2;
for( it = s.begin(); it != s.end() ; it++){
it2 = s.begin();
if( it == s.begin() ) continue;
s.insert(( *it + *it2 )/2 );
s.erase(it);
s.erase(it2);
}
printf("sla");
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |