| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- 운동기록
- BOJ
- math
- binary search
- priorityqueue
- db
- 건강
- 코딩테스트
- BFS
- dfs
- 자바
- COS PRO
- 문자열
- DP
- 시뮬레이션
- 프로그래머스
- 코테
- 이분탐색
- 문제해결
- SQL
- MySQL
- 문제풀이
- 알고리즘
- 러닝일지
- SWEA
- 백준
- oracle
- greedy
- Java
- 투포인터
- Today
- Total
목록Java (469)
슈콩
[문제]https://www.acmicpc.net/problem/13335 [소스 코드]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 = new StringTokenizer(br.readLine()); int n = Integer.parseInt(st.nextToken()); int w = Integer.parseInt(st.nextToken()); int l = Inte..
회전 방식으로 보완 ! [문제]https://www.acmicpc.net/problem/12100 [소스 코드]1. 4가지 방향을 기준으로 수행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; int n = Integer.parseInt(br.readLine()); i..
[문제]https://www.acmicpc.net/problem/11559 [소스 코드]import java.io.*;import java.util.*;public class Main { static boolean[][] visit; static char[][] map; static int[] dr = {-1,1,0,0}; static int[] dc = {0,0,-1,1}; static class Puyo{ int r,c; Puyo(int r,int c){ this.r = r; this.c = c; } } public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new ..
[문제]https://www.acmicpc.net/problem/12015 [소스 코드]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)); int n = Integer.parseInt(br.readLine()); int[] arr = new int[n]; StringTokenizer st = new StringTokenizer(br.readLine()); for(int i=0;i list = new ArrayLi..
[문제]https://www.acmicpc.net/problem/10815 [소스 코드]import java.io.*;import java.util.*;public class Main { public static void main(String[] args) throws IOException { StringBuilder sb = new StringBuilder(); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; int n = Integer.parseInt(br.readLine()); HashMap hm = new HashMap(); st = new StringTokenize..
[문제]https://www.acmicpc.net/problem/1654 [소스 코드]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 = new StringTokenizer(br.readLine()); int k = Integer.parseInt(st.nextToken()); int n = Integer.parseInt(st.nextToken()); int[] lans = ..
Collections함수 binarySearch 사용: 시간 단축 용도 [문제]https://www.acmicpc.net/problem/2295 [소스 코드]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)); int n = Integer.parseInt(br.readLine()); int[] arr = new int[n]; for(int i=0;i list = new ArrayList(); for(int i=0..
[문제]https://www.acmicpc.net/problem/18870 [소스 코드]import java.io.*;import java.util.*;public class Main { public static void main(String[] args) throws IOException { StringBuilder sb = new StringBuilder(); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); int[] arr = new int[n]; StringTokenizer st = new StringTokenizer(br.read..
[문제]https://www.acmicpc.net/problem/10816 [소스 코드]import java.io.*;import java.util.*;public class Main { public static void main(String[] args) throws IOException { HashMap hm = new HashMap(); StringBuilder sb = new StringBuilder(); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; int n = Integer.parseInt(br.readLine()); st = new StringTokenize..
[문제]https://www.acmicpc.net/problem/1920 [소스 코드]import java.io.*;import java.util.*;public class Main { public static void main(String[] args) throws IOException { HashSet hs = new HashSet(); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; int n = Integer.parseInt(br.readLine()); st = new StringTokenizer(br.readLine()); for(int i=0;i