Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- 프로그래머스
- 백준 N과 M 자바
- java
- 프로그래머스 자바
- COS Pro
- Queue
- 스택
- 스프링부트 도커로 배포
- 프로그래머스 문자열 정렬
- 백준
- Lv1
- lv2
- 버퍼
- 문자열
- Programmers
- index of
- 오름차순 정렬
- 프로그래머스 풀이
- 클라이언트
- 자바
- 알고리즘
- 삼각형의 완성조건
- 스프링부트 도커
- 이진수 변환
- Stack
- StringTokenizer
- lv0
- SWEA
- 큐
- 스프링부트 도커 배포
Archives
- Today
- Total
mun dev
[HackerRank] Average Population 오라클 풀이 본문
문제링크
Average Population | HackerRank
Query the average population of all cities, rounded down to the nearest integer.
www.hackerrank.com
풀이
문제 조건에 따라 인구의 평균을 구하고, round 함수를 사용해 내림한다.
코드
select round(avg(population),-1)
from city
'알고리즘 > HackerRank' 카테고리의 다른 글
[HackerRank] The Blunder 오라클 풀이 (1) | 2024.01.30 |
---|---|
[HackerRank] Japan Population 오라클 풀이 (0) | 2024.01.30 |
[HackerRank] Revising Aggregations - The Count Function 오라클 풀이 (0) | 2024.01.30 |
[HackerRank] Type of Triangle 오라클 풀이 (0) | 2024.01.30 |
[HackerRank] Employee Salaries 오라클 풀이 (0) | 2024.01.29 |