結果

問題 No.842 初詣
ユーザー OhnumaOhnuma
提出日時 2020-04-10 16:45:05
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 182 ms / 2,000 ms
コード長 344 bytes
コンパイル時間 181 ms
コンパイル使用メモリ 10,676 KB
実行使用メモリ 23,216 KB
最終ジャッジ日時 2023-10-13 07:42:08
合計ジャッジ時間 2,213 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,820 KB
testcase_01 AC 15 ms
7,808 KB
testcase_02 AC 15 ms
7,804 KB
testcase_03 AC 36 ms
9,984 KB
testcase_04 AC 29 ms
8,876 KB
testcase_05 AC 87 ms
13,924 KB
testcase_06 AC 17 ms
7,820 KB
testcase_07 AC 49 ms
9,792 KB
testcase_08 AC 17 ms
7,924 KB
testcase_09 AC 33 ms
9,520 KB
testcase_10 AC 182 ms
23,216 KB
testcase_11 AC 15 ms
7,864 KB
testcase_12 AC 48 ms
11,000 KB
testcase_13 AC 27 ms
9,104 KB
testcase_14 AC 20 ms
8,252 KB
testcase_15 AC 17 ms
7,868 KB
testcase_16 AC 22 ms
8,660 KB
testcase_17 AC 36 ms
9,892 KB
testcase_18 AC 76 ms
13,728 KB
testcase_19 AC 39 ms
9,296 KB
testcase_20 AC 74 ms
13,332 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c,d,e,f,g = map(int,input().split())
ret = []
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):
                        ret.append(500*i + 100*j + 50*k + 10*l + 5*m + n)
print('YES' if g in ret else 'NO')
0