| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- 알고리즘
- COS PRO
- dfs
- BFS
- 러닝일지
- 문자열
- 프로그래머스
- db
- 백준
- Java
- binary search
- 자바
- 투포인터
- priorityqueue
- 문제해결
- MySQL
- BOJ
- greedy
- oracle
- DP
- 건강
- 이분탐색
- SQL
- 시뮬레이션
- 문제풀이
- 코딩테스트
- 코테
- math
- SWEA
- 운동기록
- Today
- Total
목록binary search (4)
슈콩
[문제]https://school.programmers.co.kr/learn/courses/30/lessons/43238 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr [소스 코드]import java.util.*;class Solution { public long solution(int n, int[] times) { Arrays.sort(times); long left = 1; long right = (long)times[times.length - 1] * n; while(left=n; }}
[문제]https://www.acmicpc.net/problem/3151 [소스 코드]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; int n = Integer.parseInt(br.readLine()); int[] arr = new int[n]; st = new StringTokenizer(br.readLine()); for(int i=0;istart && arr[e..
[문제]https://www.acmicpc.net/problem/2805 [소스 코드]import java.io.*;import java.util.*;public class Main { static int n; static long m; static int[] arr; 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.nextToken()); m = Long.pars..
[문제]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..