結果
| 問題 | No.3382 Palindrome Substrings (Python) |
| コンテスト | |
| ユーザー |
platypus
|
| 提出日時 | 2026-05-16 12:43:56 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 140 ms / 2,000 ms |
| コード長 | 109 bytes |
| 記録 | |
| コンパイル時間 | 643 ms |
| コンパイル使用メモリ | 85,632 KB |
| 実行使用メモリ | 107,264 KB |
| スコア | 64 |
| 最終ジャッジ日時 | 2026-05-16 12:44:05 |
| 合計ジャッジ時間 | 5,332 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
n=int(input()) s=input() print(sum(map(lambda t:t==t[::-1],[s[j:i]for i in range(1,n+1) for j in range(i)])))
platypus