結果

問題 No.129 お年玉(2)
ユーザー TawaraTawara
提出日時 2015-09-13 16:47:52
言語 Python2
(2.7.18)
結果
AC  
実行時間 72 ms / 5,000 ms
コード長 109 bytes
コンパイル時間 682 ms
コンパイル使用メモリ 6,600 KB
実行使用メモリ 6,284 KB
最終ジャッジ日時 2023-08-18 17:26:29
合計ジャッジ時間 3,734 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
6,244 KB
testcase_01 AC 72 ms
6,252 KB
testcase_02 AC 11 ms
6,152 KB
testcase_03 AC 12 ms
6,044 KB
testcase_04 AC 12 ms
6,124 KB
testcase_05 AC 34 ms
6,224 KB
testcase_06 AC 45 ms
6,188 KB
testcase_07 AC 53 ms
6,164 KB
testcase_08 AC 42 ms
6,124 KB
testcase_09 AC 51 ms
6,208 KB
testcase_10 AC 56 ms
6,248 KB
testcase_11 AC 39 ms
6,072 KB
testcase_12 AC 52 ms
6,256 KB
testcase_13 AC 56 ms
6,112 KB
testcase_14 AC 48 ms
6,284 KB
testcase_15 AC 41 ms
6,168 KB
testcase_16 AC 45 ms
6,076 KB
testcase_17 AC 54 ms
6,164 KB
testcase_18 AC 51 ms
6,248 KB
testcase_19 AC 56 ms
6,252 KB
testcase_20 AC 53 ms
6,160 KB
testcase_21 AC 64 ms
6,148 KB
testcase_22 AC 40 ms
6,120 KB
testcase_23 AC 58 ms
6,088 KB
testcase_24 AC 62 ms
6,228 KB
testcase_25 AC 38 ms
6,124 KB
testcase_26 AC 40 ms
6,148 KB
testcase_27 AC 39 ms
6,076 KB
testcase_28 AC 64 ms
6,284 KB
testcase_29 AC 11 ms
6,108 KB
testcase_30 AC 11 ms
6,048 KB
testcase_31 AC 11 ms
6,164 KB
testcase_32 AC 11 ms
6,016 KB
testcase_33 AC 11 ms
6,056 KB
testcase_34 AC 11 ms
6,060 KB
testcase_35 AC 12 ms
6,108 KB
testcase_36 AC 12 ms
6,072 KB
testcase_37 AC 12 ms
6,072 KB
testcase_38 AC 17 ms
6,056 KB
testcase_39 AC 20 ms
6,064 KB
testcase_40 AC 37 ms
6,072 KB
testcase_41 AC 27 ms
6,208 KB
testcase_42 AC 18 ms
6,200 KB
testcase_43 AC 18 ms
6,100 KB
testcase_44 AC 69 ms
6,244 KB
testcase_45 AC 15 ms
6,052 KB
testcase_46 AC 22 ms
6,064 KB
testcase_47 AC 65 ms
6,248 KB
testcase_48 AC 44 ms
6,136 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import factorial as fact
N = input()/1000
M = input()
print fact(M)/fact(M-N%M)/fact(N%M) % (10**9)
0