Algorithm Study/BaekJoon (JAVA)56 백준 2467_용액_JAVA https://www.acmicpc.net/problem/2467 import java.io.*;import java.util.*;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); int[] arr = new int[n]; int firstAnswer = 0; int secondAnswer = 0; int value = Intege.. 2024. 6. 2. 백준 19637_IF문 좀 대신 써줘_JAVA https://www.acmicpc.net/problem/19637 import java.io.*;import java.util.*;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); int n = Integer.parseInt(st.nextToken()); // 칭호의 갯수 3 int m = Integer.parseInt(st... 2024. 5. 30. 백준 1715_카드 정렬하기_JAVA https://www.acmicpc.net/problem/1715 import java.util.*;import java.io.*;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); PriorityQueue queue = new PriorityQueue(); int n = Integer.parseInt(br.readLine()); for (int i = 0; i 1) { long value1 = queue.p.. 2024. 5. 19. 백준 2470_두 용액_JAVA https://www.acmicpc.net/problem/2470 import java.util.*;import java.io.*;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); StringTokenizer st = new StringTokenizer(br.readLine()); long[] arr = new long[n]; for (int .. 2024. 5. 19. 백준 16234_인구 이동_JAVA https://www.acmicpc.net/problem/16234 import java.util.*;import java.io.*;public class Main { static int N, L, R; static int[][] grid; static boolean[][] visited; static int[] dx = {1, -1, 0, 0}; static int[] dy = {0, 0, 1, -1}; static ArrayList arr; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReade.. 2024. 5. 5. 백준 1918_후위 표기식_JAVA https://www.acmicpc.net/problem/1918import java.util.*;import java.io.*;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); Stack stack = new Stack(); String line = br.readLine(); StringBuilder sb = new StringBuilder(); for (int i = 0; i = 'A' && chr = p) { .. 2024. 4. 29. 백준 4949_균형잡힌 세상_JAVA https://www.acmicpc.net/problem/4949import java.io.*;import java.util.*;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while (true) { String line = br.readLine(); Stack stack = new Stack(); String answer = "yes"; if (line.equals(".. 2024. 4. 28. 백준 10799_쇠막대기_JAVA https://www.acmicpc.net/problem/10799 10799번: 쇠막대기여러 개의 쇠막대기를 레이저로 절단하려고 한다. 효율적인 작업을 위해서 쇠막대기를 아래에서 위로 겹쳐 놓고, 레이저를 위에서 수직으로 발사하여 쇠막대기들을 자른다. 쇠막대기와 레이저www.acmicpc.netimport java.util.*;import java.io.*;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); char[] c.. 2024. 4. 24. 이전 1 2 3 4 ··· 7 다음