結果
| 問題 | No.804 野菜が苦手 |
| コンテスト | |
| ユーザー |
HAGI_TARO
|
| 提出日時 | 2021-09-12 14:45:45 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 209 bytes |
| 記録 | |
| コンパイル時間 | 144 ms |
| コンパイル使用メモリ | 85,108 KB |
| 実行使用メモリ | 53,788 KB |
| 最終ジャッジ日時 | 2026-03-10 02:13:22 |
| 合計ジャッジ時間 | 1,359 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 WA * 6 |
ソースコード
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)
HAGI_TARO