結果

問題 No.804 野菜が苦手
ユーザー 杉浦海翔
提出日時 2024-05-09 11:01:42
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 189 bytes
コンパイル時間 557 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 21,248 KB
最終ジャッジ日時 2024-12-15 23:21:39
合計ジャッジ時間 37,983 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 6 WA * 1 TLE * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
# Your code here!
a,b,c,d = map(int,input().split())
cnt=0

while(d>c+1):
    if(a>0 and b>=c):
        a-=1
        b-=c
        d-=(1+c)
        cnt+=1
        
print(cnt)
0