baekjoon: 27866(문자와 문자열)

강지안·2023년 5월 28일
0

baekjoon

목록 보기
36/186

문제

코드

import java.util.Scanner;

public class q27866 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String[] S = sc.nextLine().split("");
        int i = sc.nextInt();
        
        System.out.print(S[i-1]);
    }
}

0개의 댓글