
from itertools import combinations def solution(line): answer = [] comb = list(combinations(line, 2)) for i in comb: div = i[0][0] * i[1][1] - i[0][1] * i[1][0] if div == 0: continue else: x = (i[0][1] * i[1][2] - i[0][2] * i[1][1]) / div y = (i[0][2] * i[1][0] - i[0][0] * i[1][2]) / div if x == int(x) and y == int(y): answer.append([int(x), int(y)]) x_answer = sorted(answer, key = lambda x: x[0..
코딩테스트 대비
2022. 3. 4. 19:53
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 설치
- dfs
- 다익스트라
- numpy
- CUDA
- shellscript
- 동적프로그래밍
- 설치하기
- version
- 이것이코딩테스트다
- pytorch
- 백준
- BFS
- docker
- n과m
- error
- notfound
- 파이썬
- Python
- tensorflow
- 프로그래머스
- 코딩테스트
- 카카오
- PIP
- LGSVL
- 백트래킹
- torchscript
- 최소신장트리
- torch
- matplotlib
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함