結果
問題 | No.804 野菜が苦手 |
ユーザー |
|
提出日時 | 2023-09-05 17:52:50 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 404 bytes |
コンパイル時間 | 206 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-06-23 13:21:28 |
合計ジャッジ時間 | 1,727 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 6 WA * 12 |
ソースコード
# 入力をスペースで分割してリストに格納input_list = input().split()# 入力値を整数に変換A = int(input_list[0])B = int(input_list[1])C = int(input_list[2])D = int(input_list[3])# idsigmaさんが食べられる野菜の最大の個数を計算max_veggies_with_max_meat = D // (C * B)max_veggies = min(A, max_veggies_with_max_meat)# 結果を出力print(max_veggies)