| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 (추가 시간 없음) | 1024 MB | 109 | 37 | 37 | 37.374% |
For the longest time you could keep your toddlers happy by letting them play with triangular, square, and circular wooden blocks that fit exactly through perfectly sized holes. After letting them play a bit too long, they completely mastered this game and are now bored, preventing you from fixing the bugs in your code.
Just now, they decided to reverse roles and started screaming planar coordinates at you, insisting that you determine which shape each four points make: kite, trapezium, parallelogram, rhombus, rectangle, square, or none of those. You do not have time for this, since your bugs still need fixing. Instead, you write a new program to answer your toddlers' questions, ideally without bugs.
The definitions for the quadrilateral shapes are as follows:
The input consists of:
The positive x-axis is oriented to the right and the positive y-axis is oriented upwards.
The four points are distinct, form a convex quadrilateral shape (i.e. all interior angles are strictly less than 180ドル^\circ$), and are given in clockwise order.
Output the most restrictive type of quadrilateral that the points form, which is the first one of "square", "rectangle", "rhombus", "parallelogram", "trapezium", or "kite" that applies, or "none" otherwise.
0 0 0 1 1 1 1 0
square
1 1 2 3 4 5 3 3
parallelogram
ICPC > Regionals > Europe > Northwestern European Regional Contest > Benelux Algorithm Programming Contest > BAPC 2023 G번