| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- 문제풀이
- SWEA
- 코테
- binary search
- Java
- 이분탐색
- 건강
- MySQL
- 백준
- greedy
- 시뮬레이션
- oracle
- priorityqueue
- math
- dfs
- 러닝일지
- 자바
- 운동기록
- 문제해결
- db
- 코딩테스트
- SQL
- 알고리즘
- COS PRO
- 문자열
- DP
- BFS
- 프로그래머스
- Today
- Total
목록Java (469)
슈콩
[소스 코드]class Main { public boolean solution(String password) { int length = password.length(); for(int i = 0; i
[소스 코드]import java.util.*;class Main { public int[] solution(int[] arr) { [[(guide-anchor):(한줄을 수정하시오)]] int left = 0, right = arr.length - 1; int idx = 0; int[] answer = new int[arr.length]; while(left
[소스 코드]class Main { public int solution(int money) { int coin[] = {10, 50, 100, 500, 1000, 5000, 10000, 50000}; int counter = 0; int idx = coin.length - 1; while (money > 0){ counter += money / coin[idx]; money %= coin[idx]; idx -= 1; } return counter; }}
[소스 코드]import java.util.*;class Main { public int[] solution(String commands) { int[] answer = new int[2]; for(int i=0;i
[소스 코드]import java.util.*;class Main { public int solution(int[] arr) { int answer = 0; int cnt = 1; int idx = 0; while(idx
[소스 코드]class Main { public int func_a(int n){ int ret = 1; while(n > 0){ ret *= 10; n--; } return ret; } int func_b(int n){ int ret = 0; while(n > 0){ ret++; n /= 10; } return ret; } int func_c(int n){ int ret = 0; while(n > 0){ ret += n%10; n..
[문제] [소스 코드]class Main { interface Book{ public int getRentalPrice(int day); } class ComicBook implements Book { public int getRentalPrice(int day) { int cost = 500; day -= 2; if(day > 0) cost += 200 * day; return cost; } } class Novel implements Book { public int getRentalPrice(int day..
[문제] [소스 코드]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...
[소스 코드]class Main{ int solution(int[] prices){ [[(guide-anchor):(한줄을 수정해주세요)]] int inf = 1000000001; int tmp = inf; int answer = -inf; for(int price : prices){ if(tmp != inf) answer = Math.max(answer, price - tmp); tmp = Math.min(tmp, price); } return answer; }}