n=int(input())
m=21
K=[4,4,4,4,4,4,4,4,16,4]
for i in range(n):
k=int(input())
m-=k
K[k-2]-=1
if m<0:
print("DOSTA")
elif sum(K[:m])<=sum(K[m:]):
print("DOSTA")
else:
print("VUCI")
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
26 ms |
3300 KB |
Output is correct |
2 |
Correct |
25 ms |
3300 KB |
Output is correct |
3 |
Correct |
26 ms |
3388 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
26 ms |
3300 KB |
Output is correct |
2 |
Correct |
26 ms |
3300 KB |
Output is correct |
3 |
Correct |
26 ms |
3300 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
27 ms |
3300 KB |
Output is correct |
2 |
Correct |
26 ms |
3396 KB |
Output is correct |
3 |
Correct |
25 ms |
3356 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
25 ms |
3300 KB |
Output is correct |
2 |
Correct |
27 ms |
3300 KB |
Output is correct |
3 |
Correct |
25 ms |
3300 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
25 ms |
3300 KB |
Output is correct |
2 |
Correct |
25 ms |
3300 KB |
Output is correct |
3 |
Correct |
25 ms |
3300 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
24 ms |
3300 KB |
Output is correct |
2 |
Correct |
26 ms |
3360 KB |
Output is correct |
3 |
Correct |
30 ms |
3336 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
25 ms |
3276 KB |
Output is correct |
2 |
Correct |
25 ms |
3324 KB |
Output is correct |
3 |
Correct |
25 ms |
3300 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
25 ms |
3300 KB |
Output is correct |
2 |
Correct |
25 ms |
3300 KB |
Output is correct |
3 |
Correct |
25 ms |
3272 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
27 ms |
3300 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
29 ms |
3300 KB |
Output is correct |
2 |
Correct |
25 ms |
3316 KB |
Output is correct |
3 |
Correct |
26 ms |
3300 KB |
Output is correct |