結果
| 問題 |
No.1755 Almost Palindrome
|
| コンテスト | |
| ユーザー |
sasa8uyauya
|
| 提出日時 | 2023-11-02 18:29:24 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 788 ms / 2,000 ms |
| コード長 | 168 bytes |
| コンパイル時間 | 258 ms |
| コンパイル使用メモリ | 82,228 KB |
| 実行使用メモリ | 119,176 KB |
| 最終ジャッジ日時 | 2024-09-25 18:15:52 |
| 合計ジャッジ時間 | 3,029 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 2 |
ソースコード
M=998244353 a=[0,0,650] for i in range(3,1000001): a+=[26*a[-2]+650*2*pow(26,i//2-1,M)-650*(i%2==0)] a[-1]%=M for _ in range(int(input())): print(a[int(input())])
sasa8uyauya