結果
| 問題 |
No.969 じゃんけん
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-11-03 19:18:27 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 287 bytes |
| コンパイル時間 | 13,574 ms |
| コンパイル使用メモリ | 378,424 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-13 09:55:06 |
| 合計ジャッジ時間 | 11,782 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 4 |
ソースコード
use std::io;
fn main() {
let mut s = String::new();
io::stdin().read_line(&mut s).unwrap();
let x = s.trim().parse::<i32>().unwrap();
println!(
"{}",
if x == 0 || x == 4 || x == 10 {
"Yes"
} else {
"No"
}
);
}