Submission #157831

#TimeUsernameProblemLanguageResultExecution timeMemory
157831dcjCOCI17_cezar (COCI17_cezar)C++14
50 / 50
2 ms504 KiB
#include <iostream> using namespace std; int k[15]; int main() { int N, X=0, n, v=0, d=0, u; cin >> N; for (int i=0 ; i<N ; i++) { cin >> n; X+=n; k[n]+=1; } u=21-X; for (int i=2 ; i<12 ; i++) { if (i <= u) { if (i==10) v+=(16-k[i]); else v+=(4-k[i]); } else { if (i==10) d+=(16-k[i]); else d+=(4-k[i]); } } if (d<v) cout << "VUCI"; else cout << "DOSTA"; 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...