結果
| 問題 | No.2014 Eggs Hatching |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-10-14 10:59:45 |
| 言語 | Rust (1.99.0 + proconio + num + itertools + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 103µs | |
| コード長 | 221 bytes |
| 記録 | |
| コンパイル時間 | 3,851 ms |
| コンパイル使用メモリ | 181,492 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-10-14 10:59:56 |
| 合計ジャッジ時間 | 6,095 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 20 |
コンパイルメッセージ
warning: value assigned to `ans` is never read --> src/main.rs:6:18 | 6 | let mut ans =0; | ^ this value is reassigned later and never used ... 12 | ans=c; | ----- `ans` is overwritten here before the previous value is read | = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
ソースコード
use proconio::input;
fn main(){
input!{
a:usize,b:usize,c:usize,
}
let mut ans =0;
if a<=b &&a<=c{
ans=a;
} else if b<=c{
ans=b;
} else {
ans=c;
}
print!("{}",ans);
}