| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- Java
- db
- oracle
- 알고리즘
- 건강
- dfs
- 이분탐색
- math
- 프로그래머스
- DP
- 운동기록
- 문자열
- priorityqueue
- MySQL
- SWEA
- 투포인터
- 시뮬레이션
- SQL
- COS PRO
- 문제풀이
- 백준
- 문제해결
- binary search
- 러닝일지
- 코딩테스트
- 코테
- BFS
- BOJ
- greedy
- 자바
- Today
- Total
목록전체 글 (534)
슈콩
[소스 코드]class Main { public int solution(int n) { int answer = 0; int[] steps = new int[n+1]; steps[1] = 1; steps[2] = 2; steps[3] = 4; for(int i = 4; i
[소스 코드]// 다음과 같이 import를 사용할 수 있습니다.import java.util.*;class Main { boolean[] prime; public int solution(int a, int b) { // 여기에 코드를 작성해주세요. prime = new boolean[b+1]; prime[0] = prime[1] = true; isPrime(b); int answer = 0; for(int i=2;i=a && sq=a && cube
[소스 코드]// 다음과 같이 import를 사용할 수 있습니다.import java.util.*;class Main { public String solution(int hour, int minute) { // 여기에 코드를 작성해주세요. String answer = ""; double minTotal = minute * 6; double hourTotal = (hour % 12) * 30 + minute * 0.5; double total = Math.abs(hourTotal - minTotal); double finalAngel = Math.min(360-total,total); return String.format("%.1f",fina..
[소스 코드]import java.util.*;class Main { boolean[] visit; List list = new ArrayList(); public int solution(int[] card, int n) { // 여기에 코드를 작성해주세요. int answer = 0; visit = new boolean[card.length]; dfs(0,"",card); Arrays.sort(card); if(list.contains(n)) answer = list.indexOf(n); else answer = -1; return answer; } public void dfs..
[소스 코드]import java.util.Arrays;class Main { class Unit { public int HP; public Unit() { this.HP = 1000; } public void underAttack(int damage) { } } class Monster extends Unit { public int attackPoint; public Monster(int attackPoint) { this.attackPoint = attackPoint; } public void underAttack(int damage) { ..
[소스 코드]import java.util.Arrays;class Main { public int power(int base, int exponent) { int val = 1; for (int i = 0; i
[소스 코드]class Main { public String reverse(String number) { String reverseNumber = ""; for(int i = number.length()-1; i >= 0; i--) reverseNumber += number.charAt(i); return reverseNumber; } public String solution(int n) { String answer = ""; for(int i = 0; i
[소스 코드]class Main { public long solution(int oneDayPrice, int multiDay, int multiDayPrice, long n){ if(oneDayPrice * multiDay
[소스 코드]import java.util.*;class Main { public String solution(String s) { s = s.toLowerCase(); String answer = ""; char previous = s.charAt(0); int counter = 1; for(int i=1; i