結果

問題 No.2014 Eggs Hatching
コンテスト
ユーザー ああ
提出日時 2026-10-14 10:59:45
言語 Rust
(1.99.0 + proconio + num + itertools + ACL)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 1 ms / 2,000 ms
+ 103µs
コード長 221 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 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

ソースコード

diff #
raw source code

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);
}
0