結果
問題 | No.273 回文分解 |
ユーザー |
|
提出日時 | 2024-11-04 12:41:11 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 67 ms / 2,000 ms |
コード長 | 239 bytes |
コンパイル時間 | 477 ms |
コンパイル使用メモリ | 82,452 KB |
実行使用メモリ | 62,452 KB |
最終ジャッジ日時 | 2024-11-04 12:41:15 |
合計ジャッジ時間 | 3,531 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
ソースコード
S = input().strip()ans = ""for i in range(len(S)-1):for j in range(i+1,len(S)+1):if i==0 and j==len(S):continuea = S[i:j]b = a[::-1]if a==b and len(a)>len(ans):ans = aprint(len(ans))