일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 프로그래머스
- DeepLearning
- Heap
- MySQL
- SQL
- Programmers
- Word2vec
- Numpy
- boj
- dl
- Stack
- kakao
- PPMI
- affine
- FullyConnectedLayer
- hash
- sort
- 딥러닝
- select
- CBOW
- backward
- stak
- Sigmoid
- Python
- 파이썬
- que
- skip-gram
- 신경망
- 자연어처리
- algorithm
Archives
- Today
- Total
혜온의 이것저것
[HackerRank] Weather Observation Station 19 (MySQL) 본문
https://www.hackerrank.com/challenges/weather-observation-station-19/problem?isFullScreen=true
문제
Consider P1(a,c) and P2(b,d) to be two points on a 2D plane where (a,b) are the respective minimum and maximum values of Northern Latitude (LAT_N) and (c,d) are the respective minimum and maximum values of Western Longitude (LONG_W) in STATION.
Query the Euclidean Distance between points P1 and P2 and format your answer to display 4 decimal digits.
Input Format
The STATION table is described as follows:
where LAT_N is the northern latitude and LONG_W is the western longitude.
풀이
select round(sqrt(pow(max(lat_n)-min(lat_n),2)+pow(max(long_w)-min(long_w),2)),4)
from station
'Data Analysis > SQL' 카테고리의 다른 글
[HackerRank] Population Census (MySQL) (0) | 2022.08.29 |
---|---|
[HackerRank] Weather Observation Station 20 (MySQL) (0) | 2022.08.22 |
[HackerRank] Weather Observation Station 18 (MySQL) (0) | 2022.08.22 |
[HackerRank] Weather Observation Station 17 (MySQL) (0) | 2022.08.16 |
[HackerRank] Weather Observation Station 16 (MySQL) (0) | 2022.08.16 |
Comments