| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- 문자열
- SQL
- BFS
- MySQL
- binary search
- db
- 이분탐색
- 알고리즘
- math
- 운동기록
- priorityqueue
- 문제풀이
- COS PRO
- 코테
- 시뮬레이션
- DP
- oracle
- Java
- 백준
- 프로그래머스
- 건강
- dfs
- SWEA
- greedy
- BOJ
- 자바
- 문제해결
- 코딩테스트
- 투포인터
- 러닝일지
- Today
- Total
목록Java (469)
슈콩
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/42885 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드[import java.util.*; class Solution { public int solution(int[] people, int limit) { int answer = 0; int len = people.length; Arr..
[문제]https://www.acmicpc.net/problem/9935 [소스 코드]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)); StringBuilder sb = new StringBuilder(); String s = br.readLine(); String b = br.readLine(); Stack stack = new Stack(); for(int i=0;i=b.length()) { boo..
대피소 갯수가 1~3개로 적기 때문에 가능한 경우: N^4으로 brute-force 완탐 가능 [문제]https://www.acmicpc.net/problem/28215 [소스 코드]부분 성공: List를 사용해 선택된 경우, k가 클 경우 사용import java.io.*;import java.util.*;public class Main { static int n,k,result = Integer.MAX_VALUE; static boolean[] visit; static List list; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamRead..
[문제]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 IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; int n = Integer.parseInt(br.readLine()); int[][] map = new int[n+1][n+1]; ..
[문제]https://www.acmicpc.net/problem/9205 [소스 코드]import java.io.*;import java.util.*;public class Main { static int n; static int[][] stores; 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) { n = Integer.parseInt(br.readLine()); s..
[문제]https://www.acmicpc.net/problem/2573 [소스 코드]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/2468 [소스 코드]import java.io.*;import java.util.*;public class Main { static int n,result = 0; 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.readLin..
[문제]https://www.acmicpc.net/problem/5014 [소스 코드]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 f = Integer.parseInt(st.nextToken()); int s = Integer.parseInt(st.nextToken()); int g = Integ..
[문제]https://www.acmicpc.net/problem/1697 [소스 코드]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 k = Integer.parseInt(st.nextToken()); int[] hide = ..
[문제]https://www.acmicpc.net/problem/7569 [소스 코드]import java.io.*;import java.util.*;public class Main { static int m,n,h,result = 0; static int[][][] tomato; static int[] dh = {1,-1,0,0,0,0}; static int[] dr = {0,0,-1,1,0,0}; static int[] dc = {0,0,0,0,-1,1}; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); S..