Submission #46371175
Source Code Expand
fun main() {
val s = readln()
if(s.filterIndexed { index, c -> index % 2 == 1 }.all { it == '0' }) {
println("Yes")
} else {
println("No")
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Weak Beats |
| User | dhirabayashi |
| Language | Kotlin (Kotlin/JVM 1.8.20) |
| Score | 100 |
| Code Size | 183 Byte |
| Status | AC |
| Exec Time | 46 ms |
| Memory | 37604 KiB |
Compile Error
Main.kt:3:33: warning: parameter 'c' is never used, could be renamed to _
if(s.filterIndexed { index, c -> index % 2 == 1 }.all { it == '0' }) {
^
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| 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 | 46 ms | 37604 KiB |
| example_01.txt | AC | 42 ms | 37316 KiB |
| example_02.txt | AC | 43 ms | 37348 KiB |
| hand_00.txt | AC | 42 ms | 37404 KiB |
| hand_01.txt | AC | 42 ms | 37444 KiB |
| hand_02.txt | AC | 43 ms | 37496 KiB |
| hand_03.txt | AC | 41 ms | 37224 KiB |
| hand_04.txt | AC | 43 ms | 37556 KiB |
| hand_05.txt | AC | 42 ms | 37316 KiB |
| hand_06.txt | AC | 42 ms | 37400 KiB |
| hand_07.txt | AC | 42 ms | 37392 KiB |
| hand_08.txt | AC | 45 ms | 37388 KiB |
| hand_09.txt | AC | 41 ms | 37404 KiB |
| random_00.txt | AC | 41 ms | 37532 KiB |
| random_01.txt | AC | 44 ms | 37232 KiB |
| random_02.txt | AC | 43 ms | 37460 KiB |
| random_03.txt | AC | 44 ms | 37488 KiB |
| random_04.txt | AC | 44 ms | 37564 KiB |
| random_05.txt | AC | 45 ms | 37432 KiB |
| random_06.txt | AC | 41 ms | 37228 KiB |
| random_07.txt | AC | 45 ms | 37392 KiB |
| random_08.txt | AC | 41 ms | 37380 KiB |
| random_09.txt | AC | 42 ms | 37576 KiB |