Logo
(追記) (追記ここまで)

31391번 - Biology 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB364418.182%

문제

Android Vasya prepares a research work in Biology. In this work he studies the class of arachnoid. Vasya is not interested in spiders themselves, his work is mostly concentrated on the webs made by different species of spiders.

Vasya has already found out how the web is made. It is a set of points --- the web knots, connected with each other by the so-called fibres. One may imagine the web knots as coplanar points. The web fibres are line segments, connecting the knots. An important property of these segments is that they cross only in the knots.

Vasya wants to determine which spiders make webs with the highest quality. For this purpose he defined the stickiness of the web as amount of different traps in it. A trap is a polygon with no self-crossings and self-tagencies, where knots of the web are vertexes and fibres are edges.

Vasya has analysed several webs with 16 knots. As a result, he has discovered that stickiness of those webs is between 5ドル,000円$ and 300ドル,000円$. And now he is interested in finding out how a web with 16 knots and stickiness more than 300ドル,000円$ can look like.

입력

There is no input data in this task.

출력

In the first 16 lines output coordinates of the web knots as pairs of integers $x_i,ドル $y_i$ ($-1000 \leq x_i, y_i \leq 1000$). In the next 16 lines output an adjacency matrix of the web --- the table of a size 16ドル \times 16,ドル composed of the symbols \s{0} и \s{1}. The matrix should be symmetrical and its main diagonal should be filled with zeros.

Any two knots of the web should lie in different points. Knots mustn't lie on the inner points of the fibres. Any two fibres may cross only in their common knot.

The web should have stickiness more than 300ドル,000円$. It is guaranteed that such webs exist.

제한

예제 입력 1

예제 출력 1

0 0
5 -6
-5 -6
-9 3
0 8
9 3
011111
101001
110100
101010
100101
110010

힌트

The answer in the example is not correct and just illustrates the answer format. Note, that you should output the web with 16, not 6, knots. The picture above corresponds to this example. The stickiness of the web in the example is only 21.

출처

Contest > Open Cup > 2014/2015 Season > Stage 14: Grand Prix of East and West H번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /