結果

問題 No.1755 Almost Palindrome
ユーザー sasa8uyauyasasa8uyauya
提出日時 2023-11-02 18:27:15
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 161 bytes
コンパイル時間 155 ms
コンパイル使用メモリ 81,836 KB
実行使用メモリ 118,804 KB
最終ジャッジ日時 2023-11-02 18:27:18
合計ジャッジ時間 3,149 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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())])
0