結果
問題 | No.2234 palindromer |
ユーザー |
|
提出日時 | 2023-03-03 21:30:10 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 40 ms / 2,000 ms |
コード長 | 343 bytes |
コンパイル時間 | 172 ms |
コンパイル使用メモリ | 82,112 KB |
実行使用メモリ | 53,760 KB |
最終ジャッジ日時 | 2024-09-17 22:21:50 |
合計ジャッジ時間 | 1,418 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 |
ソースコード
import sys from collections import deque, Counter input = lambda: sys.stdin.readline().rstrip() ii = lambda: int(input()) mi = lambda: map(int, input().split()) li = lambda: list(mi()) inf = 2 ** 63 - 1 mod = 998244353 a = input() n = len(a) for i in range(n): a2 = a + a[:i][::-1] if a2 == a2[::-1]: print(a2) exit()