結果
| 問題 |
No.3382 Palindrome Substrings (Python)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-11-22 14:05:05 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 256 ms / 2,000 ms |
| コード長 | 102 bytes |
| コンパイル時間 | 332 ms |
| コンパイル使用メモリ | 83,040 KB |
| 実行使用メモリ | 76,168 KB |
| 最終ジャッジ日時 | 2025-11-22 14:05:10 |
| 合計ジャッジ時間 | 4,990 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
N=int(input())+1;S="0"+input();print(sum(S[i:j+1]==S[j:i-1:-1]for i in range(1,N)for j in range(i,N)))