結果

問題 No.1126 SUM
ユーザー iiljjiiljj
提出日時 2020-07-24 22:50:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 605 ms / 1,000 ms
コード長 100 bytes
コンパイル時間 349 ms
コンパイル使用メモリ 87,340 KB
実行使用メモリ 81,864 KB
最終ジャッジ日時 2023-09-08 05:11:29
合計ジャッジ時間 9,678 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 273 ms
79,080 KB
testcase_01 AC 578 ms
79,692 KB
testcase_02 AC 149 ms
76,312 KB
testcase_03 AC 112 ms
76,024 KB
testcase_04 AC 605 ms
79,844 KB
testcase_05 AC 415 ms
78,044 KB
testcase_06 AC 195 ms
76,596 KB
testcase_07 AC 227 ms
78,028 KB
testcase_08 AC 297 ms
78,240 KB
testcase_09 AC 423 ms
78,180 KB
testcase_10 AC 282 ms
79,540 KB
testcase_11 AC 184 ms
77,684 KB
testcase_12 AC 325 ms
79,572 KB
testcase_13 AC 158 ms
77,224 KB
testcase_14 AC 226 ms
77,156 KB
testcase_15 AC 183 ms
77,036 KB
testcase_16 AC 417 ms
79,096 KB
testcase_17 AC 196 ms
76,856 KB
testcase_18 AC 272 ms
77,688 KB
testcase_19 AC 512 ms
79,756 KB
testcase_20 AC 182 ms
76,784 KB
testcase_21 AC 502 ms
79,336 KB
testcase_22 AC 316 ms
77,284 KB
testcase_23 AC 512 ms
79,592 KB
testcase_24 AC 214 ms
77,600 KB
testcase_25 AC 259 ms
81,864 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import factorial as f
n,m=map(int,input().split())
print(f(m+1)//f(m-n)//f(n+1)%(10**9+7))
0