結果
| 問題 | No.2467 Sum of Product of Binomial Coefficients |
| コンテスト | |
| ユーザー |
a01sa01to
|
| 提出日時 | 2026-01-27 00:03:25 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 48 ms / 2,000 ms |
| コード長 | 469 bytes |
| 記録 | |
| コンパイル時間 | 3,160 ms |
| コンパイル使用メモリ | 336,832 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-01-27 00:03:29 |
| 合計ジャッジ時間 | 4,748 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 10 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using ull = unsigned long long;
#include <atcoder/modint>
using mint = atcoder::modint998244353;
int main() {
cin.tie(nullptr)->sync_with_stdio(false);
int t;
cin >> t;
while (t--) {
int n, k;
cin >> n >> k;
mint ans = 0;
for (int i = 1; i <= k; ++i) ans += mint(i + 1).pow(n);
cout << ans.val() << '\n';
}
return 0;
}
a01sa01to