| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- 건강
- priorityqueue
- 운동기록
- 문제풀이
- SWEA
- DP
- 코딩테스트
- oracle
- 프로그래머스
- BFS
- 러닝일지
- 알고리즘
- COS PRO
- db
- 코테
- math
- 문제해결
- BOJ
- 투포인터
- SQL
- dfs
- Java
- 이분탐색
- 자바
- binary search
- MySQL
- greedy
- 시뮬레이션
- 문자열
- 백준
- Today
- Total
목록Java (469)
슈콩
[문제]https://www.acmicpc.net/workbook/view/1152 [소스 코드]import java.io.*;import java.util.*;public class Main { static int n,m,result; static int[][] map; 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.readLi..
[문제]https://www.acmicpc.net/problem/14501 [소스 코드]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[] t = new int[n+1]; int[] p = new int[n+1]; for(int i=1;i=1;i--) { if(i+t[i]-1>n) dp[i]..
[문제]https://www.acmicpc.net/problem/14500 [소스 코드]import java.io.*;import java.util.*;public class Main { static int n,m,result; static int[][] map; static boolean[][] visit; static int[] dr = {0,0,-1,1}; static int[] dc = {1,-1,0,0}; public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new Stri..
[문제]https://www.acmicpc.net/problem/14499 [소스 코드]import java.io.*;import java.util.*;public class Main { static int[] dr = {0,0,0,-1,1}; static int[] dc = {0,1,-1,0,0}; static int[] dice = new int[6]; public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); int ..
[문제]https://www.acmicpc.net/problem/13458 [소스 코드]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[] A = new int[n]; st = new StringTokenizer(br.readLine()); for(int i=0;i=c) { result +..
[문제]https://www.acmicpc.net/problem/3190 [소스 코드]import java.io.*;import java.util.*;public class Main { static int[] dr = {0,1,0,-1}; static int[] dc = {1,0,-1,0}; 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 k = Integer.parseInt(br.readLine..
[문제]https://www.acmicpc.net/problem/12100 [소스 코드]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; static int[][] copy; public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; n = Integer.parseInt(br.readLine()); int[..
[문제]https://www.acmicpc.net/problem/13460 [소스 코드]import java.io.*;import java.util.*;public class Main { static int n,m; static char[][] map; static int blueR,blueC,redR,redC; 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 St..
[문제]https://www.acmicpc.net/problem/14503 [소스 코드]import java.io.*;import java.util.*;public class Main { static int[] dr = {-1,0,1,0}; static int[] dc = {0,1,0,-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/9205 [소스 코드]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 t = Integer.parseInt(br.readLine()); for(int tc=1;tc q = new LinkedList(); q.offer(0); boolean result = false; while(!q.isEmpty..