본문 바로가기

백준1056

백준 25024 시간과 날짜 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 def sol1(a,b): if (a>=0 and a=0 and b=1 and b=1 and b= 1 and b 2022. 4. 21.
백준 24079 移動 (Moving) 1 2 3 4 5 x=int(input()) y=int(input()) z=int(input()) if x+y>z : print(0) else : print(1) cs 2022. 4. 12.
백준 알고리즘 수업 - 알고리즘의 수행 시간 1 1 2 print(1) print(0) cs 이 로직은 입력값에 따라 변하는게 없네요 2022. 4. 12.
백준 2139 나는 너가 살아온 날을 알고 있다 1 2 3 4 5 6 7 8 9 from datetime import date def numOfDays(date1, date2): return (date2 - date1).days while 1: d,m,y=map(int, input().split()) if d==0 and m==0 and y==0 :break date1 = date(y, 1, 1) date2 = date(y, m, d) print(numOfDays(date1, date2)+1) cs 2022. 3. 15.
백준 24266 알고리즘 수업 - 알고리즘의 수행 시간 5 1 2 3 n=int(input()) print(n**3) print(3) cs 2022. 3. 14.
백준 24264 알고리즘 수업 - 알고리즘의 수행 시간 3 1 2 3 n=int(input()) print(n**2) print(2) cs 2022. 3. 14.
백준 24263 알고리즘 수업 - 알고리즘의 수행 시간 2 1 2 3 n=int(input()) print(n) print(1) cs 2022. 3. 11.
백준 23810 골뱅이 찍기 - 뒤집힌 ㅋ 1 2 3 4 5 6 7 8 9 10 11 12 def print1(n): for i in range(n): print('@'*n*5) def print2(n): for i in range(n): print('@'*n) n=int(input()) print1(n) print2(n) print1(n) print2(n) print2(n) cs 2022. 3. 11.
백준 23805 골뱅이 찍기 - 돌아간 ㄹ 1 2 3 4 5 6 7 8 9 10 11 12 13 def print1(n): for i in range(n): print('@'*n*3+' '*n+'@'*n) def print2(n): for i in range(n*3): print('@'*n+' '*n+'@'*n+' '*n+'@'*n) def print3(n): for i in range(n): print('@'*n+' '*n+'@'*n*3) n=int(input()) print1(n) print2(n) print3(n) Colored by Color Scripter cs 2022. 3. 11.
백준 14182 Tax 1 2 3 4 5 6 7 8 9 10 def returnIncome(income): if income>5000000 : taxed= int(income*0.2) elif income > 1000000: taxed = int(income * 0.1) else : taxed = 0 return (income-taxed) while 1: income=int(input()) if income==0: break else: print(returnIncome(income)) cs 2022. 3. 11.
백준 23811 골뱅이 찍기 - ㅌ 1 2 3 4 5 6 7 8 9 10 11 12 def print1(n): for i in range (n): print('@' * n) def print2(n): for i in range(n): print('@' * n*5) n=int(input()) print2(n) print1(n) print2(n) print1(n) print2(n) cs 2022. 3. 11.
백준 23812 골뱅이 찍기 - 돌아간 ㅍ 1 2 3 4 5 6 7 8 9 10 11 12 def print1(n): for i in range (n): print('@' * n + " " * 3 * n + '@' * n) def print2(n): for i in range(n): print('@' * n*5) n=int(input()) print1(n) print2(n) print1(n) print2(n) print1(n) Colored by Color Scripter cs 2022. 3. 11.