結果

問題 No.1126 SUM
ユーザー iiljjiiljj
提出日時 2020-07-24 22:17:00
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 629 ms / 1,000 ms
コード長 102 bytes
コンパイル時間 98 ms
コンパイル使用メモリ 10,748 KB
実行使用メモリ 9,500 KB
最終ジャッジ日時 2023-09-08 04:30:12
合計ジャッジ時間 10,404 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 360 ms
9,360 KB
testcase_01 AC 611 ms
9,500 KB
testcase_02 AC 119 ms
8,724 KB
testcase_03 AC 73 ms
8,532 KB
testcase_04 AC 629 ms
9,392 KB
testcase_05 AC 413 ms
9,332 KB
testcase_06 AC 169 ms
8,800 KB
testcase_07 AC 291 ms
9,212 KB
testcase_08 AC 341 ms
8,972 KB
testcase_09 AC 450 ms
9,316 KB
testcase_10 AC 393 ms
9,312 KB
testcase_11 AC 244 ms
9,148 KB
testcase_12 AC 425 ms
9,212 KB
testcase_13 AC 157 ms
8,704 KB
testcase_14 AC 245 ms
9,076 KB
testcase_15 AC 184 ms
8,940 KB
testcase_16 AC 461 ms
9,064 KB
testcase_17 AC 175 ms
8,932 KB
testcase_18 AC 312 ms
9,064 KB
testcase_19 AC 572 ms
9,376 KB
testcase_20 AC 161 ms
8,856 KB
testcase_21 AC 550 ms
9,440 KB
testcase_22 AC 326 ms
9,208 KB
testcase_23 AC 528 ms
9,340 KB
testcase_24 AC 244 ms
9,116 KB
testcase_25 AC 398 ms
9,500 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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