結果

問題 No.842 初詣
ユーザー Konton7Konton7
提出日時 2020-03-20 00:00:15
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 265 bytes
コンパイル時間 139 ms
コンパイル使用メモリ 10,716 KB
実行使用メモリ 23,036 KB
最終ジャッジ日時 2023-08-20 21:14:14
合計ジャッジ時間 2,241 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,736 KB
testcase_01 AC 16 ms
7,880 KB
testcase_02 AC 16 ms
7,968 KB
testcase_03 AC 28 ms
9,956 KB
testcase_04 AC 24 ms
9,052 KB
testcase_05 AC 62 ms
13,880 KB
testcase_06 AC 16 ms
7,852 KB
testcase_07 AC 38 ms
9,896 KB
testcase_08 AC 16 ms
7,752 KB
testcase_09 AC 26 ms
9,524 KB
testcase_10 AC 129 ms
23,036 KB
testcase_11 AC 16 ms
7,792 KB
testcase_12 AC 36 ms
10,860 KB
testcase_13 AC 25 ms
8,968 KB
testcase_14 AC 19 ms
8,184 KB
testcase_15 AC 16 ms
7,900 KB
testcase_16 AC 20 ms
8,728 KB
testcase_17 AC 29 ms
9,964 KB
testcase_18 AC 55 ms
13,716 KB
testcase_19 AC 31 ms
9,344 KB
testcase_20 AC 54 ms
13,160 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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