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
- Dynamic Programming
- 백준
- softeer
- level 3
- join
- 프로그래머스
- 오블완
- Baekjoon
- SQL
- dfs
- Lv. 2
- Python
- 소프티어
- 파이썬
- javascript
- DP
- 자바스크립트
- Lv. 3
- group by
- 티스토리챌린지
- LEVEL 2
- bfs
- Lv. 0
- 너비 우선 탐색
- Lv. 1
- SQL 고득점 KIT
- programmers
- Java
- 동적계획법
- 깊이 우선 탐색
Archives
- Today
- Total
목록교점에 별 만들기 (1)
몸과 마음이 건전한 SW 개발자
프로그래머스 Lv. 2 교점에 별 만들기 Python
문제 링크 https://school.programmers.co.kr/tryouts/72046/challenges 정답 코드 def solution(line): lenLine = len(line) def isValid(A, B, C, D): return A * D - B * C def uniqueFC(A, B, C, D, E, F, divide): x = (B * F - E * D) / divide y = (E * C - A * F) / divide return x, y stars = set() for i in range(lenLine-1): A, B, E = line[i] for j in range(i+1, lenLine): if i == j: continue C, D, F = line[j] divid..
알고리즘
2024. 1. 3. 22:03