Submission #170323

#TimeUsernameProblemLanguageResultExecution timeMemory
170323ngmhCOCI17_cezar (COCI17_cezar)C++11
50 / 50
2 ms376 KiB
#include <bits/stdc++.h> using namespace std; int n, t, x, y, a[52]; int main(){ cin >> n; for(int i = 0; i < n; i++){ cin >> a[i]; t += a[i]; } t = 21-t; if(t < 10){ x = (t-1)*4; y = (14-t)*4; } else { x = 8+4*t; y = 44-4*t; } for(int i = 0; i < n; i++){ if(a[i] <= t) x--; else y--; } cout << (y >= x ? "DOSTA" : "VUCI"); }
#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...