結果

問題 No.2467 Sum of Product of Binomial Coefficients
ユーザー rafi2rafi2
提出日時 2023-10-06 20:38:30
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 184 bytes
コンパイル時間 472 ms
コンパイル使用メモリ 87,192 KB
実行使用メモリ 77,748 KB
最終ジャッジ日時 2023-10-06 20:38:34
合計ジャッジ時間 3,672 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 207 ms
76,152 KB
testcase_02 AC 229 ms
76,416 KB
testcase_03 AC 219 ms
76,444 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

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