Submission #144710

#TimeUsernameProblemLanguageResultExecution timeMemory
144710alexandra_udristoiuCOCI17_cezar (COCI17_cezar)C++14
50 / 50
3 ms504 KiB
#include<iostream> using namespace std; int n, i, x, sum, nr1, nr2; int ff[14]; int main(){ cin>> n; for(i = 1; i <= n; i++){ cin>> x; sum += x; } sum = 21 - sum; for(i = 2; i <= 11; i++){ ff[i] = 4; } ff[10] += 12; for(i = 2; i <= sum; i++){ nr1 += ff[i]; } for(i = sum + 1; i <= 11; i++){ nr2 += ff[i]; } if(nr1 > nr2){ cout<<"VUCI"; } else{ cout<<"DOSTA"; } }
#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...