Search

1409 : ๊ธฐ์–ต๋ ฅ ํ…Œ์ŠคํŠธ 1

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[] arr = new int[10]; for (int i = 0; i < arr.length; i++) { arr[i] = sc.nextInt(); } int k = sc.nextInt(); System.out.println(arr[k-1]); sc.close(); } }
Java
๋ณต์‚ฌ