結果

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

ソースコード

diff #

mod = 998244353
ans = 0
t=  int(input())
for j in range(t):

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