일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- C언어 계산기 프로그램
- auto 키워드
- 괄호 검사 프로그램
- string유형
- c언어 괄호검사
- C언어 스택 연산
- 범위 기반 for문
- r-value참조자
- C언어 덱
- 값/참조/주소에 의한 전달
- 문제해결 단계
- const l-value참조자
- 백준 파이썬
- 유형 변환
- 회전 및 자리 이동 연산
- 문자형 배열
- 프로그래머스 푸드 파이트 대회
- 논리 연산
- const화
- getline()함수
- 프로그래머스 배열만들기4
- 주기억장치
- l-value참조자
- 운영체제 기능
- LAN의 분류
- 입출력 관리자
- 알고리즘 조건
- 네트워크 결합
- IPv4 주소체계
- 원형 연결 구조 연결된 큐
- Today
- Total
목록프로그래머스 (104)
chyam

https://school.programmers.co.kr/learn/courses/30/lessons/250136 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.krfrom collections import dequedef solution(land): # 마지막에 res의 max값 구하기 r, c = len(land), len(land[0]) visited = [[False]* c for i in range(r)] direction = [(0,1), (0,-1), (1,0) ,(-1,0)] # 상하좌우 res = [0] * c def bfs(i, j): qu..

https://school.programmers.co.kr/learn/courses/30/lessons/160585 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.krdef is_winner(board, player): # 가로 승리 for i in range(0, 9, 3): if board[i] == board[i+1] == board[i+2] == player: return True # 세로 승리 for i in range(3): if board[i] == board[i+3] == board[i+6] == player: ..

https://school.programmers.co.kr/learn/courses/30/lessons/388353 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.krdef fork(storage, box): # 지게차 dx, dy = [0, 0, 1, -1], [1, -1, 0, 0] index = [] for i in range(1, len(storage) - 1): for j in range(1, len(storage[0]) - 1): if storage[i][j] == box: for k in range(4): ..

https://school.programmers.co.kr/learn/courses/30/lessons/42890 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.krfrom itertools import combinationsdef check(li, relation, col, row): new_list, res_list = [], set() # 값 비교할 리스트, 열 번호 저장할 리스트 iswrong = 0 # 중복이 있는지? for r in range(row): tmp = [] for i in li: tmp.append(relation[r][i]..

https://school.programmers.co.kr/learn/courses/30/lessons/12952 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.krdef solution(n): # 여태까지의 queen 위치 ls, 내가 두려는 위치 new def check(ls, new): for i in range(len(ls)): # 같은 열에 퀸을 둔 적이 있거나, 대각 위치에 둔 적이 있다면 if new == ls[i] or (len(ls)-i) == abs(ls[i]-new): return False ret..

https://school.programmers.co.kr/learn/courses/30/lessons/181187?language=python3 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.krimport mathdef solution(r1, r2): answer = 0 for x in range(0, r2 + 1): max_y = int((r2**2 - x**2) ** 0.5) # 가능한 최대 y 개수 min_y = 0 # 최소 y if x # 처음에 2중 for문 써서 작성한 코드 (시간초과)def solution(r1, r2): answer ..

https://school.programmers.co.kr/learn/courses/30/lessons/150368 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.krfrom itertools import productdef buy_able(rates,users,emoticons): user_buy = [] # 자신의 기준에 따라 이모티콘 구매 비용의 합이 일정 가격 이상이 된다면, 이모티콘 '구매를 모두 취소'하고 이모티콘 플러스 서비스에 가입 for emo_tmp in rates: tmp = [0] * len(users) for i in range(len(..

https://school.programmers.co.kr/learn/courses/30/lessons/176962# 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.krdef solution(plans): answer = [] # 완료된 과제 for i in range(len(plans)): # 시간을 분단위로 바꾸기 h, m = map(int, plans[i][1].split(':')) st = h*60+m plans[i][1] = st plans[i][2] = int(plans[i][2]) plans.sort(key=la..