結果
| 問題 |
No.2752 文字列の数え上げ mod 998244353
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2024-05-11 05:35:37 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 1,498 ms / 2,000 ms |
| コード長 | 179 bytes |
| コンパイル時間 | 539 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-12-20 08:16:02 |
| 合計ジャッジ時間 | 8,661 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
import sys
input = sys.stdin.readline
mod=998244353
T=int(input())
for tests in range(T):
N=int(input())
ANS=26*(pow(26,N,mod)-1)*pow(25,mod-2,mod)
print(ANS%mod)
titia