백준 알고리즘 16600번 : Contemporary Art (Python)
링크
https://www.acmicpc.net/problem/16600
문제
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?
입력
The input consists of:
One line with an integer a (1 ≤ a ≤ 1018), the area of the image in square centimetres.
출력
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.
예제 입력 및 출력
풀이 코드(Python)
import math
n = int(input())
print(math.sqrt(n)*4)
Author And Source
이 문제에 관하여(백준 알고리즘 16600번 : Contemporary Art (Python)), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://velog.io/@inwooleeme/백준-알고리즘-16600번-Contemporary-Art저자 귀속: 원작자 정보가 원작자 URL에 포함되어 있으며 저작권은 원작자 소유입니다.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)