|시간 제한||메모리 제한||제출||정답||맞은 사람||정답 비율|
|1 초 (추가 시간 없음)||512 MB||1||1||1||100.000%|
Count Dracula is a voracious (as well as carnivorous) gardener. He keeps a small garden within easy walking distance of his eponymous mansion, and naturally also near to his eponymous potting shed.
Recently, the Count has had to cut back his gardening time sharply on account of adversely excellent weather conditions. His prize Deadly Nightshades are starting to feel neglected.
He would like to pave a shaded path between the garden, the mansion, and the shed using an ensemble of variously-sized trees he’s obtained from Harker Nurseries at suspiciously low prices. Each tree casts a circle-shaped shadow that Dracula can walk across.
Figure G.1: Illustration of a solution to the second sample input. Dots mark the garden, mansion and shed.
Is it possible for him to re-plant his trees in such a way that they cast a continuous shadow on the ground connecting the three given locations? You may assume shadows are directly beneath the trees and do not move throughout the day.
The input consists of:
If the Count can place the trees in such a way as to connect all of the sites, output “possible”. Otherwise, output “impossible”.
-6 0 6 0 0 6 4 1 3 1 1
-6 0 6 0 0 6 4 2 3 2 1