본문 바로가기

전체 글738

[HackerRank] Weather Observation Station 4 [MySQL] 풀이 STATION 테이블의 전체 CITY 항목에서 고유한 CITY의 갯수를 제외한 값을 출력해야 한다.소스코드보기출처 Weather Observation Station 4 | HackerRankFind the number of duplicate CITY names in STATION.www.hackerrank.com 2024. 7. 5.
[백준 05753] Pascal Library [Python] 문제Pascal University, one of the oldest in the country, needs to renovate its Library Building, because after all these centuries the building started to show the effects of supporting the weight of the enormous amount of books it houses.To help in the renovation, the Alumni Association of the University decided to organize a series of fund-raising dinners, for which all alumni were invited. Thes.. 2024. 7. 5.
[HackerRank] Weather Observation Station 3 [MySQL] 풀이STATION테이블에서 ID가 짝수인 행에 대해 CITY를 출력하면 된다.중복된 CITY가 없도록 해야 하므로 결과에 DISTINCT를 붙여주자.소스코드보기출처 Weather Observation Station 3 | HackerRankQuery a list of unique CITY names with even ID numbers.www.hackerrank.com 2024. 7. 5.
[백준 05751] Head or Tail [Python] 문제John and Mary have been friends since nursery school. Since then, they have shared a playful routine: every time they meet, they play Head or Tail with a coin, and whoever wins has the privilege of deciding what they are going to play during the day. Mary always choose Head, and John always choose Tail.Nowadays they are in college, but continue being truly good friends. Whenever they meet, the.. 2024. 7. 5.
[HackerRank] Weather Observation Station 1 [MySQL] 풀이STATION 테이블에서 모든 행의 CITY와 STATE 속성을 출력하면 된다.소스코드보기출처 Weather Observation Station 1 | HackerRankWrite a query to print the CITY and STATE for each attribute in the STATION table.www.hackerrank.com 2024. 7. 4.
[백준 05724] 파인만 [Python] 문제리처드 필립스 파인만은 노벨 물리학상을 수상한 미국의 물리학자이다. 그는 이론물리학을 연구했고, 양자 컴퓨팅 분야를 개척했다. "Surely You’re Joking, Mr. Feynman!", "What Do You Care What Other People Think?"와 같은 그의 책은 많은 사람들의 사랑을 받았고, 한국에도 번역되어 출판되어져 있다. 그는 오랜 기간동안 퍼즐, 자물쇠, 암호를 만들고 푸는 일에 중독되어 있었다. 어느 날, 남아메리카의 한 농장에서 파인먼의 것으로 추정되는 한 메모가 발견되었다. 퍼즐은 이 메모에는 중간자와 전자기에 대한 내용이 적혀있었고, 가장 마지막 줄에는 다음과 같은 퀴즈가 적혀져 있었다. "N × N 정사각형으로 이루어진 그리드에는 서로 다른 정사각형이 몇 .. 2024. 7. 4.