https://www.acmicpc.net/problem/27866
27866번: 문자와 문자열
첫째 줄에 영어 소문자와 대문자로만 이루어진 단어 $S$가 주어진다. 단어의 길이는 최대 $1\,000$이다. 둘째 줄에 정수 $i$가 주어진다. ($1 \le i \le \left|S\right|$)
www.acmicpc.net
word = input()
num = int(input())
print(word[num-1])
쉽네요 ㅎ
#8. 백준 9086번 (python) (0) | 2024.03.01 |
---|---|
#7. 백준 2743번 (python) (2) | 2024.03.01 |
#5. 백준 1546번 (python) (1) | 2024.03.01 |
#4. 백준 10811번 (python) (6) | 2024.02.29 |
#3. 백준 3052번 (python) (1) | 2024.02.29 |