| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- SWEA
- greedy
- MySQL
- 이분탐색
- 알고리즘
- 운동기록
- 자바
- 문제해결
- binary search
- 문제풀이
- 시뮬레이션
- BFS
- math
- 건강
- COS PRO
- DP
- priorityqueue
- BOJ
- 문자열
- 러닝일지
- dfs
- Java
- 투포인터
- 백준
- 코테
- SQL
- 코딩테스트
- db
- 프로그래머스
- oracle
- Today
- Total
목록Java (469)
슈콩
[문제]https://www.acmicpc.net/problem/2573 [소스 코드]import java.io.*;import java.util.*;public class Main { static int[] dr = {-1,1,0,0}; static int[] dc = {0,0,-1,1}; public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); int n = Integer.parseInt(st.nextToken());..
[문제]https://www.acmicpc.net/problem/2468 [소스 코드]import java.io.*;import java.util.*;public class Main { static int[] dr = {-1,1,0,0}; static int[] dc = {0,0,-1,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()); int[][] map = new int[n][n]; int ma..
[문제]https://www.acmicpc.net/problem/5014 [소스 코드]import java.io.*;import java.util.*;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()); int f = Integer.parseInt(st.nextToken()); int s = Integer.parseInt(st.nextToken()); int g = Integer..
[문제]https://www.acmicpc.net/problem/7569 [소스 코드]import java.io.*;import java.util.*;public class Main { static int[] dh = {-1,1,0,0,0,0}; static int[] dr = {0,0,-1,1,0,0}; static int[] dc = {0,0,0,0,-1,1}; public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); ..
[문제]https://www.acmicpc.net/problem/2644 [소스 코드]import java.io.*;import java.util.*;public class Main { 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()); int x = Integer.parseInt(st.nextToken()); int y = Int..
[문제]https://www.acmicpc.net/problem/2667 [소스 코드]import java.io.*;import java.util.*;public class Main { static int[] dr = {-1,1,0,0}; static int[] dc = {0,0,-1,1}; public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); int[][] map = new int[n][n]; for(int i=0;i list = new Ar..
[문제]https://www.acmicpc.net/problem/2606 [소스 코드]import java.io.*;import java.util.*;public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; int n = Integer.parseInt(br.readLine()); int m = Integer.parseInt(br.readLine()); boolean[][] edge = new boolean[n+1][n+1]; for(int i=..
[문제]https://www.acmicpc.net/problem/2178 [소스 코드]import java.io.*;import java.util.*;public class Main { static int[] dr = {-1,1,0,0}; static int[] dc = {0,0,-1,1}; public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; st = new StringTokenizer(br.readLine()); int n = Integer.parseInt(st.nextToke..
[문제]https://www.acmicpc.net/problem/1260 [소스 코드]import java.io.*;import java.util.*;public class Main { static int n; static boolean[] visit; static boolean[][] edge; 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()); ..
[문제]https://www.acmicpc.net/problem/1799 [소스 코드]import java.io.*;import java.util.*;public class Main { static int n; static boolean[] crossR,crossL; static int blackMax,whiteMax; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); n = Integer.parseInt(br.readLine()); int[][] chess = new in..