結果

問題 No.1989 Pairing Multiset
ユーザー chineristACchineristAC
提出日時 2022-06-24 22:03:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 1,916 ms / 2,000 ms
コード長 439 bytes
コンパイル時間 159 ms
コンパイル使用メモリ 82,476 KB
実行使用メモリ 65,280 KB
最終ジャッジ日時 2024-04-26 05:16:50
合計ジャッジ時間 24,106 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,914 ms
63,800 KB
testcase_01 AC 1,903 ms
65,144 KB
testcase_02 AC 1,916 ms
63,668 KB
testcase_03 AC 1,895 ms
63,744 KB
testcase_04 AC 43 ms
57,168 KB
testcase_05 AC 1,895 ms
64,220 KB
testcase_06 AC 45 ms
56,632 KB
testcase_07 AC 44 ms
56,460 KB
testcase_08 AC 1,815 ms
65,280 KB
testcase_09 AC 116 ms
64,412 KB
testcase_10 AC 667 ms
65,132 KB
testcase_11 AC 1,190 ms
64,240 KB
testcase_12 AC 1,291 ms
64,640 KB
testcase_13 AC 1,840 ms
64,748 KB
testcase_14 AC 340 ms
64,928 KB
testcase_15 AC 299 ms
64,132 KB
testcase_16 AC 1,622 ms
64,456 KB
testcase_17 AC 182 ms
63,720 KB
testcase_18 AC 46 ms
56,420 KB
testcase_19 AC 278 ms
64,536 KB
testcase_20 AC 1,908 ms
64,680 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,random,bisect
from collections import deque,defaultdict
from heapq import heapify,heappop,heappush
from itertools import permutations
from math import log,gcd

input = lambda :sys.stdin.readline().rstrip()
mi = lambda :map(int,input().split())
li = lambda :list(mi())

mod = 998244353

N,M = mi()

res = N
for i in range(2*N+1):
    res *= (M+2*N-i) % mod
    res %= mod
    res *= pow(i+1,mod-2,mod)
    res %= mod

print(res)
0