結果
| 問題 |
No.804 野菜が苦手
|
| コンテスト | |
| ユーザー |
HAGI_TARO
|
| 提出日時 | 2021-09-12 14:44:30 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 206 bytes |
| コンパイル時間 | 259 ms |
| コンパイル使用メモリ | 82,696 KB |
| 実行使用メモリ | 53,824 KB |
| 最終ジャッジ日時 | 2024-06-24 04:13:32 |
| 合計ジャッジ時間 | 2,276 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 WA * 7 |
ソースコード
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