Python/백준62 백준 - 1357 뒤집힌 덧셈 a, b = input().split() a = list(a) b = list(b) if len(a) < 2: a.append('0') a.append('0') a.append('0') elif 2 2022. 9. 28. 백준 - 5585 거스름돈 money = int(input()) count = 0 charge = [500, 100, 50, 10, 5, 1] a = 1000-money for i in charge: if a > 0: count += a // i a = a % i print(count) 2022. 9. 27. 백준 - 1712 손익분기점 a, b, c = map(int, input().split()) if b >= c: print(-1) else: print(a//(c-b)+1) 2022. 9. 26. 10990 - 별찍기 15 n = int(input()) if n == 1: print("*") else: print((n-1)*" "+"*") for i in range(2, n+1): print((n-i)*" "+"*"+" "*(2*i-3)+"*") 2022. 9. 24. 이전 1 ··· 4 5 6 7 8 9 10 ··· 16 다음