結果

問題 No.804 野菜が苦手
ユーザー もぐら 3.0
提出日時 2023-11-14 22:49:33
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 280 bytes
コンパイル時間 176 ms
コンパイル使用メモリ 82,324 KB
実行使用メモリ 54,380 KB
最終ジャッジ日時 2024-09-26 04:20:46
合計ジャッジ時間 1,603 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

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

cnt=0
while D>0:
    if A>0:
        if B>=C:
            A-=1
            B-=C
            D-=1
            D-=C
            cnt+=1
        else:
            print(cnt)
            exit()
    else:
        print(cnt)
        exit()

print(cnt)
0