結果

問題 No.804 野菜が苦手
ユーザー Beat7501Beat7501
提出日時 2019-03-22 21:22:57
言語 Java21
(openjdk 21)
結果
AC  
実行時間 145 ms / 2,000 ms
コード長 305 bytes
コンパイル時間 2,278 ms
コンパイル使用メモリ 74,184 KB
実行使用メモリ 57,696 KB
最終ジャッジ日時 2023-10-19 06:20:41
合計ジャッジ時間 6,106 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
57,100 KB
testcase_01 AC 138 ms
57,432 KB
testcase_02 AC 142 ms
57,504 KB
testcase_03 AC 138 ms
57,456 KB
testcase_04 AC 145 ms
57,216 KB
testcase_05 AC 140 ms
57,164 KB
testcase_06 AC 137 ms
57,524 KB
testcase_07 AC 140 ms
57,452 KB
testcase_08 AC 142 ms
57,148 KB
testcase_09 AC 139 ms
57,124 KB
testcase_10 AC 141 ms
57,240 KB
testcase_11 AC 141 ms
57,544 KB
testcase_12 AC 141 ms
57,696 KB
testcase_13 AC 142 ms
57,664 KB
testcase_14 AC 142 ms
55,388 KB
testcase_15 AC 141 ms
57,424 KB
testcase_16 AC 138 ms
57,428 KB
testcase_17 AC 138 ms
57,492 KB
testcase_18 AC 140 ms
57,088 KB
testcase_19 AC 142 ms
57,404 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int d = sc.nextInt();
		int i;
		for(i = 1; i <= a && i*c <= b && i*c+i <= d; i++){
		}
		System.out.print(--i);
	}
}
0