Submission #1023872

#TimeUsernameProblemLanguageResultExecution timeMemory
102387212345678COCI17_cezar (COCI17_cezar)C++17
45 / 50
1 ms600 KiB
#include <bits/stdc++.h> using namespace std; const int nx=20; int n, x, cnt[nx], sm, a, b; int main() { cin.tie(NULL)->sync_with_stdio(false); cin>>n; for (int i=1; i<=11; i++) cnt[i]=4; cnt[10]=12; for (int i=0; i<n; i++) cin>>x, sm+=x, cnt[x]--; sm=21-sm; for (int i=1; i<=sm; i++) a+=cnt[i]; for (int i=sm+1; i<=11; i++) b+=cnt[i]; if (b>=a) cout<<"DOSTA"; else cout<<"VUCI"; }
#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...