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 | 29 | 30 | 31 |
Tags
- 소프티어
- level 3
- softeer
- group by
- 자바스크립트
- bfs
- Dynamic Programming
- 문자열
- level3
- javascript
- DP
- Lv. 2
- 타입스크립트
- programmers
- Typescript
- Java
- 파이썬
- Lv. 1
- Lv. 0
- 프로그래머스
- SQL 고득점 KIT
- dfs
- 스택
- 너비 우선 탐색
- C언어
- Python
- Lv. 3
- 브루트포스
- 다이나믹프로그래밍
- Stack
Archives
- Today
- Total
목록슈퍼컴퓨터 클러스터 (1)
몸과 마음이 건전한 SW 개발자
Softeer [Level 3] 슈퍼컴퓨터 클러스터 {언어 : Python}
문제 링크 https://softeer.ai/practice/6252 Softeer - 현대자동차그룹 SW인재확보플랫폼 softeer.ai 정답 코드 import sys N, B = map(int, input().split()) computers = sorted(list(map(int, input().split()))) left = 1 right = 2000000000 minV = 2000000000 while left currentMoney: right = mid - 1 break currentMoney -= cost else: left = mid + 1 print(right) 풀이 방법 찾으려고 하는 값(mid)이 최저성능의 컴퓨터의 값이다. 최저값은 당연히 1 최고값은 최저성능의 컴퓨터의 값 (1
알고리즘
2024. 3. 8. 00:10