포럼
문제 ICPC00352

G. Geometry Game

설명

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:
- sep0pt
- A square has four right angles and four sides with equal lengths.
- A rectangle has four right angles.
- A rhombus has four sides with equal lengths.
- A parallelogram has two pairs of parallel sides.
- A trapezium has one pair of parallel sides.
- A kite has reflection symmetry across a diagonal.

제약
입력 형식

The input consists of:
- Four lines, each containing two integers \(x\) and \(y\) (\(0\leq x,y\leq 10^9\)), the coordinates of a point.

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.

예제 1
입력
0 0
0 1
1 1
1 0
출력
square
예제 2
입력
1 1
2 3
4 5
3 3
출력
parallelogram
문제 정보

생성자가 기록되지 않았습니다.

출처 ICPC BAPC 2023

평가 및 의견

G. Geometry Game

개요
출제자 난이도 Unrated 레이팅 미적용 의견 0 / 1 공개 집계 (커뮤니티 난이도, 주요 주제, 품질)는 의견이 충분히 모이면 공개됩니다.

Log in to rate problems.

개별 의견

아직 의견이 없습니다. 자격이 된다면 위 양식에서 가장 먼저 평가해 보세요.

풀이 제출

G. Geometry Game

게스트로 둘러보고 있습니다. 로그인하면 풀이를 제출하고 진행 상황을 확인할 수 있습니다. 로그인하고 제출하기
공개
C++20 Tab 들여쓰기 · Ctrl+/ 주석 토글 · Enter 자동 들여쓰기
1 1 1 0 공백: 4 · UTF-8