Submission #46280293


Source Code Expand

fun main() {
    val s = readln()
    for(i in 0 until s.length) {
        if((i+1) % 2 == 0 && s[i] != '0') {
            println("No")
            return
        }
    }
    println("Yes")
}

Submission Info

Submission Time
Task A - Weak Beats
User dhirabayashi
Language Kotlin (Kotlin/JVM 1.8.20)
Score 100
Code Size 203 Byte
Status AC
Exec Time 48 ms
Memory 37540 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 23
Set Name Test Cases
Sample example_00.txt, example_01.txt, example_02.txt
All example_00.txt, example_01.txt, example_02.txt, hand_00.txt, hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, hand_06.txt, hand_07.txt, hand_08.txt, hand_09.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt
Case Name Status Exec Time Memory
example_00.txt AC 48 ms 37520 KiB
example_01.txt AC 47 ms 37372 KiB
example_02.txt AC 45 ms 37416 KiB
hand_00.txt AC 48 ms 37540 KiB
hand_01.txt AC 47 ms 37240 KiB
hand_02.txt AC 43 ms 37284 KiB
hand_03.txt AC 43 ms 37416 KiB
hand_04.txt AC 44 ms 37344 KiB
hand_05.txt AC 44 ms 37392 KiB
hand_06.txt AC 47 ms 37488 KiB
hand_07.txt AC 48 ms 37456 KiB
hand_08.txt AC 45 ms 37316 KiB
hand_09.txt AC 44 ms 37348 KiB
random_00.txt AC 47 ms 37424 KiB
random_01.txt AC 44 ms 37324 KiB
random_02.txt AC 46 ms 37376 KiB
random_03.txt AC 46 ms 37468 KiB
random_04.txt AC 46 ms 37348 KiB
random_05.txt AC 44 ms 37448 KiB
random_06.txt AC 47 ms 37432 KiB
random_07.txt AC 47 ms 37424 KiB
random_08.txt AC 44 ms 37336 KiB
random_09.txt AC 46 ms 37536 KiB