結果
問題 |
No.804 野菜が苦手
|
ユーザー |
|
提出日時 | 2024-01-04 17:22:45 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 2,000 ms |
コード長 | 237 bytes |
コンパイル時間 | 103 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-09-27 18:46:48 |
合計ジャッジ時間 | 1,523 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
ソースコード
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)