Submission #661305

#TimeUsernameProblemLanguageResultExecution timeMemory
661305Trisanu_DasCOCI17_cezar (COCI17_cezar)C++17
50 / 50
1 ms300 KiB
#include <bits/stdc++.h> using namespace std; int main(){ int n, sum = 0; cin >> n; int a[n]; for(int i = 0;i < n; i++){cin >> a[i]; sum += a[i];} int x = 21 - sum, cnt = 0; for(int i = 0; i < n; i++) if(a[i] <= x) cnt++; if((x - 1) * 4 - cnt <= 52 - (x - 1) * 4 - (n - cnt)) cout << "DOSTA\n"; else cout << "VUCI\n"; }
#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...