結果
問題 |
No.804 野菜が苦手
|
ユーザー |
|
提出日時 | 2019-05-06 13:11:35 |
言語 | OCaml (5.2.1) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 224 bytes |
コンパイル時間 | 620 ms |
コンパイル使用メモリ | 21,448 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-09 00:35:24 |
合計ジャッジ時間 | 1,211 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
ソースコード
let () = let a, b, c, d = Scanf.scanf "%d %d %d %d\n" (fun a b c d -> a, b, c, d) in let d' = d / (c+1) in let b' = d' * c in Printf.printf "%d\n" (if a >= d' && b >= b' then d' else if b >= b' then a else b / c)