Submission #379796

#TimeUsernameProblemLanguageResultExecution timeMemory
379796FatihSolakCOCI17_cezar (COCI17_cezar)C++17
45 / 50
1 ms384 KiB
#include <bits/stdc++.h> #define N 15 using namespace std; int arr[N]; void solve(){ int n; cin >> n; for(int i=1;i<=11;i++)arr[i] = 4 + (8 * (i == 10)); int sum = 0; for(int i=0;i<n;i++){ int a; cin >> a; sum += a; arr[a]--; } int last = 21-sum; sum = 0; for(int i=0;i<=last;i++)sum+=arr[i]; if((52-n)- sum < sum){ cout << "VUCI"; } else cout << "DOSTA"; } int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); #ifdef Local freopen("in.txt","r",stdin); freopen("out.txt","w",stdout); #endif int t=1; //cin>>t; while(t--){ solve(); } #ifdef Local cout<<endl<<fixed<<setprecision(2)<<1000.0 * clock() / CLOCKS_PER_SEC<< " milliseconds "; #endif }
#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...