結果

問題 No.129 お年玉(2)
ユーザー yaoshimaxyaoshimax
提出日時 2015-04-26 09:35:27
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 136 ms / 5,000 ms
コード長 139 bytes
コンパイル時間 732 ms
コンパイル使用メモリ 77,064 KB
実行使用メモリ 78,452 KB
最終ジャッジ日時 2023-08-18 17:08:52
合計ジャッジ時間 7,562 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
75,576 KB
testcase_01 AC 136 ms
77,988 KB
testcase_02 AC 83 ms
75,892 KB
testcase_03 AC 81 ms
75,828 KB
testcase_04 AC 83 ms
75,956 KB
testcase_05 AC 105 ms
78,064 KB
testcase_06 AC 101 ms
78,088 KB
testcase_07 AC 113 ms
78,056 KB
testcase_08 AC 113 ms
77,876 KB
testcase_09 AC 96 ms
78,004 KB
testcase_10 AC 115 ms
77,824 KB
testcase_11 AC 100 ms
78,068 KB
testcase_12 AC 83 ms
75,800 KB
testcase_13 AC 81 ms
75,680 KB
testcase_14 AC 100 ms
78,156 KB
testcase_15 AC 98 ms
77,956 KB
testcase_16 AC 106 ms
78,452 KB
testcase_17 AC 96 ms
78,048 KB
testcase_18 AC 114 ms
77,984 KB
testcase_19 AC 122 ms
78,072 KB
testcase_20 AC 108 ms
78,188 KB
testcase_21 AC 97 ms
77,976 KB
testcase_22 AC 104 ms
78,152 KB
testcase_23 AC 116 ms
78,444 KB
testcase_24 AC 125 ms
78,056 KB
testcase_25 AC 102 ms
77,900 KB
testcase_26 AC 110 ms
77,892 KB
testcase_27 AC 109 ms
77,904 KB
testcase_28 AC 109 ms
77,872 KB
testcase_29 AC 84 ms
75,516 KB
testcase_30 AC 82 ms
75,680 KB
testcase_31 AC 82 ms
75,832 KB
testcase_32 AC 81 ms
75,960 KB
testcase_33 AC 81 ms
75,512 KB
testcase_34 AC 82 ms
75,832 KB
testcase_35 AC 82 ms
75,676 KB
testcase_36 AC 83 ms
75,700 KB
testcase_37 AC 81 ms
75,884 KB
testcase_38 AC 91 ms
78,004 KB
testcase_39 AC 88 ms
77,860 KB
testcase_40 AC 90 ms
77,896 KB
testcase_41 AC 94 ms
78,164 KB
testcase_42 AC 90 ms
78,280 KB
testcase_43 AC 82 ms
75,788 KB
testcase_44 AC 131 ms
78,212 KB
testcase_45 AC 88 ms
78,244 KB
testcase_46 AC 84 ms
75,516 KB
testcase_47 AC 125 ms
78,052 KB
testcase_48 AC 111 ms
77,860 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(raw_input())
M=int(raw_input())
n=(N-(N/M/1000)*1000*M)/1000
ans=1
for i in range(n):
    ans*=M-i
    ans/=i+1
print ans%1000000000
0