結果

問題 No.129 お年玉(2)
ユーザー ebicochinealebicochineal
提出日時 2017-04-05 04:27:12
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 206 ms / 5,000 ms
コード長 91 bytes
コンパイル時間 156 ms
コンパイル使用メモリ 10,672 KB
実行使用メモリ 68,088 KB
最終ジャッジ日時 2023-08-18 17:53:25
合計ジャッジ時間 5,737 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 24 ms
12,548 KB
testcase_01 AC 206 ms
68,088 KB
testcase_02 AC 13 ms
7,796 KB
testcase_03 AC 13 ms
7,832 KB
testcase_04 AC 13 ms
7,892 KB
testcase_05 AC 119 ms
41,920 KB
testcase_06 AC 75 ms
29,424 KB
testcase_07 AC 120 ms
43,236 KB
testcase_08 AC 134 ms
47,448 KB
testcase_09 AC 68 ms
26,568 KB
testcase_10 AC 138 ms
46,432 KB
testcase_11 AC 89 ms
33,216 KB
testcase_12 AC 19 ms
10,748 KB
testcase_13 AC 17 ms
9,980 KB
testcase_14 AC 75 ms
29,220 KB
testcase_15 AC 74 ms
28,444 KB
testcase_16 AC 91 ms
33,724 KB
testcase_17 AC 57 ms
24,572 KB
testcase_18 AC 130 ms
44,196 KB
testcase_19 AC 169 ms
55,876 KB
testcase_20 AC 105 ms
39,236 KB
testcase_21 AC 63 ms
25,880 KB
testcase_22 AC 101 ms
36,112 KB
testcase_23 AC 132 ms
45,428 KB
testcase_24 AC 182 ms
59,748 KB
testcase_25 AC 84 ms
32,208 KB
testcase_26 AC 120 ms
42,464 KB
testcase_27 AC 113 ms
41,128 KB
testcase_28 AC 96 ms
34,928 KB
testcase_29 AC 13 ms
7,892 KB
testcase_30 AC 13 ms
7,832 KB
testcase_31 AC 13 ms
7,828 KB
testcase_32 AC 13 ms
8,164 KB
testcase_33 AC 13 ms
7,900 KB
testcase_34 AC 16 ms
9,440 KB
testcase_35 AC 13 ms
8,356 KB
testcase_36 AC 16 ms
9,916 KB
testcase_37 AC 15 ms
9,028 KB
testcase_38 AC 37 ms
17,244 KB
testcase_39 AC 32 ms
15,596 KB
testcase_40 AC 47 ms
21,392 KB
testcase_41 AC 69 ms
28,668 KB
testcase_42 AC 51 ms
22,836 KB
testcase_43 AC 20 ms
10,980 KB
testcase_44 AC 185 ms
59,832 KB
testcase_45 AC 42 ms
18,548 KB
testcase_46 AC 20 ms
11,156 KB
testcase_47 AC 163 ms
54,672 KB
testcase_48 AC 136 ms
47,500 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M=int(input())//1000,int(input());r=i=1
exec('r=r*(M-i+1)//i;i+=1;'*(N%M))
print(r%10**9)
0