結果

問題 No.804 野菜が苦手
ユーザー k0825k0825
提出日時 2019-05-01 00:48:53
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 128 bytes
コンパイル時間 94 ms
コンパイル使用メモリ 10,668 KB
実行使用メモリ 8,240 KB
最終ジャッジ日時 2023-08-30 04:13:09
合計ジャッジ時間 1,377 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,776 KB
testcase_01 WA -
testcase_02 AC 15 ms
8,204 KB
testcase_03 AC 16 ms
7,784 KB
testcase_04 AC 16 ms
8,028 KB
testcase_05 AC 16 ms
8,144 KB
testcase_06 WA -
testcase_07 AC 15 ms
7,868 KB
testcase_08 AC 15 ms
8,060 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 15 ms
8,192 KB
testcase_15 AC 15 ms
8,064 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 16 ms
8,148 KB
testcase_19 AC 16 ms
8,060 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c,d=map(int,input().split())
for i in range(a+1):
	if d<i*c+i: print(i-1);exit()
	elif b<i*c: print(i);exit()
else: print(a)
0