일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 자바스크립트
- level 3
- Typescript
- bfs
- 브루트포스
- 다이나믹프로그래밍
- programmers
- 너비 우선 탐색
- 타입스크립트
- Dynamic Programming
- Lv. 1
- 문자열
- 프로그래머스
- 스택
- javascript
- 소프티어
- Python
- group by
- softeer
- Stack
- SQL 고득점 KIT
- 파이썬
- Lv. 2
- level3
- dfs
- Lv. 0
- C언어
- Java
- DP
- Lv. 3
- Today
- Total
목록level 3 (6)
몸과 마음이 건전한 SW 개발자
문제 링크https://softeer.ai/practice/7594 Softeer - 현대자동차그룹 SW인재확보플랫폼 softeer.ai정답 코드import sysinput = sys.stdin.readlineanswer = 0n = int(input())trees = [list(map(int, input().split())) for _ in range(n)]selectedArr = []last = n - 1for r in range(n): for c in range(n): tree = trees[r][c] if r != last and c != last: selectedArr.append((r, c, r+1, c, tree+trees[r+1][c])) ..
문제 링크 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
문제 링크 https://softeer.ai/practice/6257 Softeer - 현대자동차그룹 SW인재확보플랫폼 softeer.ai 정답 코드 import sys input = sys.stdin.readline N = int(input()) busStation = list(map(int, input().split())) result = 0 for idx in range(N-1): valueIdx = busStation[idx] isNotPossible = 0 for jdx in range(idx+1, N): valueJdx = busStation[jdx] if valueIdx < valueJdx: isNotPossible += 1 else: result += isNotPossible print(r..
문제 링크 https://softeer.ai/practice/6258 Softeer - 현대자동차그룹 SW인재확보플랫폼 softeer.ai 정답 코드 import sys sys.setrecursionlimit(10**6) input = sys.stdin.readline nodeDict = dict() N = int(input()) adjL = [[] for _ in range(N+1)] for _ in range(N-1): start, to, distance = map(int, input().split()) adjL[start].append(to) adjL[to].append(start) nodeDict[(start, to)] = distance nodeDict[(to, start)] = distance..
문제 링크 https://softeer.ai/practice/6271 Softeer - 현대자동차그룹 SW인재확보플랫폼 softeer.ai 정답 코드 import sys from collections import deque input = sys.stdin.readline R, C = map(int, input().split()) guidance = [] shower = [] boundaryShower = [] sr, sc = 0, 0 er, ec = 0, 0 def isValid(nr, nc): return 0
문제 링크 https://softeer.ai/practice/6289 Softeer - 현대자동차그룹 SW인재확보플랫폼 softeer.ai 정답 코드 import sys input = sys.stdin.readline N, M = map(int, input().split()) weights = list(map(int, input().split())) adjL = [[] for _ in range(N+1)] for _ in range(M): start, to = map(int, input().split()) adjL[start].append(to) adjL[to].append(start) V = [1 for _ in range(N+1)] for p in range(1, N+1): currentPW = we..