Submission #38043079


Source Code Expand

fun main() {
    val (a, b) = readLineSplit { toInt() }
    if (b == a * 2 || b == a * 2 + 1) println("Yes") else println("No")
}
fun <T> readLineSplit(cast: String.() -> T): List<T> = readLine()!!.split(" ").map { it.cast() }

Submission Info

Submission Time
Task A - Edge Checker 2
User YusukeK
Language Kotlin (1.3.71)
Score 100
Code Size 232 Byte
Status AC
Exec Time 134 ms
Memory 36444 KiB

Compile Error

warning: ATTENTION!
This build uses unsafe internal compiler arguments:

-XXLanguage:+InlineClasses

This mode is not recommended for production use,
as no stability/compatibility guarantees are given on
compiler or generated code. Use it at your own risk!

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 11
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, sample_01.txt, sample_02.txt, sample_03.txt
Case Name Status Exec Time Memory
random_01.txt AC 111 ms 36444 KiB
random_02.txt AC 101 ms 36232 KiB
random_03.txt AC 96 ms 36236 KiB
random_04.txt AC 100 ms 36228 KiB
random_05.txt AC 94 ms 36276 KiB
random_06.txt AC 97 ms 36440 KiB
random_07.txt AC 93 ms 36236 KiB
random_08.txt AC 102 ms 36308 KiB
sample_01.txt AC 90 ms 36232 KiB
sample_02.txt AC 94 ms 36392 KiB
sample_03.txt AC 134 ms 36176 KiB