백준2318 [백준/파이썬] 32215번 코드마스터 2024 -Coden, m, k = map(int, input().split())print(m * (k + 1)) 2024. 9. 10. [백준/파이썬] 28464번 Potato -Codefrom sys import stdinn = int(stdin.readline())french_fries = sorted(list(map(int, stdin.readline().split())))sung, park = sum(french_fries[:n // 2]), sum(french_fries[n // 2:])print(sung, park) 2024. 9. 9. [백준/파이썬] 10101번 삼각형 외우기 -Codea = int(input())b = int(input())c = int(input())if a + b + c == 180: if a == b == c: print("Equilateral") elif a == b or a == c or b == c: print("Isosceles") else: print("Scalene")else: print("Error") 2024. 9. 7. [백준/파이썬] 15838번 Wak Sani Satay -Codet = 1while True: n = int(input()) if n == 0: break res = 0 for _ in range(n): c, b, l, n = map(int, input().split()) c_kg, b_kg, l_kg = c / 85, b / 85, l / 85 res += c * 0.8 + b + l * 1.2 + n * 0.8 res -= (15.5 * c_kg + 32 * b_kg + 40 * l_kg + 0.2 * n) print(f"Case #{t}: RM{res:0.2f}") t += 1 2024. 9. 6. [백준/파이썬] 9949번 Hide those Letters -Codet = 1while True: words = list(input().split()) if words[0] == words[1] == '#': break print(f"Case {t}") for _ in range(int(input())): line = list(input()) for i in range(len(line)): if line[i].lower() in words: line[i] = '_' print(*line, sep='') print() t += 1 2024. 9. 5. [백준/파이썬] 18309번 Extreme Temperatures -Codemin_res, max_res = 100, -100while True: try: data = list(map(int, list(input().split())[1:])) min_res = min(min(data), min_res) max_res = max(max(data), max_res) except: breakprint(f"{min_res} {max_res}") 2024. 9. 4. 이전 1 ··· 18 19 20 21 22 23 24 ··· 387 다음