結果

問題 No.1989 Pairing Multiset
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2022-06-25 09:21:29
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 92 ms / 2,000 ms
コード長 199 bytes
コンパイル時間 372 ms
コンパイル使用メモリ 86,840 KB
実行使用メモリ 75,896 KB
最終ジャッジ日時 2023-08-08 23:12:44
合計ジャッジ時間 3,532 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
75,768 KB
testcase_01 AC 92 ms
75,664 KB
testcase_02 AC 90 ms
75,792 KB
testcase_03 AC 92 ms
75,828 KB
testcase_04 AC 72 ms
71,096 KB
testcase_05 AC 91 ms
75,800 KB
testcase_06 AC 71 ms
71,232 KB
testcase_07 AC 73 ms
71,144 KB
testcase_08 AC 90 ms
75,896 KB
testcase_09 AC 76 ms
75,756 KB
testcase_10 AC 80 ms
75,616 KB
testcase_11 AC 85 ms
75,664 KB
testcase_12 AC 86 ms
75,828 KB
testcase_13 AC 89 ms
75,760 KB
testcase_14 AC 77 ms
75,772 KB
testcase_15 AC 78 ms
75,896 KB
testcase_16 AC 88 ms
75,756 KB
testcase_17 AC 76 ms
75,844 KB
testcase_18 AC 71 ms
71,196 KB
testcase_19 AC 77 ms
75,796 KB
testcase_20 AC 91 ms
75,844 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m = map(int,input().split())
mod = 998244353

ans = n
base = 1
for i in range(2*n+1):
    ans *= 2*n+m-i
    ans %= mod
    base *= 2*n+1-i
    base %= mod
ans *= pow(base,mod-2,mod)
print(ans%mod)
0