結果
| 問題 | No.969 じゃんけん |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-01-31 16:26:01 |
| 言語 | Rust (1.93.0 + proconio + num + itertools) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 436 bytes |
| 記録 | |
| コンパイル時間 | 953 ms |
| コンパイル使用メモリ | 193,628 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-01-31 16:26:03 |
| 合計ジャッジ時間 | 1,924 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 2 WA * 2 |
ソースコード
fn main() {
let stdin = std::io::read_to_string(std::io::stdin()).unwrap();
let mut stdin = stdin.split_ascii_whitespace();
let n: u8 = stdin.next().unwrap().parse().unwrap();
println!("{}", output(solve(n)));
}
fn solve(n: u8) -> bool {
match n {
0 | 2 | 4 => true,
_ => false,
}
}
fn output(ans: bool) -> &'static str {
match ans {
true => "Yes",
false => "No",
}
}