結果

問題 No.908 うしたぷにきあくん文字列
コンテスト
ユーザー バカらっく
提出日時 2022-02-03 12:35:02
言語 Kotlin
(2.3.10)
コンパイル:
kotlinc _filename_ -include-runtime -d main.jar
実行:
kotlin main.jar
結果
AC  
実行時間 194 ms / 2,000 ms
コード長 177 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 7,441 ms
コンパイル使用メモリ 441,576 KB
実行使用メモリ 56,620 KB
最終ジャッジ日時 2026-03-04 11:39:32
合計ジャッジ時間 12,279 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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