This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
fun main(args: Array<String>) {
val deck = List(4) { (2..10).toList() + listOf(10, 10, 10, 11) }.flatten().toMutableList()
val A = List(readLine()!!.toInt()) { readLine()!!.toInt() }
for(a in A) deck.remove(a)
val X = 21 - A.sum()
println(if(deck.count{ it > X } >= deck.count{ it <= X }) "DOSTA" else "VUCI")
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |