結果

問題 No.804 野菜が苦手
ユーザー otsunekootsuneko
提出日時 2021-05-07 20:47:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 157 bytes
コンパイル時間 510 ms
コンパイル使用メモリ 87,140 KB
実行使用メモリ 71,556 KB
最終ジャッジ日時 2023-10-13 11:37:04
合計ジャッジ時間 2,792 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
71,420 KB
testcase_01 AC 64 ms
71,340 KB
testcase_02 AC 68 ms
71,200 KB
testcase_03 AC 63 ms
71,448 KB
testcase_04 AC 67 ms
71,196 KB
testcase_05 AC 65 ms
71,288 KB
testcase_06 AC 67 ms
71,260 KB
testcase_07 AC 70 ms
71,204 KB
testcase_08 AC 66 ms
71,252 KB
testcase_09 AC 66 ms
71,180 KB
testcase_10 AC 64 ms
71,480 KB
testcase_11 AC 64 ms
71,404 KB
testcase_12 AC 63 ms
71,536 KB
testcase_13 AC 64 ms
71,556 KB
testcase_14 AC 63 ms
71,428 KB
testcase_15 AC 64 ms
71,132 KB
testcase_16 AC 65 ms
71,340 KB
testcase_17 AC 67 ms
71,520 KB
testcase_18 AC 66 ms
71,420 KB
testcase_19 AC 65 ms
71,540 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B,C,D = map(int,input().split())

for i in reversed(range(1,A+1)):
    if i+i*C <= D and i*C <= B:
        print(i)
        break
else:
    print(0)
0