結果

問題 No.2467 Sum of Product of Binomial Coefficients
ユーザー Shirotsume
提出日時 2023-09-20 13:40:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 373 ms / 2,000 ms
コード長 224 bytes
コンパイル時間 127 ms
コンパイル使用メモリ 82,848 KB
実行使用メモリ 76,296 KB
最終ジャッジ日時 2024-07-06 08:57:11
合計ジャッジ時間 3,147 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    mod = 998244353
    n, k = map(int,input().split())
    ans = 0
    for i in range(1, k + 1):
        ans += pow(i+1, n, mod)
        ans %= mod
    print(ans)
    

for _ in range(int(input())):
    solve()
0