結果

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

ソースコード

diff #
raw source code

n,S=map(str,open(0));n=int(n);a=n*n+n;print(sum([S[i%n:i//n]==S[i%n:i//n][::-1] for i in range(a)])-a//2)
0