We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16825b4 commit add60c2Copy full SHA for add60c2
백준/Bronze/27866. 문자와 문자열/README.md
@@ -0,0 +1,26 @@
1
+# [Bronze V] 문자와 문자열 - 27866
2
+
3
+[문제 링크](https://www.acmicpc.net/problem/27866)
4
5
+### 성능 요약
6
7
+메모리: 113112 KB, 시간: 128 ms
8
9
+### 분류
10
11
+구현, 문자열
12
13
+### 문제 설명
14
15
+<p>단어 $S$와 정수 $i$가 주어졌을 때, $S$의 $i$번째 글자를 출력하는 프로그램을 작성하시오.</p>
16
17
+### 입력
18
19
+ <p>첫째 줄에 영어 소문자와 대문자로만 이루어진 단어 $S$가 주어진다. 단어의 길이는 최대 $1\,000$이다.</p>
20
21
+<p>둘째 줄에 정수 $i$가 주어진다. ($1 \le i \le \left|S\right|$)</p>
22
23
+### 출력
24
25
+ <p>$S$의 $i$번째 글자를 출력한다.</p>
26
백준/Bronze/27866. 문자와 문자열/문자와 문자열.py
@@ -0,0 +1,3 @@
+from sys import stdin
+print(stdin.readline()[int(stdin.readline()) - 1])
0 commit comments