반응형

[ Contents ]
1. 문제 (링크 참조)
20353번: Atrium
The atrium of a traditional Roman dormus, much like the atria of today, is a perfectly square room designed for residents and guests to congregate in and to enjoy the sunlight streaming in from above. Or, in the case of Britannia, the rain streaming in fro
www.acmicpc.net
2. 문제 풀이
정사각형의 면적이 입력으로 주어집니다. 이를 통해 정사각형의 둘레의 길이를 구합니다.
3. 코드
# 입력
a = int(input())
# 변의 길이
side = a**0.5
# 네 변의 길이 출력
print(side*4)

반응형
'Algorithm' 카테고리의 다른 글
| [DP/동적계획법] 백준 13699 점화식 - 파이썬(Python) (0) | 2022.08.27 |
|---|---|
| [구현/수학] 백준 18330 Petrol - 파이썬(Python) (0) | 2022.08.26 |
| [DP/동적계획법] 백준 15486 퇴사 2 - 파이썬(Python) (2) | 2022.08.24 |
| [구현/수학] 백준 16727 ICPC - 파이썬(Python) (0) | 2022.08.23 |
| [구현/수학] 백준 14173 Square Pasture - 파이썬(Python) (0) | 2022.08.22 |
댓글