結果

問題 No.908 うしたぷにきあくん文字列
コンテスト
ユーザー バカらっく
提出日時 2022-02-03 12:35:02
言語 Kotlin
(2.3.20)
コンパイル:
kotlinc _filename_ -include-runtime -d main.jar
実行:
kotlin main.jar
結果
AC  
実行時間 186 ms / 2,000 ms
+ 577µs
コード長 177 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 7,046 ms
コンパイル使用メモリ 491,376 KB
実行使用メモリ 53,400 KB
最終ジャッジ日時 2026-07-25 10:07:39
合計ジャッジ時間 12,586 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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