結果

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

ソースコード

diff #

fn main() {
	let mut s = String::new();
	std::io::stdin().read_line(&mut s).ok();

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

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