結果

問題 No.804 野菜が苦手
ユーザー HAGI_TAROHAGI_TARO
提出日時 2021-09-12 14:45:45
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 209 bytes
コンパイル時間 307 ms
コンパイル使用メモリ 87,320 KB
実行使用メモリ 71,660 KB
最終ジャッジ日時 2023-09-06 09:37:20
合計ジャッジ時間 2,973 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,304 KB
testcase_01 AC 74 ms
71,088 KB
testcase_02 AC 75 ms
71,484 KB
testcase_03 AC 80 ms
71,516 KB
testcase_04 AC 74 ms
71,264 KB
testcase_05 AC 74 ms
71,268 KB
testcase_06 AC 75 ms
71,144 KB
testcase_07 AC 73 ms
71,384 KB
testcase_08 WA -
testcase_09 AC 73 ms
71,284 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 73 ms
71,324 KB
testcase_15 AC 74 ms
71,224 KB
testcase_16 AC 72 ms
71,240 KB
testcase_17 AC 74 ms
71,092 KB
testcase_18 AC 74 ms
71,184 KB
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c,d = map(int,input().split())
ans = 0
if a - 1 >= 0 and b - c >= 0 and d - (1 + c) >= 0:
    while a > 0 and b > 0 and d > 0:
        ans += 1
        a -= 1
        b -= c
        d -= (1 + c)
print(ans)
0