Submission #98976

#TimeUsernameProblemLanguageResultExecution timeMemory
98976OrtCOCI17_cezar (COCI17_cezar)C++11
50 / 50
3 ms420 KiB
#include<iostream> using namespace std; int arr[15] = {0,0,4,4,4,4,4,4,4,4,4,4,4,4,4}; int n, x, sum, a, b; int main() { cin.sync_with_stdio(0); cin.tie(0); cin.exceptions(cin.failbit); cin >> n; for(int i=0;i<n;i++) { cin >> x; arr[x]--; sum += x; } for(int i=0;i<=21-sum;i++) a += arr[i]; for(int i=21-sum+1;i<15;i++) b += arr[i]; a < b ? cout << "DOSTA" : cout << "VUCI"; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...