結果
| 問題 |
No.3382 Palindrome Substrings (Python)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-11-22 13:21:45 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 240 ms / 2,000 ms |
| コード長 | 96 bytes |
| コンパイル時間 | 279 ms |
| コンパイル使用メモリ | 82,604 KB |
| 実行使用メモリ | 76,244 KB |
| 最終ジャッジ日時 | 2025-11-22 13:21:51 |
| 合計ジャッジ時間 | 5,146 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
N,S=open(0) R=range(int(N)+1) S=" "+S print(sum(S[i:j+1]==S[j:i-1:-1]!=""for i in R for j in R))