| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- 문제풀이
- greedy
- 이분탐색
- 코테
- db
- 백준
- priorityqueue
- math
- BFS
- SQL
- 프로그래머스
- binary search
- 시뮬레이션
- oracle
- 문제해결
- Java
- BOJ
- dfs
- 코딩테스트
- 자바
- COS PRO
- 러닝일지
- 문자열
- DP
- 투포인터
- 건강
- MySQL
- SWEA
- 알고리즘
- 운동기록
- Today
- Total
목록Java (469)
슈콩
[문제] 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..
[소스 코드]class Main { final int INC = 0; final int DEC = 1; int[] func_a(int[] arr){ int length = arr.length; int[] ret = new int[length]; ret[0] = 1; for(int i = 1; i arr[i-1]) ret[i] = INC; else if(arr[i]
[소스 코드]class Main { public int solution(int K, int[] numbers, String[] UpDown) { int left = 1; int right = K; for(int i = 0; i
[소스 코드]class Main { public int solution(int[][] grid) { int answer = 0; for(int i = 0; i
[소스 코드]class Main { public int solution(int[][] board) { int answer = 0; int[][] coins = new int[4][4]; for(int i = 0; i
[소스 코드]class Main { public int solution(int n, int mix, int k) { int answer = 0; int[] card = new int[n]; for(int i = 0; i
[소스 코드]import java.util.*;class Main { int answer; boolean[] visit; public int solution(int[] arr, int K) { answer = Integer.MAX_VALUE; visit = new boolean[arr.length]; combi(0,0,arr,K); return answer; } public void combi(int idx,int cnt,int[] arr,int k){ if(cnt==k){ int min = Integer.MAX_VALUE; int max = Integer.MIN_VALUE; ..
[소스 코드]import java.util.*;class Main { public int solution(int K, String[] words) { int answer = 1; int len = 0; for(int i=0;i
[소스 코드]import java.util.*;class Main { public int[] dr = {-1,1,0,0}; public int[] dc = {0,0,-1,1}; public int solution(int n, int[][] garden) { int answer = 0; Queue q = new LinkedList(); boolean[][] visit = new boolean[n][n]; for(int i=0;i=n || nc=n || visit[nr][nc]) continue; visit[nr][nc] = true; q.offer(new int[]{nr,nc}); check =..
[소스 코드]class Main { class Job { public int salary; public Job() { this.salary = 0; } public int getSalary() { return salary; } } class PartTimeJob extends Job { public int workHour, payPerHour; public PartTimeJob(int workHour, int payPerHour) { this.workHour = workHour; this.payPerHour =..