結果

問題 No.129 お年玉(2)
ユーザー tookunn_1213tookunn_1213
提出日時 2017-05-05 11:22:38
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 405 ms / 5,000 ms
コード長 205 bytes
コンパイル時間 978 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 59,776 KB
最終ジャッジ日時 2024-05-05 23:25:02
合計ジャッジ時間 11,880 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
59,136 KB
testcase_01 AC 405 ms
59,392 KB
testcase_02 AC 39 ms
51,584 KB
testcase_03 AC 39 ms
51,328 KB
testcase_04 AC 39 ms
51,456 KB
testcase_05 AC 187 ms
59,392 KB
testcase_06 AC 275 ms
59,520 KB
testcase_07 AC 342 ms
59,264 KB
testcase_08 AC 238 ms
59,136 KB
testcase_09 AC 291 ms
59,520 KB
testcase_10 AC 334 ms
59,648 KB
testcase_11 AC 224 ms
59,392 KB
testcase_12 AC 277 ms
59,776 KB
testcase_13 AC 294 ms
59,520 KB
testcase_14 AC 278 ms
59,264 KB
testcase_15 AC 235 ms
59,520 KB
testcase_16 AC 265 ms
59,392 KB
testcase_17 AC 321 ms
59,264 KB
testcase_18 AC 319 ms
59,520 KB
testcase_19 AC 316 ms
59,520 KB
testcase_20 AC 310 ms
59,520 KB
testcase_21 AC 379 ms
59,776 KB
testcase_22 AC 227 ms
59,264 KB
testcase_23 AC 353 ms
59,264 KB
testcase_24 AC 329 ms
59,648 KB
testcase_25 AC 221 ms
59,648 KB
testcase_26 AC 237 ms
59,136 KB
testcase_27 AC 223 ms
59,776 KB
testcase_28 AC 384 ms
59,264 KB
testcase_29 AC 38 ms
51,968 KB
testcase_30 AC 37 ms
51,584 KB
testcase_31 AC 42 ms
57,856 KB
testcase_32 AC 42 ms
57,472 KB
testcase_33 AC 46 ms
58,752 KB
testcase_34 AC 45 ms
58,240 KB
testcase_35 AC 45 ms
58,496 KB
testcase_36 AC 46 ms
58,752 KB
testcase_37 AC 45 ms
58,368 KB
testcase_38 AC 82 ms
59,264 KB
testcase_39 AC 100 ms
59,264 KB
testcase_40 AC 203 ms
59,264 KB
testcase_41 AC 145 ms
59,264 KB
testcase_42 AC 92 ms
59,008 KB
testcase_43 AC 88 ms
59,264 KB
testcase_44 AC 390 ms
59,264 KB
testcase_45 AC 69 ms
59,264 KB
testcase_46 AC 111 ms
59,264 KB
testcase_47 AC 371 ms
59,264 KB
testcase_48 AC 239 ms
59,136 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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