結果

問題 No.842 初詣
ユーザー brthyyjpbrthyyjp
提出日時 2020-05-21 04:36:37
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 425 bytes
コンパイル時間 276 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 69,712 KB
最終ジャッジ日時 2024-04-09 23:14:47
合計ジャッジ時間 2,205 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
51,940 KB
testcase_01 AC 37 ms
52,668 KB
testcase_02 AC 38 ms
52,372 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 42 ms
61,344 KB
testcase_07 AC 52 ms
65,972 KB
testcase_08 AC 42 ms
61,016 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 35 ms
53,604 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 48 ms
61,280 KB
testcase_15 AC 41 ms
60,004 KB
testcase_16 AC 45 ms
62,156 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 57 ms
65,988 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b, c, d, e, f, g = map(int, input().split())
for i in range(a+1):
    for j in range(b+1):
        for k in range(c+1):
            for l in range(d+1):
                for m in range(e+1):
                    for n in range(f+1):
                        x = 500*i+100*j+50*k+10*d+5*e+1*f
                        if x == g:
                            print('YES')
                            exit()
else:
    print('NO')
0