結果

問題 No.2023 Tiling is Fun
ユーザー lllllll88938494
提出日時 2022-07-30 02:34:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 46 ms / 2,000 ms
コード長 267 bytes
コンパイル時間 168 ms
コンパイル使用メモリ 82,024 KB
実行使用メモリ 58,112 KB
最終ジャッジ日時 2024-07-19 21:01:32
合計ジャッジ時間 1,787 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b=map(int,input().split())

mod=998244353
def  nCk(n,k):
    x,y=1,1
    for i in range(n,n-k,-1):
        x*=i
        x%=mod
    for i in range(k,0,-1):
        y*=i
        y%=mod
        
    y1=pow(y,-1,mod)
    return (x * y1)%mod

t=nCk(a-1+b-1,a-1)
print(t)
0