| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- BFS
- 프로그래머스
- priorityqueue
- 시뮬레이션
- DP
- 코테
- 러닝일지
- COS PRO
- 투포인터
- 건강
- 문제풀이
- 자바
- SWEA
- 알고리즘
- oracle
- greedy
- 코딩테스트
- Java
- binary search
- 운동기록
- dfs
- SQL
- 백준
- MySQL
- 문제해결
- math
- db
- 이분탐색
- 문자열
- BOJ
- Today
- Total
목록Java (469)
슈콩
[문제]https://www.acmicpc.net/problem/2644 [소스 코드]import java.io.*;import java.util.*;public class Main { static int n; static List[] edge; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; n = Integer.parseInt(br.readLine()); st = new StringTokenizer(br.readLine()); int a = Integer.parseI..
[문제]https://www.acmicpc.net/problem/2667 [소스 코드]import java.io.*;import java.util.*;public class Main { static int n; static int[][] map; static boolean[][] visit; 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)); n = Integer.parseInt(br.readLine()); ..
[문제]https://www.acmicpc.net/problem/2606 [소스 코드]import java.io.*;import java.util.*;public class Main { static int n,result = 0; static boolean[][] edge; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; n = Integer.parseInt(br.readLine()); edge = new boolean[n+1][n+1]; int m = Integer.p..
[문제]https://www.acmicpc.net/problem/2178 [소스 코드]import java.io.*;import java.util.*;public class Main { static int n,m; 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 = new StringTokenizer(br.readLine()); n ..
[문제]https://www.acmicpc.net/problem/1260 [소스 코드]import java.io.*;import java.util.*;public class Main { static int n; static boolean[] visit; static boolean[][] connect; static StringBuilder sb; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); n = Inte..
[문제]https://www.acmicpc.net/problem/23289 [소스 코드]import java.io.*;import java.util.*;public class Main { static class Node{ int r,c,dir,heat; Node(int r,int c,int dir){ this.r = r; this.c = c; this.dir = dir; } Node(int r,int c,int dir,int heat){ this.r = r; this.c = c; this.dir = dir; this.heat = heat; } } static int r,c,k; static int[][] map,heat; static int[] dr = {0,0,0,-..
[문제]https://www.acmicpc.net/problem/17281 [소스 코드]import java.io.*;import java.util.*;public class Main { static int n,result = Integer.MIN_VALUE; static int[][] inning; static boolean[] visit; static int[] order; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; n = Integer.parseInt(br.re..
[문제]https://www.acmicpc.net/problem/17144 [소스 코드]import java.io.*;import java.util.*;public class Main { static int airR,airC; static int r,c,result; static int[] dr = {-1,1,0,0}; static int[] dc = {0,0,-1,1}; static int[][] map; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new String..
[문제]https://www.acmicpc.net/problem/17143 [소스 코드]import java.io.*;import java.util.*;public class Main { static class Shark{ int r,c,s,d,z; Shark(int r,int c,int s,int d,int z){ this.r = r; this.c = c; this.s = s; this.d = d; this.z = z; } } static Shark[][] map; static int[] dr = {-1,0,1,0}; static int[] dc = {0,-1,0,1}; public static void main(String[] args) throws IOException { ..
[문제]https://www.acmicpc.net/problem/17142 [소스 코드]import java.io.*;import java.util.*;public class Main { static int n,m,result = Integer.MAX_VALUE; static List candidates; static boolean[] select; static int[][] map,copyM; static boolean[][] visit; 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 Buf..