Submission #843663

#TimeUsernameProblemLanguageResultExecution timeMemory
843663nihaddhuseynliCOCI17_cezar (COCI17_cezar)C++14
50 / 50
1 ms600 KiB
#include <cstdio> using namespace std; const int MAXN = 60; int n, imam[MAXN], karta; int suma, x; int main() { scanf("%d",&n); for (int i = 2; i <= 11; i++) imam[i] = 4; imam[10] = 4 * 4; for (int i = 0; i < n; i++) { scanf("%d",&karta); imam[karta]--; suma += karta; } x = 21 - suma; int vecih = 0; for (int i = x + 1; i <= 11; i++) vecih += imam[i]; if (52 - n - vecih > vecih) puts("VUCI"); else puts("DOSTA"); return 0; }

Compilation message (stderr)

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