結果

問題 No.1989 Pairing Multiset
ユーザー ニックネームニックネーム
提出日時 2022-06-25 00:35:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 1,834 ms / 2,000 ms
コード長 139 bytes
コンパイル時間 429 ms
コンパイル使用メモリ 87,208 KB
実行使用メモリ 76,140 KB
最終ジャッジ日時 2023-08-08 13:52:06
合計ジャッジ時間 24,080 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,834 ms
75,876 KB
testcase_01 AC 1,833 ms
75,788 KB
testcase_02 AC 1,831 ms
75,868 KB
testcase_03 AC 1,807 ms
75,984 KB
testcase_04 AC 70 ms
71,096 KB
testcase_05 AC 1,833 ms
76,016 KB
testcase_06 AC 70 ms
71,156 KB
testcase_07 AC 69 ms
71,296 KB
testcase_08 AC 1,746 ms
75,860 KB
testcase_09 AC 140 ms
75,936 KB
testcase_10 AC 665 ms
75,940 KB
testcase_11 AC 1,160 ms
75,940 KB
testcase_12 AC 1,259 ms
76,000 KB
testcase_13 AC 1,758 ms
75,848 KB
testcase_14 AC 355 ms
76,140 KB
testcase_15 AC 311 ms
75,936 KB
testcase_16 AC 1,561 ms
75,896 KB
testcase_17 AC 201 ms
75,940 KB
testcase_18 AC 71 ms
71,180 KB
testcase_19 AC 292 ms
76,036 KB
testcase_20 AC 1,830 ms
75,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m = map(int, input().split())
mod = 998244353
ans = n
for i in range(2*n+1): ans = ans*(2*n+m-i)%mod*pow(i+1, mod-2, mod)%mod
print(ans)
0