728x90 ๋ฐ์ํ 25521 [java ๋ฐฑ์ค] ๋ธ๋ก ์ฆ 3/ 2552๋ฒ - ๋ณ์ฐ๊ธฐ 12 https://www.acmicpc.net/problem/2522 2522๋ฒ: ๋ณ ์ฐ๊ธฐ - 12 ์ฒซ์งธ ์ค๋ถํฐ 2×N-1๋ฒ์งธ ์ค๊น์ง ์ฐจ๋ก๋๋ก ๋ณ์ ์ถ๋ ฅํ๋ค. www.acmicpc.net 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); for (int i = 1; i 2021. 7. 26. ์ด์ 1 ๋ค์ 728x90 ๋ฐ์ํ