結果
問題 |
No.273 回文分解
|
ユーザー |
![]() |
提出日時 | 2015-08-28 23:09:48 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 232 bytes |
コンパイル時間 | 195 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-12-23 11:51:51 |
合計ジャッジ時間 | 2,242 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 WA * 10 |
ソースコード
L = [str(x) for x in str(input())] n = len(L) c = 1 for m in range (1, n): for l in range(1, n - m + 1): M = L[l : l + m] N = M[::-1] if M == N and c < m: c = m if c == 2: c = 1 print(c)