結果

問題 No.1126 SUM
ユーザー pluto77pluto77
提出日時 2020-07-31 09:49:53
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 607 ms / 1,000 ms
コード長 122 bytes
コンパイル時間 469 ms
コンパイル使用メモリ 87,100 KB
実行使用メモリ 82,036 KB
最終ジャッジ日時 2023-09-19 09:23:31
合計ジャッジ時間 10,396 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 281 ms
79,244 KB
testcase_01 AC 596 ms
79,672 KB
testcase_02 AC 153 ms
76,300 KB
testcase_03 AC 113 ms
76,116 KB
testcase_04 AC 607 ms
79,528 KB
testcase_05 AC 417 ms
77,748 KB
testcase_06 AC 196 ms
76,540 KB
testcase_07 AC 226 ms
77,976 KB
testcase_08 AC 295 ms
77,936 KB
testcase_09 AC 439 ms
78,164 KB
testcase_10 AC 305 ms
79,140 KB
testcase_11 AC 195 ms
77,876 KB
testcase_12 AC 335 ms
79,320 KB
testcase_13 AC 164 ms
76,520 KB
testcase_14 AC 238 ms
77,140 KB
testcase_15 AC 197 ms
76,804 KB
testcase_16 AC 444 ms
79,228 KB
testcase_17 AC 209 ms
76,492 KB
testcase_18 AC 286 ms
77,676 KB
testcase_19 AC 532 ms
79,636 KB
testcase_20 AC 189 ms
76,604 KB
testcase_21 AC 512 ms
79,352 KB
testcase_22 AC 325 ms
77,608 KB
testcase_23 AC 522 ms
79,356 KB
testcase_24 AC 216 ms
77,756 KB
testcase_25 AC 268 ms
82,036 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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