늒네 기록

[BOJ-JS] 15610번 - Abbey Courtyard 본문

알골 공부 기록/BOJ

[BOJ-JS] 15610번 - Abbey Courtyard

jaeha lee 2024. 3. 26. 23:35

15610번: Abbey Courtyard (acmicpc.net)

 

15610번: Abbey Courtyard

Bath’s annual Christmas market runs from the 23rd of November 2017 until the 10th of December 2017. During this time, the market will occupy the entire square courtyard of Bath Abbey. To brighten things up at night, a single long strand of cheerful festi

www.acmicpc.net

 

면적이 인풋으로 주어지고, 이 면적을 가지는 정사각형의 둘레를 구하는 문제.

한 변의 길이가 면적의 제곱근이므로 이 값을 구한 뒤 4를 곱하면 된다.

console.log(require('fs').readFileSync(0)**.5*4)
반응형
Comments