Submission #1242800


Source Code Expand

fun main(args:Array<String>) {
  val (a, b) = readLine()!!.split(" ")
  when(a) {
    "H" -> {
      when(b) {
        "H" -> println("H")
        "D" -> println("D")
      }
    }
    "D" -> {
      when(b) {
        "H" -> println("D")
        "D" -> println("H")
      }
    }
  }
}

Submission Info

Submission Time
Task A - HonestOrDishonest
User lightning
Language Kotlin (1.0.0)
Score 100
Code Size 301 Byte
Status AC
Exec Time 233 ms
Memory 28032 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 4
Set Name Test Cases
Sample 0_000.txt, 0_001.txt, 0_002.txt
All 0_000.txt, 0_001.txt, 0_002.txt, 1_003.txt
Case Name Status Exec Time Memory
0_000.txt AC 233 ms 27992 KB
0_001.txt AC 231 ms 28032 KB
0_002.txt AC 232 ms 26308 KB
1_003.txt AC 231 ms 28032 KB