結果

問題 No.2014 Eggs Hatching
コンテスト
ユーザー Schnee
提出日時 2022-07-23 23:31:00
言語 Rust
(1.94.0 + proconio + num + itertools)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 541 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 9,791 ms
コンパイル使用メモリ 183,296 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2026-03-26 23:21:46
合計ジャッジ時間 10,601 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

use std::io;

fn main() {
    let mut s = String::new();
    io::stdin()
        .read_line(&mut s)
        .unwrap();
    let (a, b, c) = {
        let mut words = s.trim().split_whitespace();
        let a: i32 = words.next().unwrap().parse().unwrap();
        let b: i32 = words.next().unwrap().parse().unwrap();
        let c: i32 = words.next().unwrap().parse().unwrap();
        (a, b, c)
    };
    let ans = min(a, b, c);
    println!("{}", ans);
}

fn min(x: i32, y: i32, z: i32) -> i32 {
    std::cmp::min(x, std::cmp::min(y, z))
}
0