# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
79818 | 2018-10-16T15:40:36 Z | pzdba | COCI17_cezar (COCI17_cezar) | C++14 | 2 ms | 800 KB |
#include <bits/stdc++.h> using namespace std; int dp[12]; int main(){ int n, a, sum = 0; scanf("%d", &n); bool ok = 1; for(int i=1;i<=n;i++){ scanf("%d", &a); sum += a; dp[a]++; if(dp[a] > 4) ok = 0; } if(sum >= 20) ok = 0; if(!ok) return !printf("DOSTA\n"); sum = 21-sum; int tot = 0; for(int i=2;i<=min(sum, 11);i++){ tot += 4-dp[i]; } if(52 - n - tot >= tot) printf("DOSTA\n"); else printf("VUCI\n"); }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 376 KB | Output is correct |
2 | Correct | 2 ms | 488 KB | Output is correct |
3 | Correct | 2 ms | 520 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 520 KB | Output is correct |
2 | Correct | 2 ms | 540 KB | Output is correct |
3 | Correct | 2 ms | 584 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 584 KB | Output is correct |
2 | Correct | 2 ms | 584 KB | Output is correct |
3 | Correct | 2 ms | 652 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 652 KB | Output is correct |
2 | Correct | 2 ms | 704 KB | Output is correct |
3 | Correct | 2 ms | 760 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 760 KB | Output is correct |
2 | Correct | 2 ms | 760 KB | Output is correct |
3 | Correct | 2 ms | 760 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 760 KB | Output is correct |
2 | Correct | 2 ms | 760 KB | Output is correct |
3 | Correct | 2 ms | 760 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 800 KB | Output is correct |
2 | Correct | 2 ms | 800 KB | Output is correct |
3 | Correct | 2 ms | 800 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 800 KB | Output is correct |
2 | Correct | 2 ms | 800 KB | Output is correct |
3 | Correct | 2 ms | 800 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 800 KB | Output is correct |
2 | Correct | 2 ms | 800 KB | Output is correct |
3 | Correct | 2 ms | 800 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 800 KB | Output is correct |
2 | Correct | 2 ms | 800 KB | Output is correct |
3 | Correct | 2 ms | 800 KB | Output is correct |