Submission #140255

#TimeUsernameProblemLanguageResultExecution timeMemory
140255SeekingOblivionCOCI17_cezar (COCI17_cezar)C++14
50 / 50
3 ms504 KiB
#include<iostream> #include<fstream> #define fin cin #define fout cout #include<vector> using namespace std; //ifstream fin("date.in"); //ofstream fout("date.out"); int n,a,x,i,f[12],sol; int main(){ fin>>n;x=21; for(i=1;i<=n;i++) { fin>>a; f[a]++; x-=a; } for(i=2;i<=9;i++) if(i<=x) sol+=4-f[i]; else sol-=4-f[i]; if(x==10) sol+=16-f[10]; else sol-=16-f[10]; if(x==11) sol+=4-f[11]; else sol-=4-f[11]; if(sol>0) fout<<"VUCI"; else fout<<"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...