Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
22 changes: 12 additions & 10 deletions 1주차/10818_최소,최대.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
num = int(input()) #4
num2 = list(map(int, input().split()))
max = num2[0]
min = num2[0]
for i in num2[1:]:
if i>max:
max = i
elif i < min:
min = i
cnt = int(input())
num_list = list(map(int,input().split()))

print(min,max)
min = num_list[0]
max = num_list[0]

for i in range(cnt):
if max<num_list[i]:
max = num_list[i]

elif min>num_list[i]:
min = num_list[i]

print(min,max)
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions 1주차/10953-A+B-6.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
T = int(input())

for i in range(T):
A,B = map(int,input().split(','))
print(A+B)
3 changes: 3 additions & 0 deletions 1주차/10991-별 찍기-16.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
n = int(input())
for i in range(1,n+1):
print(" " * (n-i) + "* " * (i-1) + "*")
3 changes: 3 additions & 0 deletions 1주차/10992-별 찍기-17.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
n = int(input())
for i in range(1,n+1):
print(" " * (n-i) + "* " * (i-1) + "*")
4 changes: 4 additions & 0 deletions 1주차/11021-A+B-7.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
T = int(input())
for i in range(1,T+1):
a,b = map(int,input().split())
print('Case #'+str(i)+':',a+b)
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
while True :
while True:
try:
x = input()
if len(x) == 0 :
break
print(x)
except:
break
6 changes: 6 additions & 0 deletions 1주차/11719-그대로 출력하기2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
while True:
try:
string = input()
print(string)
except:
break
4 changes: 4 additions & 0 deletions 1주차/11720-숫자의 합.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
num = input()
numbers = list(map(int,input()))

print(sum(numbers))
4 changes: 4 additions & 0 deletions 1주차/11721-열 개씩 끊어 출력하기.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
n=input()

for i in range(0,len(n),10):
print(n[i:i+10])
12 changes: 12 additions & 0 deletions 1주차/1924-2007년.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
day = 0
month = [31,28,31,30,31,30,31,31,30,31,30,31]
week = ["SUN","MON","TUE","WED","THU","FRI","SAT"]

x,y = map(int,input().split())

for i in range(x-1):
day += month[i]

day = (day+y)%7

print(week[day])
5 changes: 0 additions & 5 deletions 1주차/1924_2007년.py

This file was deleted.

4 changes: 4 additions & 0 deletions 1주차/2438-별 찍기-1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cnt = int(input())

for i in range(1,cnt+1):
print("*"*i)
3 changes: 0 additions & 3 deletions 1주차/2438_별찍기-1.py

This file was deleted.

4 changes: 4 additions & 0 deletions 1주차/2439-별 찍기-2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cnt = int(input())

for i in range(1,cnt+1):
print(' '*(cnt-i)+str('*')*i)
3 changes: 0 additions & 3 deletions 1주차/2439_별찍기-2.py

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cnt = int(input())

for i in range(cnt,0,-1):
print('*'*i)
File renamed without changes.
4 changes: 4 additions & 0 deletions 1주차/2442-별 찍기-5.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cnt = int(input())

for i in range(1,cnt+1):
print(' '*(cnt-i)+str('*')*(2*i-1))
3 changes: 0 additions & 3 deletions 1주차/2442_별찍기-5.py

This file was deleted.

7 changes: 7 additions & 0 deletions 1주차/2445-별 찍기-8.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
cnt = int(input())

for i in range(1,cnt+1):
print("*"*i+str(' ')*(2*cnt-2*i)+str('*')*i)

for j in range(cnt-1,0,-1):
print('*'*j+str(' ')*(2*(cnt-j))+str('*')*j)
5 changes: 0 additions & 5 deletions 1주차/2445-별찍기.py

This file was deleted.

7 changes: 7 additions & 0 deletions 1주차/2446-별 찍기-9.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
cnt = int(input())

for i in range(cnt,0,-1):
print(str(' ')*(cnt-i)+str('*')*(2*i-1))

for j in range(2,cnt+1):
print(str(' ')*(cnt-j)+str('*')*(2*j-1))
5 changes: 0 additions & 5 deletions 1주차/2446-별찍기.py

This file was deleted.

7 changes: 7 additions & 0 deletions 1주차/2522-별 찍기-12.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
cnt = int(input())

for i in range(1,cnt+1):
print(' '*(cnt-i)+str('*')*i)

for j in range(cnt-1,0,-1):
print(' '*(cnt-j)+str('*')*j)
1 change: 1 addition & 0 deletions 1주차/2557_Hello World.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print("Hello World!")
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 0 additions & 3 deletions 1주차/숫자의합.py

This file was deleted.