結果

問題 No.1126 SUM
ユーザー tyawanmusityawanmusi
提出日時 2020-07-25 15:33:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 110 bytes
コンパイル時間 236 ms
コンパイル使用メモリ 10,536 KB
実行使用メモリ 9,608 KB
最終ジャッジ日時 2023-09-09 13:50:35
合計ジャッジ時間 20,346 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 487 ms
9,168 KB
testcase_01 TLE -
testcase_02 AC 203 ms
8,580 KB
testcase_03 AC 99 ms
8,512 KB
testcase_04 TLE -
testcase_05 AC 893 ms
8,992 KB
testcase_06 AC 309 ms
8,724 KB
testcase_07 AC 379 ms
9,124 KB
testcase_08 AC 573 ms
9,084 KB
testcase_09 AC 934 ms
9,200 KB
testcase_10 AC 544 ms
9,180 KB
testcase_11 AC 297 ms
9,208 KB
testcase_12 AC 638 ms
9,260 KB
testcase_13 AC 229 ms
8,844 KB
testcase_14 AC 414 ms
8,872 KB
testcase_15 AC 304 ms
8,788 KB
testcase_16 AC 935 ms
9,224 KB
testcase_17 AC 330 ms
8,848 KB
testcase_18 AC 543 ms
9,016 KB
testcase_19 TLE -
testcase_20 AC 290 ms
8,764 KB
testcase_21 TLE -
testcase_22 AC 662 ms
8,992 KB
testcase_23 TLE -
testcase_24 AC 349 ms
9,000 KB
testcase_25 AC 390 ms
9,608 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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