SWEA 7

SWEA 5250. 최소비용 [Python]

문제 : 최소비용 난이도 : D3 언어 : python 문제 링크 : https://swexpertacademy.com/main/learn/course/lectureProblemViewer.do SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com def bfs(y, x): visited[y][x] = 0 queue = [] queue.append((y, x)) while queue: cy, cx = queue.pop(0) for dy, dx in [(1, 0), (-1, 0), (0, 1), (0, -1)]: ny, nx = cy + dy, cx + dx if 0

SWEA 2022.04.05

SWEA 1486. 장훈이의 높은 선반 [Python]

문제 : 장훈이의 높은 선반 난이도 : D4 언어 : Python 문제 링크 : https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV2b7Yf6ABcBBASw&categoryId=AV2b7Yf6ABcBBASw&categoryType=CODE&problemTitle=1486&orderBy=FIRST_REG_DATETIME&selectCodeLang=ALL&select-1=&pageSize=10&pageIndex=1&&&&&&&&& def bfs(n, ssum): global ans if ssum >= B + ans: return ans if n == N: if ssum >= B and ssum - B < ans: an..

SWEA 2022.03.27

SWEA 4615. 재미있는 오셀로 게임 [Python]

문제 : 재미있는 오셀로 게임 난이도 : D3 언어 : Python 문제 링크 : https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AWQmA4uK8ygDFAXj&categoryId=AWQmA4uK8ygDFAXj&categoryType=CODE&problemTitle=%EC%98%A4%EC%85%80%EB%A1%9C&orderBy=FIRST_REG_DATETIME&selectCodeLang=ALL&select-1=&pageSize=10&pageIndex=1&&&&&&&&& def check(y, x): for dy, dx in [(1, 0), (-1, 0), (0, 1), (0, -1), (1, 1), (1, -1),..

SWEA 2022.03.27

SWEA 2382. 미생물 격리 [Python]

문제 : 2382. 미생물 격리 난이도 : 모의 SW 역량테스트 언어 : python 문제 링크 : https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV597vbqAH0DFAVl di, dj = (0, -1, 1, 0, 0), (0, 0, 0, -1, 1) opp = [0, 2, 1, 4, 3] T = int(input()) for tc in range(1, T + 1): N, M, K = map(int, input().split()) # N : 셀의 갯수, M : 격리 시간, K : 미생물 군집의 개수 arr = [list(map(int, input().split())) for _ in range(K)] for _..

SWEA 2022.03.25
LIST