結果
| 問題 | No.2234 palindromer |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-03-03 23:57:28 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 2,000 ms |
| コード長 | 198 bytes |
| 記録 | |
| コンパイル時間 | 250 ms |
| コンパイル使用メモリ | 84,992 KB |
| 実行使用メモリ | 52,096 KB |
| 最終ジャッジ日時 | 2026-04-06 12:33:36 |
| 合計ジャッジ時間 | 1,274 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 |
ソースコード
import sys
input = sys.stdin.readline
def is_pali(s):
return s==s[::-1]
A = input()[:-1]
for i in range(len(A)+1):
s = A+A[:i][::-1]
if is_pali(s):
print(s)
break