結果

問題 No.2467 Sum of Product of Binomial Coefficients
ユーザー 👑 p-adicp-adic
提出日時 2023-09-17 21:26:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 411 ms / 2,000 ms
コード長 118 bytes
コンパイル時間 187 ms
コンパイル使用メモリ 82,344 KB
実行使用メモリ 77,056 KB
最終ジャッジ日時 2024-07-04 15:21:45
合計ジャッジ時間 3,254 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
61,484 KB
testcase_01 AC 171 ms
64,024 KB
testcase_02 AC 192 ms
63,256 KB
testcase_03 AC 191 ms
64,092 KB
testcase_04 AC 188 ms
69,900 KB
testcase_05 AC 411 ms
76,956 KB
testcase_06 AC 179 ms
76,672 KB
testcase_07 AC 99 ms
76,596 KB
testcase_08 AC 171 ms
75,048 KB
testcase_09 AC 273 ms
77,056 KB
testcase_10 AC 77 ms
66,064 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

P=998244353
for t in range(int(input())):
	N,K=map(int,input().split())
	print(sum(pow(k,N,P)for k in range(2,K+2))%P)
0