結果
| 問題 |
No.969 じゃんけん
|
| コンテスト | |
| ユーザー |
ixTL255
|
| 提出日時 | 2023-03-29 21:09:40 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 265 bytes |
| コンパイル時間 | 16,683 ms |
| コンパイル使用メモリ | 380,516 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-21 12:23:26 |
| 合計ジャッジ時間 | 14,139 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 4 |
コンパイルメッセージ
warning: variable does not need to be mutable --> src/main.rs:4:9 | 4 | let mut x: u8 = x.trim().parse().unwrap(); | ----^ | | | help: remove this `mut` | = note: `#[warn(unused_mut)]` on by default
ソースコード
fn main() {
let mut x = String::new();
std::io::stdin().read_line(&mut x).ok();
let mut x: u8 = x.trim().parse().unwrap();
println!("{}",
if x == 0 || x == 4 || x == 10 {
"Yes"
} else {
"No"
}
);
}
ixTL255