๐ป Coding Problems Solving/Array | String | Loop
[BOJ 24337] ๊ฐํฌ์ ํ
[BOJ 24337] ๊ฐํฌ์ ํ 1. ๋ฌธ์ : https://www.acmicpc.net/problem/24337 2. ํ์ด ์ผ๋จ ์์ฐจ์ ์ผ๋ก ์์ชฝ์์ ๋ํด์ฃผ๊ณ ๋จ์ ๊ฐ๋งํผ 1์ ๋ํด์ค ์ด๋ a๊ฐ 1์ธ ๊ฒฝ์ฐ ์ธ๋ฑ์ค๋ฅผ ๋ค๋ฅด๊ฒํ์ฌ 1์ ์ถ๊ฐํด์ค 3. ์ฝ๋ import java.util.*; public class Main { static int N, a, b; public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); N = sc.nextInt(); a = sc.nextInt(); b = sc.nextInt(); List li = new ArrayList(); if (a + b > N + 1) { S..
2023. 6. 14. 20:50
์ต๊ทผ๋๊ธ