728x90 반응형 SMALL 백준문제105 백준) 30468번 - python a =list(map(int,input().split())) print(0 if sum(a[0:4]) / len(a[0:4]) >=a[-1] else a[-1] * 4 - sum(a[0:-1])) 2024. 5. 5. 백준) 30794번 - python hit = {"miss" : 0, "bad" : 200, "cool" : 400, "great" : 600, "perfect" : 1000} node ,result = input().split() node, answer = int(node), 0 if result in hit.keys(): answer = node * hit[result] print(answer) 2024. 5. 4. 백준) 30008번 - python m, n = map(int, input().split()) o,lst = list(map(int, input().split())),[] for i in range(n): grade = o[i] * 100 // m lst.append( 1 if 0 2024. 5. 3. 백준) 28352번 - python n = int(input()) def factorial(n): if n == 1 : return 1 else : return n * factorial(n-1) week = factorial(n) // (60 * 60 * 24 * 7) print(week) 2024. 5. 2. 이전 1 2 3 4 5 ··· 27 다음 728x90 반응형 LIST