結果

問題 No.129 お年玉(2)
ユーザー tookunn_1213tookunn_1213
提出日時 2017-05-05 11:16:19
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 207 bytes
コンパイル時間 355 ms
コンパイル使用メモリ 82,128 KB
実行使用メモリ 83,840 KB
最終ジャッジ日時 2024-09-14 08:39:45
合計ジャッジ時間 7,315 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample -- * 3
other AC * 1 TLE * 1 -- * 44
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
M = int(input())
N = (N//1000)%M
pascal = [0 for i in range(M+2)]
pascal[0] = 1
for i in range(1,M+1):
	for j in range(M,0,-1):
		pascal[j] = (pascal[j-1]+pascal[j])
print(pascal[N]%(10**9))
0