| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 2048 MB | 10 | 6 | 5 | 55.556% |
Mines has recently received an influx of new students who are interested in studying Computer Science (the best major on campus, naturally). To accommodate this new influx, Mines has decided to build a new Computer Science building. The building architects designed the building to be a quadrilateral, but Blaster the Burro ate the blueprints! All they have left are coordinates of the four vertices of the building. Can you determine the shape of the building they designed?
The input consists of four lines of space separated integers. The two integers on each line represent the $x$ and $y$ coordinates of a point in two-dimensional Cartesian space, respectively. The four points are guaranteed to form a convex quadrilateral (that is, all interior angles are strictly less than 180ドル^\circ$), but the points may appear in any order. The $x$ and $y$ coordinates of each point are in the range $[-1,000,円 1,000円]$.
The output should be a string describing the most specific classification of the shape that the four points form. You should classify the points as forming one of the following shapes, listed in increasing order of specificity:
1 1 1 -1 -1 -1 -1 1
Square
15 5 30 24 35 17 10 12
Parallelogram
School > CS@Mines > CS@Mines HSPC 2022 > Beginner L번
School > CS@Mines > CS@Mines HSPC 2022 > Advanced C번