結果

問題 No.3382 Palindrome Substrings (Python)
コンテスト
ユーザー Yu_212
提出日時 2025-11-22 14:11:00
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 342 ms / 2,000 ms
コード長 86 bytes
コンパイル時間 248 ms
コンパイル使用メモリ 82,836 KB
実行使用メモリ 75,936 KB
最終ジャッジ日時 2025-11-22 14:11:06
合計ジャッジ時間 5,904 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

n=int(input());s=input();print(sum((f:=s[i%n:i//n+1])==f[::-1]>""for i in range(n*n)))
0