結果
問題 | No.804 野菜が苦手 |
ユーザー |
![]() |
提出日時 | 2020-01-08 22:28:46 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 2,000 ms |
コード長 | 386 bytes |
コンパイル時間 | 82 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-23 03:13:25 |
合計ジャッジ時間 | 1,481 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
ソースコード
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines A,B,C,D = map(int,read().split()) def test(x): if x > A: return False y = C * x if y > B: return False if x + y > D: return False return True answer = 0 for i in range(110): if test(i): answer = i print(answer)