結果
| 問題 | No.804 野菜が苦手 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-03-16 15:24:42 |
| 言語 | Python3 (3.14.3 + numpy 2.4.2 + scipy 1.17.0) |
| 結果 |
AC
|
| 実行時間 | 105 ms / 2,000 ms |
| コード長 | 317 bytes |
| 記録 | |
| コンパイル時間 | 468 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-03-16 15:24:45 |
| 合計ジャッジ時間 | 3,156 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 19 |
ソースコード
A, B, C, D = map(int, input().split())
if A < 0 or A > 100:
print("error")
elif B < 0 or B > 100:
print("error")
elif C <= 0 or C > 100:
print("error")
elif D < 0 or D > 100:
print("error")
else:
condition_1 = min(A, B // C)
condition_2 = min(condition_1, D // (C + 1))
print(condition_2)