結果
問題 | No.2752 文字列の数え上げ mod 998244353 |
ユーザー |
|
提出日時 | 2024-05-10 23:09:48 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 77 ms / 2,000 ms |
コード長 | 346 bytes |
コンパイル時間 | 2,725 ms |
コンパイル使用メモリ | 84,996 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-20 07:23:50 |
合計ジャッジ時間 | 4,236 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
#include <iostream>#include <atcoder/modint>typedef atcoder::modint998244353 mint;mint solve() {int64_t l;std::cin >> l;return 26 * (mint(26).pow(l) - 1) / 25;}int main() {std::cin.tie(nullptr) -> sync_with_stdio(false);int t;std::cin >> t;while(t--) {std::cout << solve().val() << '\n';}}