8000 programmers · KanuKim97/Algorithm@601c579 · GitHub
[go: up one dir, main page]

Skip to content

Commit 601c579

Browse files
committed
programmers
1 parent 177efb5 commit 601c579

10 files changed

+28
-0
lines changed

Programmers/level0/두 수의 곱.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def solution(num1, num2):
2+
return num1 * num2
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def solution(num1, num2):
2+
return int((num1 / num2) * 1000)

Programmers/level0/두 수의 차.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def solution(num1, num2):
2+
return num1 - num2

Programmers/level0/두 수의 합.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def solution(num1, num2):
2+
return num1 + num2

Programmers/level0/몫 구하기.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def solution(num1, num2):
2+
return num1 // num2
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
def solution(numbers):
2+
answer = []
3+
for i in numbers:
4+
answer.append(i*2)
5+
return answer
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
def solution(num1, num2):
2+
if num1 == num2:
3+
return 1
4+
return -1
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SELECT FACTORY_ID, FACTORY_NAME, ADDRESS
2+
FROM FOOD_FACTORY
3+
WHERE ADDRESS LIKE '강원도%'
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SELECT FLAVOR
2+
FROM FIRST_HALF
3+
ORDER BY TOTAL_ORDER DESC, SHIPMENT_ID
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SELECT COUNT(USER_ID) AS USERS
2+
FROM USER_INFO
3+
WHERE AGE >= 20 AND AGE <= 29 AND JOINED LIKE '2021%'

0 commit comments

Comments
 (0)
0