結果
問題 |
No.1755 Almost Palindrome
|
ユーザー |
![]() |
提出日時 | 2023-11-02 18:27:15 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 161 bytes |
コンパイル時間 | 364 ms |
コンパイル使用メモリ | 82,268 KB |
実行使用メモリ | 119,040 KB |
最終ジャッジ日時 | 2024-09-25 18:15:44 |
合計ジャッジ時間 | 3,640 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | WA * 2 |
ソースコード
M=998244353 a=[0,0,650] for i in range(2,1000001): a+=[26*a[-2]+2*650*2*pow(26,i//2-1,M)-650] a[-1]%=M for _ in range(int(input())): print(a[int(input())])