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
- docker
- 코드품앗이
- 알고리즘
- DART
- Algorithm
- vuejs
- C++
- 안드로이드스튜디오
- AndroidStudio
- 개발
- issue
- 안드로이드
- cos
- 동적계획법과최단거리역추적
- django
- 파이썬
- 백준
- Python
- 코딩테스트
- DFS와BFS
- 분할정복
- Flutter
- 동적계획법
- cos pro
- 코테
- BAEKJOON
- android
- DFS
- codingtest
- cos pro 1급
Archives
- Today
- Total
목록마방진 문제 python (1)
Development Artist

문제 유형 빈칸 난이도 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