結果

問題 No.1126 SUM
ユーザー もりをもりを
提出日時 2020-07-24 22:37:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 137 ms / 1,000 ms
コード長 103 bytes
コンパイル時間 643 ms
コンパイル使用メモリ 86,520 KB
実行使用メモリ 76,164 KB
最終ジャッジ日時 2023-09-08 04:56:00
合計ジャッジ時間 4,922 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
75,304 KB
testcase_01 AC 118 ms
75,428 KB
testcase_02 AC 88 ms
75,904 KB
testcase_03 AC 95 ms
75,848 KB
testcase_04 AC 121 ms
75,588 KB
testcase_05 AC 109 ms
75,468 KB
testcase_06 AC 92 ms
75,884 KB
testcase_07 AC 82 ms
75,468 KB
testcase_08 AC 92 ms
75,896 KB
testcase_09 AC 101 ms
75,712 KB
testcase_10 AC 137 ms
76,164 KB
testcase_11 AC 80 ms
75,652 KB
testcase_12 AC 85 ms
76,008 KB
testcase_13 AC 85 ms
75,752 KB
testcase_14 AC 112 ms
75,300 KB
testcase_15 AC 107 ms
75,300 KB
testcase_16 AC 97 ms
75,472 KB
testcase_17 AC 97 ms
75,692 KB
testcase_18 AC 90 ms
75,788 KB
testcase_19 AC 125 ms
75,304 KB
testcase_20 AC 90 ms
75,584 KB
testcase_21 AC 126 ms
75,772 KB
testcase_22 AC 108 ms
75,588 KB
testcase_23 AC 106 ms
75,656 KB
testcase_24 AC 82 ms
75,800 KB
testcase_25 AC 70 ms
71,256 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

M=10**9+7
n,m=map(int,input().split())
r=1
for i in range(n+1):r*=m+1-i;r*=pow(i+1,M-2,M);r%=M
print(r)
0