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
- vuejs
- issue
- Flutter
- DART
- cos
- Vue
- 백준
- C++
- 동적계획법
- android
- Algorithm
- 파이썬
- DFS
- AndroidStudio
- 분할정복
- DFS와BFS
- Python
- codingtest
- 안드로이드
- 알고리즘
- 동적계획법과최단거리역추적
- 코딩테스트
- BAEKJOON
- cos pro 1급
- 안드로이드스튜디오
- cos pro
Archives
- Today
- Total
목록cos pro 1급 코인을 많이 획득하세요 python (1)
Development Artist
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/OF392/btruITdwBNx/FLo4ripdT4KE2HXxfVYYZk/img.png)
문제 유형 한줄 수정(디버깅) 난이도 easy Note 1. 문제 자체는 쉬웠다. 2. 하지만, 함수 구현 문제로 나올 수 있으니, 해당 로직은 알 필요가 있다. 3. coins[0][0] 부터 시작해서 오른쪽, 아래로 가면서 코인을 더해감. Code # -*- coding: utf-8 -*- # UTF-8 encoding when using korean def solution(board): coins = [[0 for c in range(4)] for r in range(4)] for i in range(4): for j in range(4): if i == 0 and j == 0: # 초기세팅 coins[i][j] = board[i][j] elif i == 0 and j != 0: # 아래로 coin..
Algorithm/COS
2022. 3. 1. 11:48