일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 16234번
- 파이썬
- SW ExpertAcademy
- HTML 기초
- 1038번
- 보석 쇼핑
- 감소하는 수
- 어른 상어
- 스타트 택시
- 15686번
- 9095번
- 프로그래머스
- 키패드 누르기
- 1789번
- 12865번
- 거울 설치
- 수식 최대화
- 백준 알고리즘
- 베스트엘범
- 2020 카카오 인턴십
- 12869번
- python
- 19238번
- 14499번
- 17144번
- 미세먼지 안녕!
- QueryDSL 기초
- 빛의 경로 사이클
- 경주로 건설
- SW Expert Academy
- Today
- Total
목록알고리즘 풀이/SW Expert Academy (31)
보물창고 블로그
문제 링크: https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AWXRDL1aeugDFAUo&categoryId=AWXRDL1aeugDFAUo&categoryType=CODE SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com 해결한 코드는 아래와 같다. def checker(x, y, chargers): sub = [] for i in range(len(chargers)): cy, cx, c, p = chargers[i] cy -= 1 cx -= 1 if abs(cy - y) + abs(cx - x)
문제 링크: https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AWXRFInKex8DFAUo&categoryId=AWXRFInKex8DFAUo&categoryType=CODE SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com 처음에 0.5초를 처리하기 위해 2000*2000 크기의 배열을 선언하였다가 시간 초과가 났다. 다른 사람들의 코드를 리뷰해서 파이썬에 있는 자료구조 중 하나인 딕셔너리를 사용하여 문제를 해결하였다. 해결한 코드는 아래와 갔다. t = int(input()) for test in range(1, t + 1..
문제 링크: https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AWXRF8s6ezEDFAUo&categoryId=AWXRF8s6ezEDFAUo&categoryType=CODE SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com 상당히 애를 먹었던 문제이다. 웜홀 구현에 애를 많이 먹었다. 해결한 코드는 아래와 같다. from collections import deque def solution(x, y, map1, portal, n): global answer dx = [-1, 0, 1, 0] dy = [0, -1, 0, 1] q..
문제 링크: https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV5V4A46AdIDFAWu SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com 해결한 코드는 아래와 같다. def solution(map2, n, m, c): answer = 0 for i in range(n): for j in range(n): if j + m - 1 < n: sub1 = [] for p in range(m): sub1.append(map2[i][j + p]) for i2 in range(i, n): for j2 in range(n): if i2..