목록Python Algorithm (133)
cool hamsters never sleep
백준 10156. 과자
k, n, m = map(int,input().split()) if ((k*n)-m) > 0 : print((k*n)-m) else : print(0)
Python Algorithm
2022. 9. 6. 11:03
백준 10699. 오늘 날짜
from datetime import datetime print(datetime.today().date())
Python Algorithm
2022. 9. 5. 16:13
백준 2914. 소음
a = int(input()) b = input() c = int(input()) if b == "*" : print(a*c) else : print(a+c)
Python Algorithm
2022. 9. 5. 11:06
백준 3046. R2
a, b = map(int, input().split()) c = 2*b - a print(c)
Python Algorithm
2022. 9. 4. 03:46
백준 1139. 분수 찾기
x = int(input()) line = 1 while x > line : x = x - line line = line + 1 if line % 2 == 0 : a = x b = line - x + 1 else : a = line - x + 1 b = x print(a, "/", b, sep = "") 구분자 sep a = hi b = love print(a, b) # hi love print(a, b, sep = "") # hilove print(a, b, sep = "_") # hi_love
Python Algorithm
2022. 9. 3. 18:20
백준 10870. 피보나치 수 5
def fibo(n) : if n
Python Algorithm
2022. 9. 2. 23:13