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 |
Tags
- django
- 코드품앗이
- DFS와BFS
- 파이썬
- BAEKJOON
- C++
- 코테
- 안드로이드스튜디오
- 동적계획법
- Algorithm
- 코딩테스트
- AndroidStudio
- 안드로이드
- cos pro
- Vue
- cos pro 1급
- DFS
- codingtest
- 백준
- cos
- Python
- 개발
- issue
- Flutter
- 분할정복
- 알고리즘
- 동적계획법과최단거리역추적
- DART
- vuejs
- android
Archives
- Today
- Total
목록cos 1급 6차 카드 섞기 python (1)
Development Artist
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/SKf7I/btruNj3a1do/XZWys4AohTKOfh4jwLHAk0/img.png)
문제 유형 한줄 수정(디버깅) 난이도 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