일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 2557
- lower_case_table_names
- mysql
- 네이밍
- python
- enumerate
- project euler
- 큰 수 나누기
- convention
- BOJ
- Dictionary
- 파이썬
- ceil
- itertools
- 자료구조
- 세그먼트 트리
- 소수
- SUM()
- timestamp
- datetime
- SUM
- 딕셔너리
- Codeforces
- floor
- FOREIGN KEY
- 에라토스테네스의 체
- flask
- 외래키
- 리스트 컴프리헨션
- list comprehension
Archives
- Today
- Total
늒네 기록
[BOJ-JS] 15610번 - Abbey Courtyard 본문
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)
반응형
'알골 공부 기록 > BOJ' 카테고리의 다른 글
[BOJ-JS] 10162번 - 전자레인지 (0) | 2024.04.13 |
---|---|
[BOJ-JS] 27646번 - Judicious cuts (Easy) (0) | 2024.04.11 |
[BOJ-JS] 14264번 - 정육각형과 삼각형 (0) | 2024.03.24 |
[BOJ-JS] 10569번 - 다면체 (0) | 2024.03.24 |
[BOJ-JS] 28113번 - 정보섬의 대중교통 (0) | 2024.03.21 |