| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- db
- 이분탐색
- 문제해결
- 러닝일지
- COS PRO
- 운동기록
- 코테
- 알고리즘
- binary search
- priorityqueue
- 투포인터
- SWEA
- math
- BOJ
- MySQL
- SQL
- DP
- 백준
- BFS
- 문자열
- 문제풀이
- oracle
- dfs
- 시뮬레이션
- greedy
- 건강
- 프로그래머스
- Java
- 자바
- 코딩테스트
- Today
- Total
목록2025/11 (150)
슈콩
[문제]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..
[문제]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..