結果
| 問題 | No.804 野菜が苦手 |
| コンテスト | |
| ユーザー |
ixTL255
|
| 提出日時 | 2023-01-22 21:01:15 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 552 bytes |
| 記録 | |
| コンパイル時間 | 14,604 ms |
| コンパイル使用メモリ | 389,172 KB |
| 実行使用メモリ | 7,852 KB |
| 最終ジャッジ日時 | 2025-12-06 15:02:04 |
| 合計ジャッジ時間 | 13,200 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 19 |
ソースコード
use std::collections::BTreeSet;
fn main() {
let mut s = String::new();
std::io::stdin().read_line(&mut s).ok();
let mut itr = s.trim().split_whitespace();
let a: isize = itr.next().unwrap().parse().unwrap();
let b: isize = itr.next().unwrap().parse().unwrap();
let c: isize = itr.next().unwrap().parse().unwrap();
let d: isize = itr.next().unwrap().parse().unwrap();
let mut set = BTreeSet::new();
set.insert(a);
set.insert(b / c);
set.insert(d / (c + 1));
println!("{}", set.iter().next().unwrap());
}
ixTL255