結果

問題 No.908 うしたぷにきあくん文字列
ユーザー tayu0110
提出日時 2022-10-27 00:08:15
言語 Rust
(1.83.0 + proconio)
結果
WA  
実行時間 -
コード長 271 bytes
コンパイル時間 12,793 ms
コンパイル使用メモリ 389,488 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-04 12:02:52
合計ジャッジ時間 13,822 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
    let mut s = String::new();
    std::io::stdin().read_line(&mut s).unwrap();
    if s.chars().enumerate().all(|(i, c)| if i % 2 == 0 { c.is_ascii() } else { c.is_ascii_whitespace() }) {
        println!("Yes");
    } else {
        println!("No");
    }
}
0