結果

問題 No.3382 Palindrome Substrings (Python)
コンテスト
ユーザー souta-1326
提出日時 2025-11-22 14:53:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 259 ms / 2,000 ms
コード長 95 bytes
コンパイル時間 405 ms
コンパイル使用メモリ 82,300 KB
実行使用メモリ 76,360 KB
最終ジャッジ日時 2025-11-22 14:54:02
合計ジャッジ時間 5,141 ms
ジャッジサーバーID
(参考情報)
judge2 / judge7
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

N,S=open(0)
R=range(int(N)+1)
S=" "+S
print(sum(S[i:j+1]==S[j:i-1:-1]>""for i in R for j in R))
0