結果
問題 |
No.804 野菜が苦手
|
ユーザー |
|
提出日時 | 2021-10-29 18:45:52 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 334 bytes |
コンパイル時間 | 183 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-07 08:39:53 |
合計ジャッジ時間 | 1,424 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 14 WA * 4 |
ソースコード
def main(): a, b, c, d = map(int, input().split(' ')) vege = 0 while (vege + 1) * (1 + c) <= d: if vege == a: print(vege) break if vege * c >= b: print(vege-1) break vege += 1 else: print(vege) if __name__ =='__main__': main()