結果
問題 |
No.2014 Eggs Hatching
|
ユーザー |
![]() |
提出日時 | 2022-07-23 23:31:00 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 541 bytes |
コンパイル時間 | 24,124 ms |
コンパイル使用メモリ | 378,732 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-05 14:39:08 |
合計ジャッジ時間 | 26,040 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
ソースコード
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)) }