結果

問題 No.1126 SUM
ユーザー tyawanmusityawanmusi
提出日時 2020-07-25 15:34:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 607 ms / 1,000 ms
コード長 110 bytes
コンパイル時間 287 ms
コンパイル使用メモリ 87,180 KB
実行使用メモリ 81,984 KB
最終ジャッジ日時 2023-09-09 13:51:31
合計ジャッジ時間 10,123 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 279 ms
79,172 KB
testcase_01 AC 592 ms
79,736 KB
testcase_02 AC 154 ms
76,456 KB
testcase_03 AC 115 ms
76,232 KB
testcase_04 AC 607 ms
79,932 KB
testcase_05 AC 412 ms
78,084 KB
testcase_06 AC 196 ms
76,596 KB
testcase_07 AC 226 ms
77,832 KB
testcase_08 AC 299 ms
78,536 KB
testcase_09 AC 437 ms
78,240 KB
testcase_10 AC 300 ms
79,264 KB
testcase_11 AC 195 ms
77,496 KB
testcase_12 AC 338 ms
79,392 KB
testcase_13 AC 169 ms
76,940 KB
testcase_14 AC 237 ms
76,916 KB
testcase_15 AC 198 ms
77,020 KB
testcase_16 AC 439 ms
79,080 KB
testcase_17 AC 206 ms
76,888 KB
testcase_18 AC 286 ms
77,508 KB
testcase_19 AC 534 ms
79,672 KB
testcase_20 AC 188 ms
76,620 KB
testcase_21 AC 508 ms
79,412 KB
testcase_22 AC 324 ms
77,456 KB
testcase_23 AC 522 ms
79,592 KB
testcase_24 AC 215 ms
77,652 KB
testcase_25 AC 263 ms
81,984 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