| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- Java
- 시뮬레이션
- 투포인터
- SQL
- binary search
- 알고리즘
- 이분탐색
- BOJ
- oracle
- 코딩테스트
- 문제해결
- BFS
- 백준
- db
- DP
- COS PRO
- 문자열
- priorityqueue
- math
- 운동기록
- SWEA
- dfs
- 문제풀이
- 코테
- 프로그래머스
- 자바
- 러닝일지
- greedy
- 건강
- MySQL
- Today
- Total
목록Algorithms/Baekjoon (235)
슈콩
[문제]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 IOException { 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 IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; int t = Integer.parseInt(br.readLine()); while(t-->0) { int n = Integer.parseInt(br.readLine()); st = new StringTokenizer(br.readLi..
[문제]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 IOException { 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 n; static int[][] map; 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; n = Integer.parseInt(br.readLine()); map ..
[문제]https://www.acmicpc.net/problem/5014 [소스 코드]import java.util.*;import java.io.*;public class Main { public static void main(String[] args) throws IOException { 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 = Integ..
[문제]https://www.acmicpc.net/problem/1697 [소스 코드]import java.util.*;import java.io.*;public class Solution { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); int n = Integer.parseInt(st.nextToken()); int k = Integer.parseInt(st.nextToken()); int[] dif..
[문제]https://www.acmicpc.net/problem/7569 [소스 코드]import java.util.*;import java.io.*;public class Solution { static int[] dr = {-1,1,0,0,0,0}; static int[] dc = {0,0,-1,1,0,0}; static int[] dz = {0,0,0,0,-1,1}; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLin..
[문제]https://www.acmicpc.net/problem/2644 [소스 코드]import java.util.*;import java.io.*;public class Solution { public static void main(String[] args) throws IOException { 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 ..
[문제]https://www.acmicpc.net/problem/2667 [소스 코드]import java.util.*;import java.io.*;public class Solution { 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()); int[][] map = new int[n][n]; ..
[문제] https://www.acmicpc.net/problem/2606 [소스 코드]import java.util.*;import java.io.*;public class Solution { 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 m = Integer.parseInt(br.readLine()); int[] map = new int[n+1]; boolean[][] visit = ..