| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | |||||
| 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| 10 | 11 | 12 | 13 | 14 | 15 | 16 |
| 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| 24 | 25 | 26 | 27 | 28 | 29 | 30 |
| 31 |
- 문제풀이
- BOJ
- 투포인터
- 코테
- DP
- 건강
- dfs
- 운동기록
- 프로그래머스
- 알고리즘
- 문자열
- binary search
- SWEA
- 코딩테스트
- BFS
- oracle
- 백준
- Java
- 이분탐색
- 문제해결
- SQL
- 러닝일지
- priorityqueue
- math
- COS PRO
- greedy
- db
- 자바
- MySQL
- 시뮬레이션
- Today
- Total
목록Java (469)
슈콩
[문제]https://www.acmicpc.net/problem/16234 [소스 코드]import java.io.*;import java.util.*;public class Main { static int[] dr = {-1,1,0,0}; static int[] dc = {0,0,-1,1}; static int n,l,r; static int[][] A; static boolean check; static boolean[][] visit; public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenize..
[문제]https://www.acmicpc.net/problem/5373 [소스 코드]import java.io.*;import java.util.*;public class Main { static Face[] cube; static HashMap faceIdxMap = new HashMap(); static HashMap faceColorMap = new HashMap(); static int[][][] edgeInfo = { {{2,0,2},{2,0,1},{2,0,0},{4,2,2},{4,1,2},{4,0,2},{3,2,0},{3,2,1},{3,2,2},{5,0,0},{5,1,0},{5,2,0}}, {{3,0,2},{3,0,1},{3,0,0},{4,0,0},{4,1,0},{4,2,0},{2,..
[문제]https://www.acmicpc.net/problem/15686 [소스 코드]import java.io.*;import java.util.*;public class Main { static int m,result = Integer.MAX_VALUE; static boolean[] visit; static List houses,stores; public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); int n = ..
[문제]https://www.acmicpc.net/problem/15685 [소스 코드]import java.io.*;import java.util.*;public class Main { static int[] dx = {1,0,-1,0}; static int[] dy = {0,-1,0,1}; public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; int n = Integer.parseInt(br.readLine()); boolean[][] map = new boolean[101][..
[문제]https://www.acmicpc.net/problem/15684 [소스 코드]import java.io.*;import java.util.*;public class Main { static int n,m,h; static boolean[][] visit; public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); n = Integer.parseInt(st.nextToken()); m = Integer.parse..
[문제]https://www.acmicpc.net/problem/15683 [소스 코드]import java.io.*;import java.util.*;public class Main { static class CCTV{ int r,c,num; CCTV(int r,int c,int num){ this.r = r; this.c = c; this.num = num; } } static int[][][] info = { {{},{},{},{}}, {{0},{1},{2},{3}}, {{0,2},{1,3},{},{}}, {{0,1},{1,2},{2,3},{3,0}}, {{0,1,3},{0,1,2},{1,2,3},{2,3,0}}, {{0,1,2,3},{},{},{}} }; s..
[문제]https://www.acmicpc.net/problem/14891 [소스 코드]import java.io.*;import java.util.*;public class Main { static int[][] gear; public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; gear = new int[5][8]; for(int i=1;i
[문제]https://www.acmicpc.net/problem/14890 [소스 코드]import java.io.*;import java.util.*;public class Main { static int n,l; static int[][] map; public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); n = Integer.parseInt(st.nextToken()); l = Integer.parseInt(st.n..
[문제]https://www.acmicpc.net/problem/14889 [소스 코드]import java.io.*;import java.util.*;public class Main { static int n,result; static boolean[] visit; static int[][] team; public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; n = Integer.parseInt(br.readLine()); team = new int[n][n]; for(int i=..
[문제]https://www.acmicpc.net/problem/14888 [소스 코드]import java.io.*;import java.util.*;public class Main { static int max,min; static int[] nums; public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; int n = Integer.parseInt(br.readLine()); st = new StringTokenizer(br.readLine()); nums = new int..