結果
| 問題 | No.3382 Palindrome Substrings (Python) |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2025-11-22 14:43:26 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 159 ms / 2,000 ms |
| + 322µs | |
| コード長 | 110 bytes |
| 記録 | |
| コンパイル時間 | 270 ms |
| コンパイル使用メモリ | 96,104 KB |
| 実行使用メモリ | 83,712 KB |
| スコア | 64 |
| 最終ジャッジ日時 | 2026-07-16 22:17:53 |
| 合計ジャッジ時間 | 6,751 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
| 純コード判定しない問題か言語 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
n=int(input());s=input();ans=0 for x in range(n*n):i,j=x//n,x%n+1;ans+=i<j and s[i:j]==s[i:j][::-1] print(ans)