結果
| 問題 | 
                            No.804 野菜が苦手
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2024-01-04 17:21:06 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 236 bytes | 
| コンパイル時間 | 186 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-09-27 18:46:47 | 
| 合計ジャッジ時間 | 1,446 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 17 WA * 1 | 
ソースコード
A, B, C, D = map(int, input().split())
total = 0
res = 0
while total + C + 1 < D and B >= C and A > 0 and B > 0:
    #print(res, total, A, B)
    res += 1
    total += 1 + C
    A -= 1
    B -= C
    #print(res, total, A, B)
print(res)