| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- MySQL
- SWEA
- BOJ
- 백준
- 코테
- 프로그래머스
- 건강
- 코딩테스트
- db
- 투포인터
- 알고리즘
- SQL
- greedy
- 러닝일지
- COS PRO
- 시뮬레이션
- 자바
- 문자열
- 이분탐색
- oracle
- binary search
- priorityqueue
- math
- 문제풀이
- Java
- DP
- 운동기록
- BFS
- dfs
- 문제해결
- Today
- Total
목록Algorithms (454)
슈콩
[문제]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 = ..
[문제] https://www.acmicpc.net/problem/2178 [소스 코드]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 = new StringTokenizer(br.readLine()); int n = Integer.parseInt(st.nextTo..
[문제] https://www.acmicpc.net/problem/1260 [소스 코드]import java.util.*;import java.io.*;public class Solution { static int n; static boolean[][] visit; static boolean[] check; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); n = Integer.parseInt(st.nextT..
[문제]https://www.acmicpc.net/problem/19236 [소스 코드]import java.io.*;import java.util.*;public class Main { static class Fish { int r,c,num,dir; boolean alive; Fish(int r,int c,int num,int dir,boolean alive){ this.r = r; this.c = c; this.num = num; this.dir = dir; this.alive = alive; } } static int result = 0; static int[] dr = {-1,-1,0,1,1,1,0,-1}; static int[] dc = {0,-1,-1,-1,0,1,..
[문제]https://www.acmicpc.net/problem/17825 [소스 코드]import java.io.*;import java.util.*;public class Main { static int[] board = { 0,2,4,6,8,10,12,14,16,18,20, 22,24,26,28,30,32,34,36,38,40, 13,16,19,22,24,28,27,26,25,30, 35,0 }; static int[] dices,locs,spacial,nxt; static int result = 0; public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new ..
[문제] [소스 코드]import java.io.*;import java.util.*;public class Main { static int m; static int[][] map; 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()); m = Integer.parseInt(st.nextToken()); int t = Integer.parse..
[문제] [소스 코드]import java.io.*;import java.util.*;public class Main { static int n,k; static List[][] map; static int[][] horse,color; 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 = new StringTokenizer(br.readLine()); n = Integer...
[문제]https://www.acmicpc.net/problem/17779 [소스 코드]import java.io.*;import java.util.*;public class Main { static int n,result,total = 0; static int[][] map; public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; n = Integer.parseInt(br.readLine()); map = new int[n][n]; for(int i=0;i=n) continue;..
[문제]https://www.acmicpc.net/problem/17142 [소스 코드]import java.io.*;import java.util.*;public class Main { static int n,m,result = Integer.MAX_VALUE; static int[][] lab,copy; static boolean[] select; static List virus; 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(..