結果

問題 No.2467 Sum of Product of Binomial Coefficients
ユーザー hiro1729hiro1729
提出日時 2023-09-18 08:15:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 490 ms / 2,000 ms
コード長 138 bytes
コンパイル時間 1,067 ms
コンパイル使用メモリ 87,292 KB
実行使用メモリ 78,584 KB
最終ジャッジ日時 2023-09-18 08:15:15
合計ジャッジ時間 4,149 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
75,608 KB
testcase_01 AC 206 ms
75,696 KB
testcase_02 AC 251 ms
75,444 KB
testcase_03 AC 223 ms
75,316 KB
testcase_04 AC 235 ms
75,532 KB
testcase_05 AC 490 ms
77,960 KB
testcase_06 AC 233 ms
78,164 KB
testcase_07 AC 134 ms
77,636 KB
testcase_08 AC 211 ms
76,584 KB
testcase_09 AC 311 ms
78,584 KB
testcase_10 AC 113 ms
75,468 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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