結果

問題 No.3382 Palindrome Substrings (Python)
コンテスト
ユーザー 回転
提出日時 2025-11-22 20:03:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 260 ms / 2,000 ms
コード長 97 bytes
コンパイル時間 412 ms
コンパイル使用メモリ 82,036 KB
実行使用メモリ 76,184 KB
最終ジャッジ日時 2025-11-22 20:03:13
合計ジャッジ時間 5,331 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

i=input;N=int(i());S=i();print(sum(S[i:j+1]==S[i:j+1][::-1]for i in range(N)for j in range(i,N)))
0