結果
問題 | No.2234 palindromer |
ユーザー |
![]() |
提出日時 | 2023-03-03 22:23:20 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 47 ms / 2,000 ms |
コード長 | 179 bytes |
コンパイル時間 | 380 ms |
コンパイル使用メモリ | 81,792 KB |
実行使用メモリ | 53,504 KB |
最終ジャッジ日時 | 2024-09-17 23:25:45 |
合計ジャッジ時間 | 2,214 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 |
ソースコード
A = list(input())ANS = A+A[::-1]for i in range(len(A)+1):temp = A+A[:len(A)-i][::-1]if temp==temp[::-1] and len(ANS)>len(temp):ANS = tempprint(''.join(ANS))