add kotlin name into README.md & 잡 하나
This commit is contained in:
@@ -15,6 +15,7 @@ yenru0 code storage
|
|||||||
C | C | .c
|
C | C | .c
|
||||||
C++ | cpp | .cpp
|
C++ | cpp | .cpp
|
||||||
Python | python | .py
|
Python | python | .py
|
||||||
|
Kotlin | kotlin | .kt
|
||||||
|
|
||||||
## stdin.txt
|
## stdin.txt
|
||||||
코딩의 편리함을 위한 `stdin.txt`! 이것은 매우 중요 especially 쓰다 C로 because 나 not 편함
|
코딩의 편리함을 위한 `stdin.txt`! 이것은 매우 중요 especially 쓰다 C로 because 나 not 편함
|
||||||
|
|||||||
8
zeta_python/completed/1251.py
Normal file
8
zeta_python/completed/1251.py
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
S = input()
|
||||||
|
MAX = '~'*len(S)
|
||||||
|
for i in range(1,len(S)-1):
|
||||||
|
for j in range(i+1, len(S)):
|
||||||
|
first, second, last = S[:i][::-1], S[i:j][::-1], S[j:][::-1]
|
||||||
|
if first + second + last < MAX:
|
||||||
|
MAX = first + second + last
|
||||||
|
print(MAX)
|
||||||
Reference in New Issue
Block a user