結果
問題 |
No.804 野菜が苦手
|
ユーザー |
|
提出日時 | 2023-09-05 18:11:01 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 297 bytes |
コンパイル時間 | 242 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-06-23 13:40:01 |
合計ジャッジ時間 | 1,780 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 7 WA * 11 |
ソースコード
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): if x*C <= B and x + x*C <= D: return x return 0 print(max_veg_count(A,B,C,D))