結果
| 問題 |
No.908 うしたぷにきあくん文字列
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-10-27 00:07:33 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 301 bytes |
| コンパイル時間 | 13,465 ms |
| コンパイル使用メモリ | 379,420 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-04 12:02:16 |
| 合計ジャッジ時間 | 12,903 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 WA * 3 |
ソースコード
fn main() {
let mut s = String::new();
std::io::stdin().read_line(&mut s).unwrap();
s = s.trim().to_string();
if s.chars().enumerate().all(|(i, c)| if i % 2 == 0 { c.is_ascii() } else { c.is_ascii_whitespace() }) {
println!("Yes");
} else {
println!("No");
}
}