結果
問題 | No.804 野菜が苦手 |
ユーザー |
|
提出日時 | 2023-09-05 18:19:12 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 29 ms / 2,000 ms |
コード長 | 301 bytes |
コンパイル時間 | 108 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-06-23 13:48:00 |
合計ジャッジ時間 | 1,592 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
ソースコード
input_list = input().split()A = int(input_list[0])B = int(input_list[1])C = int(input_list[2])D = int(input_list[3])def max_veg_count(A,B,C,D):for x in range(A, -1, -1):if x*C <= B and x + x*C <= D:return xreturn 0print(max_veg_count(A,B,C,D))