Submission #152946

#TimeUsernameProblemLanguageResultExecution timeMemory
152946ionanghelinaCOCI17_cezar (COCI17_cezar)C++14
50 / 50
3 ms424 KiB
#include<bits/stdc++.h> using namespace std; int n,f[20],lft,sum,x,good; int main() { scanf("%d",&n); for(int i=2;i<=9;i++) f[i]=4; f[10]=16; f[11]=4; lft=52; for(int i=1;i<=n;i++) { scanf("%d",&x); lft--; sum+=x; f[x]--; } int diff=21-sum; //cerr<<diff<<'\n'; for(int i=1;i<=diff;i++) good+=f[i]; if(good>=(lft-good)) printf("VUCI\n"); else printf("DOSTA\n"); return 0; }

Compilation message (stderr)

cezar.cpp: In function 'int main()':
cezar.cpp:8:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&n);
     ~~~~~^~~~~~~~~
cezar.cpp:18:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d",&x);
         ~~~~~^~~~~~~~~
#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...