結果
| 問題 |
No.3382 Palindrome Substrings (Python)
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2025-11-22 14:43:26 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 230 ms / 2,000 ms |
| コード長 | 110 bytes |
| コンパイル時間 | 447 ms |
| コンパイル使用メモリ | 82,036 KB |
| 実行使用メモリ | 75,848 KB |
| 最終ジャッジ日時 | 2025-11-22 14:43:31 |
| 合計ジャッジ時間 | 4,894 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)