| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 237978 | bananamaths | Akcija (COCI15_akcija) | C++14 | 53 ms | 1656 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;
     cin>>N;
     long long int V[N];
     long long int somma = 0;
     for(int i = 0;i<N;i++) {cin>>V[i];somma+=V[i];}
     sort(V, V+N);
     for(int i = N-3;i>=0;i-=3)
     {
        somma-=V[i];
     }
     cout<<somma;
     
}
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
