結果

問題 No.908 うしたぷにきあくん文字列
ユーザー Haniwa
提出日時 2025-09-23 08:56:17
言語 Rust
(1.83.0 + proconio)
結果
WA  
実行時間 -
コード長 374 bytes
コンパイル時間 14,591 ms
コンパイル使用メモリ 400,844 KB
実行使用メモリ 7,720 KB
最終ジャッジ日時 2025-09-23 08:56:33
合計ジャッジ時間 14,535 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

use proconio::input;

fn main() {
    input! {
        s: String,
    }

    let ans = if s.chars()
        .enumerate()
        .all(|(i, c)| {
            if (i + 1) % 2 == 1 {
                c.is_lowercase()
            } else {
                c == ' '
            }
        }) {
            "Yes"
        } else {
            "No"
        };

    println!("{ans}");
}
0