結果

問題 No.3046 yukicoderの過去問
ユーザー るさるさ
提出日時 2019-04-01 21:54:55
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 179 bytes
コンパイル時間 109 ms
コンパイル使用メモリ 10,708 KB
実行使用メモリ 13,744 KB
最終ジャッジ日時 2023-08-17 21:53:31
合計ジャッジ時間 4,198 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
9,688 KB
testcase_01 AC 25 ms
9,756 KB
testcase_02 AC 26 ms
9,708 KB
testcase_03 AC 183 ms
13,744 KB
testcase_04 AC 26 ms
9,688 KB
testcase_05 AC 104 ms
10,512 KB
testcase_06 TLE -
testcase_07 -- -
testcase_08 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

k=int(input())
n=int(input())
x=list(map(int,input().split()))

c=[0 for i in range(k+200000)]
c[0]=1
for i in range(k):
	for j in x:
		c[i+j]=(c[i+j]+c[i])%1000000007
print(c[k])
0