結果

問題 No.804 野菜が苦手
ユーザー deepjugglingdeepjuggling
提出日時 2023-06-08 07:46:25
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 170 bytes
コンパイル時間 258 ms
コンパイル使用メモリ 86,936 KB
実行使用メモリ 71,440 KB
最終ジャッジ日時 2023-08-28 23:24:21
合計ジャッジ時間 2,614 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,156 KB
testcase_01 AC 69 ms
71,344 KB
testcase_02 AC 69 ms
71,292 KB
testcase_03 AC 68 ms
71,440 KB
testcase_04 AC 70 ms
71,132 KB
testcase_05 AC 67 ms
71,136 KB
testcase_06 AC 70 ms
71,296 KB
testcase_07 AC 69 ms
71,340 KB
testcase_08 WA -
testcase_09 AC 68 ms
71,288 KB
testcase_10 AC 68 ms
71,148 KB
testcase_11 AC 68 ms
71,320 KB
testcase_12 AC 69 ms
71,412 KB
testcase_13 AC 70 ms
71,404 KB
testcase_14 AC 69 ms
71,128 KB
testcase_15 AC 69 ms
71,280 KB
testcase_16 AC 69 ms
71,128 KB
testcase_17 AC 68 ms
71,328 KB
testcase_18 AC 69 ms
71,416 KB
testcase_19 AC 69 ms
71,196 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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