Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 백준 16236
- MSA
- 백준 17626
- Kotlin
- JVM
- 프로그래머스
- 백준 16719
- with recursive
- 백준 16235
- spring cloud
- 백준 17779
- java
- 백준 19238
- MySQL
- re.split
- java 기술면접
- 백준 파이썬
- springboot
- spring oauth
- 백준 15685
- 파이썬
- 프로래머스
- spring security
- 웹어플리케이션 서버
- sql 기술면접
- Spring
- 백준
- JPA
- Coroutine
- Spring Boot
Archives
- Today
- Total
목록백준 1654 (1)
시작이 반
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/bJkWvL/btq0fjNda5a/WJwNswcmvm6Au2YWis34X0/img.png)
첫번째 풀이(실패) k, n = map(int, input().split(' ')) lans = [int(input()) for _ in range(k)] min_lan = min(lans) result = list() def binary(): global min_lan left = 1 right = min_lan prev = (left + right) // 2 while left = n: left = mid right = prev min_lan = (left + right) // 2 binary() print(max(result)) 최종 풀이 k, n = map(int, input().split(' ')) lans = [int(input()) for _ in range(k)] result = list(..
카테고리 없음
2021. 3. 17. 01:27