백준 구현
[백준, BOJ 1475] 방 번호 (java)
https://www.acmicpc.net/problem/1475메모리: 14,316 KB , 시간: 108 ms사용 알고리즘: 구현 import java.io.BufferedReader;import java.io.InputStreamReader;public class Main { public static void main(String[] args) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); // 필요한 숫자 개수 int[] counts = new int[9..
[백준, BOJ 3758] KCPC (java)
https://www.acmicpc.net/problem/3758메모리: 35,844 KB , 시간: 324 ms사용 알고리즘: 구현, 정렬 import java.io.BufferedReader;import java.io.InputStreamReader;import java.util.Arrays;import java.util.StringTokenizer;public class Main { public static void main(String[] args) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; Stri..
[백준, BOJ 1357] 뒤집힌 덧셈 (java)
https://www.acmicpc.net/problem/1357메모리: 14,256 KB , 시간: 104 ms사용 알고리즘: 구현, 수학import java.io.BufferedReader;import java.io.InputStreamReader;import java.util.StringTokenizer;public class Main { public static void main(String[] args) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine());..
[백준, BOJ 9017] 크로스 컨트리 (java)
https://www.acmicpc.net/problem/9017메모리: 15,256 KB , 시간: 136 ms사용 알고리즘: 구현import java.io.BufferedReader;import java.io.InputStreamReader;import java.util.*;public class Main { public static void main(String[] args) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; StringBuilder result = new StringBuilder(); ..
[백준, BOJ 20125] 쿠키의 신체 측정 (java)
https://www.acmicpc.net/problem/20125메모리: 23,444 KB , 시간: 248 ms사용 알고리즘: 구현import java.io.BufferedReader;import java.io.InputStreamReader;public class Main { public static void main(String[] args) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); char[][] board = new char[N][N]; for ..
[백준, BOJ 1205] 등수 구하기 (java)
https://www.acmicpc.net/problem/1205메모리: 14,236 KB , 시간: 112 ms사용 알고리즘: 구현, 이분 탐색import java.io.BufferedReader;import java.io.InputStreamReader;import java.util.StringTokenizer;public class Main { public static void main(String[] args) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; st = new StringTokenizer(b..
[백준, BOJ 4659] 비밀번호 발음하기 (java)
https://www.acmicpc.net/problem/4659메모리: 14,040 KB , 시간: 100 ms사용 알고리즘: 구현, 문자열import java.io.BufferedReader;import java.io.InputStreamReader;import java.util.Arrays;import java.util.List;public class Main { // 모음 static List vowels = Arrays.asList('a', 'e', 'i', 'o', 'u'); public static void main(String[] args) throws Exception{ BufferedReader br = new BufferedReader(new InputSt..
[백준, BOJ 10431] 줄세우기 (java)
https://www.acmicpc.net/problem/10431메모리: 18,840 KB , 시간: 180 ms사용 알고리즘: 구현, 시뮬레이션, 정렬, 이분 탐색import java.io.BufferedReader;import java.io.InputStreamReader;import java.util.Arrays;import java.util.LinkedList;import java.util.List;import java.util.StringTokenizer;public class Main { public static void main(String[] args) throws Exception{ BufferedReader br = new BufferedReader(new Input..
[백준, BOJ 2816] 디지털 티비 (java)
https://www.acmicpc.net/problem/2816메모리: 14,084 KB , 시간: 100 ms사용 알고리즘: 구현import java.io.BufferedReader;import java.io.InputStreamReader;public class Main { static String[] chanel; public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); chanel = new Stri..
[백준, BOJ 5073] 삼각형과 세 변 (java)
https://www.acmicpc.net/problem/5073메모리: 14,156 KB , 시간: 96 ms사용 알고리즘: 구현, 수학import java.io.BufferedReader;import java.io.InputStreamReader;import java.util.Arrays;import java.util.StringTokenizer;public class Main { public static void main(String[] args) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder result = new String..