結果

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

ソースコード

diff #

use proconio::input;

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

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

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