結果

問題 No.804 野菜が苦手
ユーザー tnodinotnodino
提出日時 2020-07-11 03:50:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 16 ms / 2,000 ms
コード長 249 bytes
コンパイル時間 1,107 ms
コンパイル使用メモリ 10,540 KB
実行使用メモリ 8,244 KB
最終ジャッジ日時 2023-08-02 09:11:37
合計ジャッジ時間 1,368 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
8,084 KB
testcase_01 AC 15 ms
8,032 KB
testcase_02 AC 15 ms
8,076 KB
testcase_03 AC 15 ms
8,144 KB
testcase_04 AC 15 ms
8,176 KB
testcase_05 AC 15 ms
8,128 KB
testcase_06 AC 15 ms
8,208 KB
testcase_07 AC 15 ms
8,108 KB
testcase_08 AC 15 ms
8,152 KB
testcase_09 AC 14 ms
8,108 KB
testcase_10 AC 15 ms
8,156 KB
testcase_11 AC 15 ms
8,244 KB
testcase_12 AC 15 ms
8,156 KB
testcase_13 AC 15 ms
8,076 KB
testcase_14 AC 16 ms
8,080 KB
testcase_15 AC 15 ms
8,156 KB
testcase_16 AC 16 ms
8,152 KB
testcase_17 AC 16 ms
8,080 KB
testcase_18 AC 15 ms
8,088 KB
testcase_19 AC 15 ms
8,084 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c,d = map(int,input().split())
z = 0
y = 0
while True:
    if a == 0:
        print(z)
        exit(0)
    a -= 1
    if b < c:
        print(z)
        exit(0)
    b -= c
    y += 1 + c 
    if y > d:
        print(z)
        exit(0)
    z += 1
0