시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 (추가 시간 없음) 512 MB71423253.333%

## 문제

Write a function P1:

• A point $(x,y)$ is called a lattice point iff both $x$ and $y$ are integers.
• input parameter: integers x1, y1, x2, y2, x3, y3
• Three points (x1y1), (x2y2), (x3y3) are not on a same straight line.
• The absolute value of each input parameter is less than or equal to $2^{1024}$.
• return value: the number of the lattice points (including vertexes) on the perimeter of the triangle with three vertexes (x1y1), (x2y2), (x3y3)
• For example, if a triangle has vertexes $(0,0),(2,2),(3,0)$ then its perimeter has 6 lattice points: $(0,0),(1,1),(2,2),(3,0),(2,0),(1,0)$.

## 출처

• 문제를 만든 사람: parkky

PyPy3

## 채점 및 기타 정보

• 예제는 채점하지 않는다.