結果

問題 No.3035 文字列のみの反転
ユーザー さわーくりーむおにおん🧅
提出日時 2025-02-28 22:02:01
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 63 ms / 2,000 ms
コード長 640 bytes
コンパイル時間 330 ms
コンパイル使用メモリ 82,244 KB
実行使用メモリ 65,804 KB
最終ジャッジ日時 2025-02-28 22:02:04
合計ジャッジ時間 1,919 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict, Counter, deque
from itertools import groupby, accumulate, combinations, permutations, product, combinations_with_replacement
from bisect import bisect_left, bisect_right
from operator import itemgetter
import math

from string import ascii_lowercase
LMI=lambda:list(map(int, input().split()))
LMS=lambda:list(map(str, input().split()))
MI=lambda:map(int, input().split())
MS=lambda:map(str, input().split())
II=lambda:int(input())
IS=lambda:input().split()
LI=lambda:list(input())


S=input()
alpha=ascii_lowercase
for i in range(len(S)):
    if S[i] not in alpha:
        break
print(S[:i][::-1]+S[i:])
0