結果

問題 No.129 お年玉(2)
ユーザー pekempeypekempey
提出日時 2015-12-20 22:40:58
言語 Python2
(2.7.18)
結果
AC  
実行時間 32 ms / 5,000 ms
コード長 134 bytes
コンパイル時間 747 ms
コンパイル使用メモリ 6,700 KB
実行使用メモリ 6,512 KB
最終ジャッジ日時 2023-08-18 17:28:34
合計ジャッジ時間 2,894 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,004 KB
testcase_01 AC 12 ms
6,436 KB
testcase_02 AC 10 ms
6,136 KB
testcase_03 AC 10 ms
5,988 KB
testcase_04 AC 10 ms
6,124 KB
testcase_05 AC 19 ms
6,344 KB
testcase_06 AC 20 ms
6,276 KB
testcase_07 AC 27 ms
6,276 KB
testcase_08 AC 19 ms
6,316 KB
testcase_09 AC 17 ms
6,232 KB
testcase_10 AC 30 ms
6,232 KB
testcase_11 AC 21 ms
6,152 KB
testcase_12 AC 11 ms
5,988 KB
testcase_13 AC 9 ms
6,124 KB
testcase_14 AC 19 ms
6,196 KB
testcase_15 AC 18 ms
6,172 KB
testcase_16 AC 21 ms
6,304 KB
testcase_17 AC 16 ms
6,280 KB
testcase_18 AC 27 ms
6,216 KB
testcase_19 AC 26 ms
6,352 KB
testcase_20 AC 25 ms
6,152 KB
testcase_21 AC 17 ms
6,292 KB
testcase_22 AC 21 ms
6,316 KB
testcase_23 AC 29 ms
6,208 KB
testcase_24 AC 23 ms
6,512 KB
testcase_25 AC 19 ms
6,132 KB
testcase_26 AC 22 ms
6,268 KB
testcase_27 AC 23 ms
6,312 KB
testcase_28 AC 25 ms
6,248 KB
testcase_29 AC 10 ms
6,212 KB
testcase_30 AC 10 ms
6,112 KB
testcase_31 AC 10 ms
5,988 KB
testcase_32 AC 10 ms
5,972 KB
testcase_33 AC 9 ms
6,060 KB
testcase_34 AC 9 ms
5,992 KB
testcase_35 AC 9 ms
6,184 KB
testcase_36 AC 10 ms
6,136 KB
testcase_37 AC 10 ms
6,160 KB
testcase_38 AC 11 ms
6,164 KB
testcase_39 AC 11 ms
6,020 KB
testcase_40 AC 14 ms
6,244 KB
testcase_41 AC 16 ms
6,172 KB
testcase_42 AC 13 ms
6,196 KB
testcase_43 AC 10 ms
6,188 KB
testcase_44 AC 32 ms
6,460 KB
testcase_45 AC 12 ms
6,168 KB
testcase_46 AC 10 ms
6,156 KB
testcase_47 AC 31 ms
6,340 KB
testcase_48 AC 21 ms
6,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = input()
m = input()
n /= 1000
n %= m

# mCn
ans = 1
for i in range(n)[::-1]:
	ans *= m - i
	ans /= n - i
ans %= 10 ** 9
print ans
0