답안 #53052

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
53052 2018-06-27T20:00:02 Z tncks0121 Cezar (COCI17_cezar) Kotlin
50 / 50
249 ms 18436 KB
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")
}
# 결과 실행 시간 메모리 Grader output
1 Correct 173 ms 14940 KB Output is correct
2 Correct 210 ms 17648 KB Output is correct
3 Correct 169 ms 17984 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 190 ms 18096 KB Output is correct
2 Correct 178 ms 18096 KB Output is correct
3 Correct 185 ms 18096 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 249 ms 18096 KB Output is correct
2 Correct 171 ms 18096 KB Output is correct
3 Correct 203 ms 18208 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 192 ms 18208 KB Output is correct
2 Correct 192 ms 18208 KB Output is correct
3 Correct 202 ms 18208 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 181 ms 18208 KB Output is correct
2 Correct 186 ms 18208 KB Output is correct
3 Correct 204 ms 18208 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 172 ms 18208 KB Output is correct
2 Correct 204 ms 18208 KB Output is correct
3 Correct 168 ms 18228 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 173 ms 18228 KB Output is correct
2 Correct 172 ms 18228 KB Output is correct
3 Correct 171 ms 18228 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 198 ms 18228 KB Output is correct
2 Correct 170 ms 18228 KB Output is correct
3 Correct 169 ms 18232 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 171 ms 18232 KB Output is correct
2 Correct 175 ms 18232 KB Output is correct
3 Correct 167 ms 18232 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 170 ms 18232 KB Output is correct
2 Correct 193 ms 18436 KB Output is correct
3 Correct 171 ms 18436 KB Output is correct