Submission #138826

#TimeUsernameProblemLanguageResultExecution timeMemory
138826mihnea_anghelCOCI17_cezar (COCI17_cezar)C++17
50 / 50
2 ms380 KiB
#include <iostream> using namespace std; int fr[] = { 0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 16, 4 }, s=21, n, i, s1, s2, x; int main() { cin>>n; for ( i=1; i <= n; i++ ) cin>>x, fr[x]--, s -= x; for ( i=2; i <= 11; i++) if ( i <= s ) s1 += fr[i]; else s2 += fr[i]; if ( s1 > s2 ) 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...