728x90 ๋ฐ์ํ ๋ฐฑ์ค ์๋ฐ 24421 [java ๋ฐฑ์ค] ๋ธ๋ก ์ฆ 3/ 2442๋ฒ ๋ณ์ฐ๊ธฐ-5 https://www.acmicpc.net/problem/2442 2442๋ฒ: ๋ณ ์ฐ๊ธฐ - 5 ์ฒซ์งธ ์ค์๋ ๋ณ 1๊ฐ, ๋์งธ ์ค์๋ ๋ณ 3๊ฐ, ..., N๋ฒ์งธ ์ค์๋ ๋ณ 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 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 ๋ฐ์ํ