|시간 제한||메모리 제한||제출||정답||맞은 사람||정답 비율|
|1 초||512 MB||21||13||12||66.667%|
At the Van Abbemuseum of modern and contemporary art in Eindhoven, we always look to present our muses in the most interesting way possible. Sometimes we have our work cut out for us.
Today we are exploring whether we can modify one of our perfectly-square picture frames (such as the one shown in Figure C.1) to include an electrical filament. The purpose of this filament is so that the image can set itself alight at some opportune and hilarious moment—for example, in the middle of a sale by auction.
You will be responsible for buying the filament to run around the entire perimeter of the artwork. How many centimetres will you need to obtain?
Figure C.1: A test subject for the frame.
The input consists of:
Output the total length of filament needed for the frame, in centimetres. Your answer should have an absolute or relative error of at most 10−6.