結果
問題 |
No.2234 palindromer
|
ユーザー |
![]() |
提出日時 | 2023-03-22 04:54:48 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 27 ms / 2,000 ms |
コード長 | 181 bytes |
コンパイル時間 | 485 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-09-18 14:42:13 |
合計ジャッジ時間 | 1,565 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 |
ソースコード
a=input() b=a[::-1] for i in range(len(a)+1): t = a + b[i:] f = 0 if len(t)%2!=0:f = 1 if t[:len(t)//2] == t[len(t)//2+f:][::-1]: ans=t print(ans)