# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
85518 | 2018-11-20T16:34:44 Z | memetkagan44 | COCI17_cezar (COCI17_cezar) | C++11 | 3 ms | 728 KB |
#include<bits/stdc++.h> using namespace std; int n,a,sum; multiset<int> ms; int main(){ scanf("%d",&n); for(int i=2;i<=10;i++) for(int j=1;j<=4;j++) ms.insert(i); for(int i=1;i<=3;i++) for(int j=1;j<=4;j++) ms.insert(10); for(int i=1;i<=4;i++) ms.insert(11); for(int i=1;i<=n;i++){ scanf("%d",&a); ms.erase(a); sum+=a; } multiset<int>::iterator q=ms.upper_bound(21-sum); int dist=distance(q,ms.end()); printf("%s\n",(52-n-dist)>dist ? "VUCI" : "DOSTA"); return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 256 KB | Output is correct |
2 | Correct | 3 ms | 504 KB | Output is correct |
3 | Correct | 2 ms | 540 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 540 KB | Output is correct |
2 | Correct | 2 ms | 640 KB | Output is correct |
3 | Correct | 2 ms | 640 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 640 KB | Output is correct |
2 | Correct | 2 ms | 640 KB | Output is correct |
3 | Correct | 2 ms | 640 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 640 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 640 KB | Output is correct |
2 | Correct | 2 ms | 640 KB | Output is correct |
3 | Correct | 2 ms | 640 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 640 KB | Output is correct |
2 | Correct | 2 ms | 656 KB | Output is correct |
3 | Correct | 2 ms | 692 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 692 KB | Output is correct |
2 | Correct | 2 ms | 692 KB | Output is correct |
3 | Correct | 2 ms | 692 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 692 KB | Output is correct |
2 | Correct | 2 ms | 716 KB | Output is correct |
3 | Correct | 2 ms | 716 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 716 KB | Output is correct |
2 | Correct | 2 ms | 716 KB | Output is correct |
3 | Correct | 2 ms | 716 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 728 KB | Output is correct |
2 | Correct | 2 ms | 728 KB | Output is correct |
3 | Correct | 2 ms | 728 KB | Output is correct |