結果

問題 No.804 野菜が苦手
ユーザー くまちゃんくまちゃん
提出日時 2022-02-04 12:57:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 420 bytes
コンパイル時間 181 ms
コンパイル使用メモリ 10,712 KB
実行使用メモリ 7,960 KB
最終ジャッジ日時 2023-09-02 03:31:19
合計ジャッジ時間 2,284 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 16 ms
7,852 KB
testcase_03 AC 15 ms
7,912 KB
testcase_04 AC 15 ms
7,808 KB
testcase_05 AC 15 ms
7,856 KB
testcase_06 AC 15 ms
7,852 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 16 ms
7,792 KB
testcase_11 AC 16 ms
7,848 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 16 ms
7,812 KB
testcase_15 AC 15 ms
7,832 KB
testcase_16 AC 16 ms
7,856 KB
testcase_17 AC 16 ms
7,848 KB
testcase_18 AC 16 ms
7,912 KB
testcase_19 AC 16 ms
7,852 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from posixpath import split


def main():
    a, b, c, d = (int(x) for x in input().split())
    vegi_n = 0
    meet_n = 0
    for i in range(10):
        vegi_n += 1
        meet_n += c
        vm_n = vegi_n + meet_n


        if meet_n > b:
            print(vegi_n - 1)
            break
        elif vm_n > d:
            print(vegi_n - 1)
            break
        

        

if __name__ == '__main__':
    main()
0