結果
| 問題 |
No.804 野菜が苦手
|
| コンテスト | |
| ユーザー |
monburan_0401
|
| 提出日時 | 2019-05-04 02:28:02 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 330 bytes |
| コンパイル時間 | 222 ms |
| コンパイル使用メモリ | 12,160 KB |
| 実行使用メモリ | 10,496 KB |
| 最終ジャッジ日時 | 2025-01-02 21:03:28 |
| 合計ジャッジ時間 | 1,639 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 9 WA * 9 |
ソースコード
s = str(input())
s = s.split(" ")
veg = int(s[0])
meat = int(s[1])
times = int(s[2])
max_ = int(s[3])
total = 0
while veg > 0 or meat > 0 or max_ > 0:
if veg * (1 + times) <= max_ and times <= meat:
total += 1
meat -= times
veg -= 1
max_ -= (1 + times)
else:
break
print(total)
monburan_0401