Python45 197. Rising Temperature Table: Weather+---------------+---------+| Column Name | Type |+---------------+---------+| id | int || recordDate | date || temperature | int |+---------------+---------+id is the column with unique values for this table.There are no different rows with the same recordDate.This table contains information about the temperature on a certain day. Write a solution to.. 2025. 3. 13. 584. Find Customer Referee Table: Customer +-------------+---------+ | Column Name | Type | +-------------+---------+ | id | int | | name | varchar | | referee_id | int | +-------------+---------+In SQL, id is the primary key column for this table. Each row of this table indicates the id of a customer, their name, and the id of the customer who referred them. Find the names of the customer th.. 2025. 3. 13. 181. Employees Earning More Than Their Managers Table: Employee+-------------+---------+| Column Name | Type |+-------------+---------+| id | int || name | varchar || salary | int || managerId | int |+-------------+---------+id is the primary key (column with unique values) for this table.Each row of this table indicates the ID of an employee, their name, salary, and the ID of their manager. Write a solut.. 2025. 3. 12. 176. Second Highest Salary 문제 : 표에서 두 번째로 높은 고유한 급여를 찾는 솔루션을 작성해라 employee. 두 번째로 높은 급여가 없으면 null(return None in Pandas) 을 반환한다. Table: Employee+-------------+------+| Column Name | Type |+-------------+------+| id | int || salary | int |+-------------+------+id is the primary key (column with unique values) for this table.Each row of this table contains information about the salary of an employee. Write a.. 2025. 3. 12. 배열 - 배열채우기 문제 :10개의 정수 저장할 수 있는 배열선언 후, 10개의 정수를 차례로 받음. 만약 중간에 0이 입력되면 10개 입력이끝나지 않더라도 입력을 종료함. 그 후 입력된 정수를 가장 나중에 입력된 정수부터 차례대로 출력하는 프로그램을 작성해라. 단, 처음부터 0이 주어지는 경우는 고려하지 않아도 됨. ex) 3 1 13 5 83 0 83 5 13 1 3 1) 첫번째 행을 리스트로 받기 2) 0이 입력되기 전까지의 값들을 받을 빈 리스트 생성 3) for문으로 리스트 값 하나하나를 0인지 또는 전체 입력의 갯수가 10개인지확인 4) 2)에서 생성한 리스트에 append 하여 값을 대입 5) 2)에서 생성한 리스트를 slicing을 이용해 [::-1]로 뒤집어서 출력 arr = list(map(int, inp.. 2025. 3. 4. 배열 - 학점계산기 과목 수 N이 첫번째 줄에 정수로 주어지고 두 번째 줄에는 N개의 과목 학점을 공백을 사이에 두고 입력받음 10과목 학점들의 평균이 4.0이상이면 Perfect, 3.0이상이면 Good, 3.0미만이면 Poor를 출력하라. 단, 첫번째 줄에는 평균학점을 반올림하여 소수 첫째 자리까지 출력을, 두번째 줄에는 평균 학점에 해당하는 등급을 출력해라. ex) 입력 4 3.0 2.8 4.0 3.5 출력 3.3 Good * 소숫점을 print 할 때 다르게 표기하고 싶다면 print(f"{sum_val} {avg :.1f}") 처럼 : . 1f를 {}안에 입력해줘야한다.(단, .1앞에 띄어쓰기가 안오도록 주의)> 이때 avg 변수는 소숫점 1자리까지만 보여준다. * sum() : 리스트 안의 원소의 합은 sum.. 2025. 3. 4. 이전 1 2 3 4 ··· 8 다음