| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- dfs
- 자바
- 이분탐색
- 투포인터
- greedy
- 시뮬레이션
- 운동기록
- SWEA
- binary search
- oracle
- BFS
- 건강
- 러닝일지
- math
- 문제해결
- priorityqueue
- 코테
- db
- BOJ
- 문자열
- 백준
- Java
- 알고리즘
- COS PRO
- 프로그래머스
- 코딩테스트
- DP
- SQL
- 문제풀이
- MySQL
- Today
- Total
목록Java (469)
슈콩
[문제]https://www.acmicpc.net/problem/17141 [소스 코드]import java.io.*;import java.util.*;public class Main { static int n,m,result = Integer.MAX_VALUE; static List candidates; static boolean[] select; static int[][] map,copyM; static boolean[][] visit; static int[] dr = {-1,1,0,0}; static int[] dc = {0,0,-1,1}; public static void main(String[] args) throws IOException { BufferedReader br = new Buf..
BFS도 가능 ! [문제]https://www.acmicpc.net/problem/17135 [소스 코드]import java.io.*;import java.util.*;public class Main { static int n,m,d,result; static int[][] map; static int[] archers = new int[3]; static int[] dr = {0,-1,0}; static int[] dc = {-1,0,1}; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTok..
[문제]https://www.acmicpc.net/problem/17070 [소스 코드]import java.io.*;import java.util.*;public class Main { static int HOR = 0, VERT = 1, DIAG = 2; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; int n = Integer.parseInt(br.readLine()); int[][] map = new int[n][n]; for(int i=0;i=0 && map..
[문제]https://www.acmicpc.net/problem/16985 [소스 코드]import java.io.*;import java.util.*;public class Main { static int result = Integer.MAX_VALUE; static int[][][] map; static int[] order = new int[5]; static boolean[] select = new boolean[5]; static int[] rotate; static int[] dir = new int[5]; static int[] dz = {1,-1,0,0,0,0}; static int[] dr = {0,0,1,-1,0,0}; static int[] dc = {0,0,0,0,-1,1}; pu..
[문제]https://www.acmicpc.net/problem/16236 [소스 코드]import java.io.*;import java.util.*;public class Main { static int[] shark = new int[2]; static int[] dr = {-1,1,0,0}; static int[] dc = {0,0,-1,1}; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; int n = Integer.parseInt(br.readLine()); ..
[문제]https://www.acmicpc.net/problem/16235 [소스 코드]import java.io.*;import java.util.*;public class Main { static int[] dr = {-1,-1,-1,0,1,1,1,0}; static int[] dc = {-1,0,1,1,1,0,-1,-1}; static class Tree{ int r,c,age; Tree(int r,int c,int age){ this.r = r; this.c = c; this.age = age; } } static int n,k; static int[][] add; static int[][] soil; static int result = 0; static Queue q; publ..
[문제]https://www.acmicpc.net/problem/16234 [소스 코드]import java.io.*;import java.util.*;public class Main { static int n,l,r; static boolean move; static int[][] map; static boolean[][] visit; static List list; static int[] dr = {-1,0,1,0}; static int[] dc = {0,1,0,-1}; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System...
[BOJ] https://www.acmicpc.net/problem/15686 [소스 코드]import java.io.*;import java.util.*;public class Main { static class Home { int r,c; Home(int r,int c){ this.r = r; this.c = c; } } static class Chicken { int r,c; Chicken(int r,int c){ this.r = r; this.c = c; } } static int m,size; static int result = Integer.MAX_VALUE; static boolean[] visit; static List homes; static List chick..
[문제]https://www.acmicpc.net/problem/15685 [소스 코드]import java.io.*;import java.util.*;public class Main { static int[] dr = {0,-1,0,1}; static int[] dc = {1,0,-1,0}; static boolean[][] map = new boolean[101][101]; static List list; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; int n = I..
[문제]https://www.acmicpc.net/problem/2512 [소스 코드]import java.io.*;import java.util.*;public class Main { static int n; static int[] budget; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; n = Integer.parseInt(br.readLine()); budget = new int[n]; st = new StringTokenizer(br.readLine()); ..