結果
| 問題 | No.2467 Sum of Product of Binomial Coefficients |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2026-01-08 05:45:49 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 208 ms / 2,000 ms |
| コード長 | 347 bytes |
| 記録 | |
| コンパイル時間 | 292 ms |
| コンパイル使用メモリ | 82,728 KB |
| 実行使用メモリ | 76,280 KB |
| 最終ジャッジ日時 | 2026-01-08 05:45:52 |
| 合計ジャッジ時間 | 3,168 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 10 |
ソースコード
# 解説を見た。
# ほぼ答え、というところまで実験していたのに、解けないのはダメ。
import sys
input = sys.stdin.readline
mod=998244353
T=int(input())
for tests in range(T):
N,K=map(int,input().split())
ANS=0
for i in range(1,K+1):
ANS=ANS+pow(i+1,N,mod)
ANS%=mod
print(ANS)
titia