結果
| 問題 |
No.2752 文字列の数え上げ mod 998244353
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-05-10 21:41:55 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 273 ms / 2,000 ms |
| コード長 | 279 bytes |
| コンパイル時間 | 613 ms |
| コンパイル使用メモリ | 69,360 KB |
| 最終ジャッジ日時 | 2025-02-21 12:28:54 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
#include <atcoder/modint>
#include <iostream>
using mint = atcoder::modint998244353;
int main() {
int T;
std::cin >> T;
while(T--) {
long long L;
std::cin >> L;
std::cout << ((1 - mint(26).pow(L + 1)) / 25 * -1 - 1).val() << '\n';
}
return 0;
}