結果

問題 No.2467 Sum of Product of Binomial Coefficients
ユーザー 👑 p-adicp-adic
提出日時 2023-09-17 21:26:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 500 ms / 2,000 ms
コード長 118 bytes
コンパイル時間 551 ms
コンパイル使用メモリ 87,104 KB
実行使用メモリ 78,684 KB
最終ジャッジ日時 2023-09-17 21:27:04
合計ジャッジ時間 4,376 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
75,964 KB
testcase_01 AC 210 ms
76,092 KB
testcase_02 AC 227 ms
76,048 KB
testcase_03 AC 222 ms
75,924 KB
testcase_04 AC 230 ms
76,012 KB
testcase_05 AC 500 ms
78,384 KB
testcase_06 AC 221 ms
78,684 KB
testcase_07 AC 136 ms
78,036 KB
testcase_08 AC 212 ms
77,136 KB
testcase_09 AC 335 ms
78,404 KB
testcase_10 AC 114 ms
76,100 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