Submission #53052

#TimeUsernameProblemLanguageResultExecution timeMemory
53052tncks0121COCI17_cezar (COCI17_cezar)Kotlin (JVM)
50 / 50
249 ms18436 KiB
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 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...