結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,532 KB
testcase_01 AC 71 ms
75,708 KB
testcase_02 AC 71 ms
75,712 KB
testcase_03 AC 74 ms
75,680 KB
testcase_04 AC 71 ms
75,604 KB
testcase_05 AC 68 ms
75,672 KB
testcase_06 AC 70 ms
75,720 KB
testcase_07 AC 69 ms
75,780 KB
testcase_08 AC 71 ms
75,680 KB
testcase_09 AC 69 ms
75,620 KB
testcase_10 AC 68 ms
75,572 KB
testcase_11 AC 64 ms
71,388 KB
testcase_12 AC 65 ms
71,396 KB
testcase_13 AC 65 ms
71,580 KB
testcase_14 AC 66 ms
71,576 KB
testcase_15 AC 69 ms
75,756 KB
testcase_16 AC 65 ms
71,512 KB
testcase_17 AC 69 ms
75,728 KB
testcase_18 AC 68 ms
75,776 KB
testcase_19 AC 70 ms
75,760 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