結果
問題 | No.804 野菜が苦手 |
ユーザー |
![]() |
提出日時 | 2019-12-03 16:42:59 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 114 ms / 2,000 ms |
コード長 | 412 bytes |
コンパイル時間 | 1,850 ms |
コンパイル使用メモリ | 74,656 KB |
実行使用メモリ | 41,152 KB |
最終ジャッジ日時 | 2024-11-27 10:01:50 |
合計ジャッジ時間 | 4,713 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
ソースコード
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = Integer.parseInt(sc.next()); int b = Integer.parseInt(sc.next()); int c = Integer.parseInt(sc.next()); int d = Integer.parseInt(sc.next()); int ans = Math.min(d / (c + 1), Math.min(a, b / c)); System.out.println(ans); } }