Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 분할정복
- BAEKJOON
- 코테
- 개발
- issue
- DFS와BFS
- C++
- codingtest
- Flutter
- 동적계획법과최단거리역추적
- android
- Algorithm
- DFS
- cos pro
- 파이썬
- 동적계획법
- Python
- cos pro 1급
- cos
- AndroidStudio
- django
- 알고리즘
- 안드로이드
- vuejs
- DART
- 코딩테스트
- docker
- 백준
- 코드품앗이
- 안드로이드스튜디오
Archives
- Today
- Total
목록cos 1급 6차 카드 섞기 python (1)
Development Artist

문제 유형 한줄 수정(디버깅) 난이도 easy Note 1. 문제 자체는 쉬웠다. 2. 하지만, 함수 구현 문제로 나올 수 있으니, 해당 로직은 알 필요가 있다. 3. card : 전체, card_a : 반으로 나눠진 일부, card_b : 반으로 나눠진 나머지 -> card = card_a + card+b Code # -*- coding: utf-8 -*- # UTF-8 encoding when using korean def solution(n, mix, k): answer = 0 card = [_ for _ in range(1, n+1)] while mix != 0: mix = mix - 1 card_a, card_b = [0 for _ in range(n//2)], [0 for _ in range(..
Algorithm/COS
2022. 3. 1. 11:45