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
- 안드로이드
- 분할정복
- 코드품앗이
- issue
- Algorithm
- 코테
- android
- 코딩테스트
- 개발
- AndroidStudio
- DART
- DFS
- 알고리즘
- Python
- 안드로이드스튜디오
- 동적계획법과최단거리역추적
- 파이썬
- cos pro 1급
- 백준
- Flutter
- vuejs
- BAEKJOON
- C++
- Vue
- codingtest
- DFS와BFS
- cos
- 동적계획법
- cos pro
Archives
- Today
- Total
목록cos pro 1급 마방진 문제 python (1)
Development Artist
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/u2ITt/btruqE8vNoX/Edaz4W9TnlsHrFcyQnKdRK/img.png)
문제 유형 빈칸 난이도 easy Note 1. 빠진 숫자 찾는 함수(a), 빠진 좌표 찾는 함수(b), 합을 계산하는 함수(c) Code # -*- coding: utf-8 -*- # UTF-8 encoding when using korean # 4차 4번 def func_a(matrix): n = 4 ret = [] exist = [False for _ in range(n*n + 1)] for i in range(0, n): for j in range(0, n): exist[matrix[i][j]] = True for i in range(1, n*n+1): if exist[i] == False: ret.append(i) return ret def func_b(matrix): n = 4 ret = [] ..
Algorithm/COS
2022. 2. 25. 13:02