結果
| 問題 | No.969 じゃんけん |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-01-31 16:26:23 |
| 言語 | Rust (1.93.0 + proconio + num + itertools) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 437 bytes |
| 記録 | |
| コンパイル時間 | 926 ms |
| コンパイル使用メモリ | 192,504 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-01-31 16:26:25 |
| 合計ジャッジ時間 | 1,816 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 4 |
ソースコード
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 | 4 | 10 => true,
_ => false,
}
}
fn output(ans: bool) -> &'static str {
match ans {
true => "Yes",
false => "No",
}
}