Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- 소프티어
- 다이나믹프로그래밍
- dfs
- bfs
- 자바스크립트
- softeer
- Lv. 1
- Lv. 3
- 문자열
- group by
- DP
- 너비 우선 탐색
- Typescript
- programmers
- Dynamic Programming
- 타입스크립트
- 프로그래머스
- 브루트포스
- 스택
- C언어
- level3
- Lv. 2
- Stack
- level 3
- 파이썬
- Java
- Python
- SQL 고득점 KIT
- Lv. 0
- javascript
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