結果

問題 No.2467 Sum of Product of Binomial Coefficients
ユーザー rafi2
提出日時 2023-10-06 20:39:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 397 ms / 2,000 ms
コード長 187 bytes
コンパイル時間 170 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 76,416 KB
最終ジャッジ日時 2024-07-26 15:34:04
合計ジャッジ時間 2,722 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

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