結果
問題 | No.804 野菜が苦手 |
ユーザー |
![]() |
提出日時 | 2025-02-15 17:25:09 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 561 bytes |
コンパイル時間 | 382 ms |
コンパイル使用メモリ | 12,160 KB |
実行使用メモリ | 10,240 KB |
最終ジャッジ日時 | 2025-02-15 17:25:11 |
合計ジャッジ時間 | 1,889 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 WA * 7 |
ソースコード
def main():A, B, C, D = map(int, input().split())lot = 1 + Ceatable_lot = D // lotvegi_count = 0for lot in range(1, eatable_lot + 1):capacity = D - lotvegi_capacity = A - 1meat_capacity = B - Cif capacity < 0 or vegi_capacity < 0 or meat_capacity < 0:print(capacity, vegi_capacity, meat_capacity)breakvegi_count += 1A -= 1B -= Cif A <= 0 or B <= 0 or D <= 0:breakprint(vegi_count)if __name__ == "__main__":main()