結果

問題 No.129 お年玉(2)
ユーザー mlihua09mlihua09
提出日時 2020-09-16 16:32:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 480 ms / 5,000 ms
コード長 189 bytes
コンパイル時間 322 ms
コンパイル使用メモリ 86,944 KB
実行使用メモリ 76,428 KB
最終ジャッジ日時 2023-09-04 03:39:12
合計ジャッジ時間 10,036 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
70,940 KB
testcase_01 AC 480 ms
76,084 KB
testcase_02 AC 77 ms
71,164 KB
testcase_03 AC 77 ms
71,396 KB
testcase_04 AC 76 ms
71,456 KB
testcase_05 AC 203 ms
76,052 KB
testcase_06 AC 142 ms
76,028 KB
testcase_07 AC 237 ms
76,316 KB
testcase_08 AC 263 ms
76,064 KB
testcase_09 AC 123 ms
76,332 KB
testcase_10 AC 261 ms
76,060 KB
testcase_11 AC 158 ms
76,132 KB
testcase_12 AC 80 ms
71,108 KB
testcase_13 AC 78 ms
71,228 KB
testcase_14 AC 140 ms
76,428 KB
testcase_15 AC 132 ms
76,064 KB
testcase_16 AC 165 ms
76,308 KB
testcase_17 AC 114 ms
75,900 KB
testcase_18 AC 240 ms
76,252 KB
testcase_19 AC 335 ms
76,252 KB
testcase_20 AC 190 ms
75,932 KB
testcase_21 AC 119 ms
75,640 KB
testcase_22 AC 182 ms
75,956 KB
testcase_23 AC 255 ms
76,344 KB
testcase_24 AC 377 ms
76,200 KB
testcase_25 AC 154 ms
76,000 KB
testcase_26 AC 215 ms
76,032 KB
testcase_27 AC 198 ms
76,048 KB
testcase_28 AC 177 ms
76,124 KB
testcase_29 AC 78 ms
71,428 KB
testcase_30 AC 79 ms
70,992 KB
testcase_31 AC 76 ms
71,428 KB
testcase_32 AC 76 ms
70,984 KB
testcase_33 AC 77 ms
71,328 KB
testcase_34 AC 77 ms
71,280 KB
testcase_35 AC 78 ms
71,164 KB
testcase_36 AC 75 ms
71,396 KB
testcase_37 AC 77 ms
71,124 KB
testcase_38 AC 89 ms
75,916 KB
testcase_39 AC 88 ms
75,548 KB
testcase_40 AC 100 ms
75,808 KB
testcase_41 AC 129 ms
76,068 KB
testcase_42 AC 104 ms
75,616 KB
testcase_43 AC 77 ms
71,240 KB
testcase_44 AC 394 ms
76,140 KB
testcase_45 AC 91 ms
75,892 KB
testcase_46 AC 76 ms
71,228 KB
testcase_47 AC 326 ms
76,068 KB
testcase_48 AC 265 ms
76,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #


N = int(input())

M = int(input())

N //= 1000
N %= M

ans = 1

for i in range(M, M - N, -1):
    
    ans *= i
    
for i in range(1, N + 1):
    
    ans //= i
    
print(ans % 10 ** 9)
0