Coding Test/백준 (78) 썸네일형 리스트형 [백준/자바] 2566 - 최댓값 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int[][] matrix = new int[9][9]; int num = -1; int row = 0; int column = 0; for(int i=0; i [백준/자바] 9012 - 괄호 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Stack; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); int t = Integer.parseInt(br.readLine()); for(int i=0; i [백준/자바] 2738 - 행렬 덧셈 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] nm = br.readLine().split(" "); int n = Integer.parseInt(nm[0]); int m = Integer.parseInt(nm[1]); int[][] matrix = new int[n][m]; for(String s .. [백준/자바] 1157 - 단어 공부 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String word = br.readLine().toUpperCase(); int[] count = new int[26]; char[] arr = word.toCharArray(); for(char c : arr){ int index = c - 65; count[ind.. [백준/자바] 2444 - 별 찍기 - 7 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for(int i=1; i0; i--){ System.out.println(" ".repeat(n - i) + "*".repeat(2 * i - 1)); } sc.close(); } } [백준/자바] 10828 - 스택 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { private static int[] stack; private static int size = 0; private static StringBuilder sb = new StringBuilder(); public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()).. [백준/자바] 2751 - 수 정렬하기 2 import java.io.*; import java.util.ArrayList; import java.util.Collections; import java.util.List; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); int n = Integer.parseInt(br.readLine()); List list = new ArrayList();.. [백준/자바] 1920 - 수 찾기 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.HashSet; import java.util.Set; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); Set set = new HashSet(); int n = Integer.parseInt(br.readLine()); String[] arr1 = br.readLine().split(".. 이전 1 ··· 3 4 5 6 7 8 9 10 다음