結果

問題 No.2467 Sum of Product of Binomial Coefficients
ユーザー 遭難者遭難者
提出日時 2023-09-19 01:11:29
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 456 ms / 2,000 ms
コード長 154 bytes
コンパイル時間 764 ms
コンパイル使用メモリ 87,340 KB
実行使用メモリ 77,484 KB
最終ジャッジ日時 2023-09-19 01:11:36
合計ジャッジ時間 4,476 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
75,884 KB
testcase_01 AC 211 ms
75,788 KB
testcase_02 AC 232 ms
75,896 KB
testcase_03 AC 227 ms
75,852 KB
testcase_04 AC 228 ms
75,988 KB
testcase_05 AC 456 ms
77,484 KB
testcase_06 AC 179 ms
76,920 KB
testcase_07 AC 99 ms
76,824 KB
testcase_08 AC 203 ms
76,928 KB
testcase_09 AC 268 ms
77,328 KB
testcase_10 AC 139 ms
75,848 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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