結果

問題 No.804 野菜が苦手
ユーザー HAGI_TARO
提出日時 2021-09-12 14:45:45
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 209 bytes
コンパイル時間 250 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 52,352 KB
最終ジャッジ日時 2024-06-24 04:15:58
合計ジャッジ時間 2,121 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 12 WA * 6
権限があれば一括ダウンロードができます

ソースコード

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