結果
| 問題 | No.804 野菜が苦手 |
| コンテスト | |
| ユーザー |
mossari_aozora
|
| 提出日時 | 2019-10-01 19:17:01 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 319 bytes |
| 記録 | |
| コンパイル時間 | 54 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2026-09-09 11:17:59 |
| 合計ジャッジ時間 | 1,948 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 17 WA * 2 |
ソースコード
line = input().split(" ")
vegi = int(line[0])
meat = int(line[1])
meatCons = int(line[2])
vegicons = 1
total = int(line[3])
cnt = 0
while True:
vegi -= 1
meat -= meatCons
if (vegi < 0 or meat < 0):
break
total -= (vegicons + meatCons)
if (total <= 0):
break
cnt += 1
print(cnt)
mossari_aozora