| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 4 초 | 2048 MB | 188 | 69 | 60 | 36.585% |
Inspired by a Piet Mondrian painting, you want to make a four-pane window out of four colored rectangles of glass. You are given the sizes of the four panes of glass. Can you arrange them into a square? You may rotate the panes. The panes should cover the entire square without overlap.
The input consists of exactly four lines. Each of the four lines contains two integers $w$ and $h$ (1ドル \le w,h \le 1,000円$), representing the width and height of one of the four rectangular panes of glass.
Output a single integer, which is 1ドル$ if the four panes can be arranged to form a square, and 0ドル$ otherwise.
1 1 1 1 1 1 1 1
1
3 1 3 3 2 2 3 3
0
ICPC > Regionals > North America > North America Championship > North America Championship 2023 F번