結果

問題 No.2467 Sum of Product of Binomial Coefficients
ユーザー flippergo
提出日時 2025-08-04 21:14:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 409 ms / 2,000 ms
コード長 179 bytes
コンパイル時間 419 ms
コンパイル使用メモリ 82,836 KB
実行使用メモリ 76,648 KB
最終ジャッジ日時 2025-08-04 21:14:30
合計ジャッジ時間 3,682 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

MOD = 998244353
T = int(input())
for _ in range(T):
    N,K = map(int,input().split())
    ans = 0
    for k in range(1,K+1):
        ans = (ans+pow(k+1,N,MOD))%MOD
    print(ans)
0