結果

問題 No.908 うしたぷにきあくん文字列
ユーザー バカらっくバカらっく
提出日時 2022-02-03 12:35:02
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 285 ms / 2,000 ms
コード長 177 bytes
コンパイル時間 11,086 ms
コンパイル使用メモリ 413,660 KB
実行使用メモリ 53,036 KB
最終ジャッジ日時 2023-09-02 03:10:33
合計ジャッジ時間 18,599 ms
ジャッジサーバーID
(参考情報)
judge16 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 278 ms
52,836 KB
testcase_01 AC 276 ms
52,848 KB
testcase_02 AC 276 ms
52,688 KB
testcase_03 AC 278 ms
52,752 KB
testcase_04 AC 279 ms
52,896 KB
testcase_05 AC 274 ms
52,816 KB
testcase_06 AC 273 ms
52,884 KB
testcase_07 AC 285 ms
52,708 KB
testcase_08 AC 280 ms
52,876 KB
testcase_09 AC 278 ms
52,720 KB
testcase_10 AC 277 ms
52,832 KB
testcase_11 AC 279 ms
52,872 KB
testcase_12 AC 274 ms
52,812 KB
testcase_13 AC 277 ms
52,836 KB
testcase_14 AC 276 ms
52,840 KB
testcase_15 AC 274 ms
52,748 KB
testcase_16 AC 275 ms
53,036 KB
testcase_17 AC 276 ms
52,848 KB
testcase_18 AC 272 ms
52,728 KB
testcase_19 AC 272 ms
52,776 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

fun main(args: Array<String>) {
    val s = readLine()!!
    val ans = s.indices.all { if(it % 2 == 0) s[it] != ' ' else s[it] == ' '  }
    println(if(ans) "Yes" else "No")
}

0