Algorithm (131) 썸네일형 리스트형 [해커랭크(HackerRank)] Weather Observation Station 5 (MySQL) 문제 Query the two cities in STATION with the shortest and longest CITY names, as well as their respective lengths (i.e.: number of characters in the name). If there is more than one smallest or largest city, choose the one that comes first when ordered alphabetically. The STATION table is described as follows: 코드 Select city, length(city) From Station Order by length(city), city Limit 1; Select c.. [해커랭크(HackerRank)] Japanese Cities' Names (MySQL) 문제 Query the names of all the Japanese cities in the CITY table. The COUNTRYCODE for Japan is JPN. The CITY table is described as follows: 코드 Select name From City Where countrycode = 'JPN' CITY 테이블에서 이본 도시의 이름을 모두 출력 출처 [해커랭크(HackerRank)] Japanese Cities' Attributes (MySQL) 문제 Query all attributes of every Japanese city in the CITY table. The COUNTRYCODE for Japan is JPN. The CITY table is described as follows: 코드 Select * From City Where countrycode = 'JPN' City 테이블의 모든 일본 도시의 모든 속성을 출력 일본의 COUNTRYCODE = 'JPN' 출처 [백준알고리즘] 2914번 저작권 (Python) 문제 창영이는 노래 여러 개를 이어서 부르는 가수이다. 유명한 노래의 비슷한 멜로디를 이어서 부르면서 언제 곡이 넘어갔는지 모르게 만드는 것이 창영이 노래의 특징이다. 이런 노래로 상업적으로 엄청난 성공을 거둔 창영이에게 큰 시련이 찾아왔다. 그것은 바로 저작권이었다. 창영이의 노래에 포함되어 있는 멜로디는 모두 저작권이 다른 사람에게 있는 노래이다. 따라서, 이 음악으로 상업적인 활동을 했기 때문에, 저작권 협회에 저작권료를 내야한다. 창영이는 자신의 앨범에 포함되어있는 저작권이 있는 멜로디의 평균값을 구해보기로 했다. 이 값은 아래와 같이 구할 수 있다. (창영이 앨범에 수록된 곡에 포함되어 있는 저작권이 있는 멜로디의 개수) / (앨범에 수록된 곡의 개수) 이때, 평균값은 항상 올림을 해서 정수로 .. 이전 1 ··· 13 14 15 16 17 18 19 ··· 33 다음