Submission #138856

#TimeUsernameProblemLanguageResultExecution timeMemory
138856vladciuperceanuCOCI17_cezar (COCI17_cezar)C++14
50 / 50
3 ms376 KiB
#include <iostream> using namespace std; int n,i,x,f[15]; int main() { cin >> n; for (i=2; i<=11; i++) f[i] = 4; f[10] = 16; int s = 0; for (i=1; i<=n; i++) { cin >> x; s += x; f[x]--; } int val = 21-s; int nr1 = 0; int nr2 = 0; for (i=val+1; i<=11; i++) nr1 += f[i]; for (i=2; i<=val; i++) nr2 += f[i]; if (nr1 >= nr2) cout << "DOSTA"; else 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...