結果

問題 No.804 野菜が苦手
ユーザー HAGI_TAROHAGI_TARO
提出日時 2021-09-12 14:44:30
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 206 bytes
コンパイル時間 1,126 ms
コンパイル使用メモリ 86,840 KB
実行使用メモリ 71,436 KB
最終ジャッジ日時 2023-09-06 09:34:37
合計ジャッジ時間 2,964 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,404 KB
testcase_01 AC 72 ms
71,052 KB
testcase_02 AC 73 ms
70,904 KB
testcase_03 WA -
testcase_04 AC 75 ms
71,368 KB
testcase_05 AC 72 ms
71,336 KB
testcase_06 AC 72 ms
71,180 KB
testcase_07 AC 72 ms
71,048 KB
testcase_08 WA -
testcase_09 AC 72 ms
71,420 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 74 ms
71,180 KB
testcase_15 AC 73 ms
71,300 KB
testcase_16 AC 74 ms
71,048 KB
testcase_17 AC 75 ms
71,436 KB
testcase_18 AC 75 ms
71,180 KB
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c,d = map(int,input().split())
ans = 0
if a - 1 > 0 and b - c > 0 and d - (1 + c) > 0:
    while a > 0 and b > 0 and d > 0:
        ans += 1
        a -= 1
        b -= c
        d -= (1 + c)
print(ans)
0