고통은 사라지고 결과는 남는다. Records of Chansolve

백준 Python 문자와 문자열 27866번 본문

Algorithms

백준 Python 문자와 문자열 27866번

엄청큰노란닭 2023. 3. 28. 16:03

문자열의 n번째 글자를 출력하는 코드이다.

 

간단한 문제이다.

그렇기 때문에 한 줄로 풀어보겠다.

 

print(input()[int(input())-1])

 

Comments