結果

問題 No.2023 Tiling is Fun
ユーザー lllllll88938494lllllll88938494
提出日時 2022-07-30 02:34:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 267 bytes
コンパイル時間 341 ms
コンパイル使用メモリ 87,240 KB
実行使用メモリ 75,900 KB
最終ジャッジ日時 2023-09-27 03:39:51
合計ジャッジ時間 2,833 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,512 KB
testcase_01 AC 76 ms
75,772 KB
testcase_02 AC 77 ms
75,620 KB
testcase_03 AC 79 ms
75,632 KB
testcase_04 AC 76 ms
75,764 KB
testcase_05 AC 75 ms
75,772 KB
testcase_06 AC 76 ms
75,796 KB
testcase_07 AC 78 ms
75,736 KB
testcase_08 AC 76 ms
75,636 KB
testcase_09 AC 77 ms
75,900 KB
testcase_10 AC 76 ms
75,780 KB
testcase_11 AC 72 ms
71,392 KB
testcase_12 AC 72 ms
71,600 KB
testcase_13 AC 71 ms
71,316 KB
testcase_14 AC 71 ms
71,320 KB
testcase_15 AC 76 ms
75,724 KB
testcase_16 AC 73 ms
71,320 KB
testcase_17 AC 75 ms
75,600 KB
testcase_18 AC 76 ms
75,852 KB
testcase_19 AC 77 ms
75,660 KB
権限があれば一括ダウンロードができます

ソースコード

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