백준2336 [백준/파이썬] 23276번 Locust Locus -Codefrom math import lcmres = 1e9for _ in range(int(input())): y, c1, c2 = map(int, input().split()) res = min(y + lcm(c1, c2), res)print(res) 2024. 8. 10. [백준/파이썬] 11434번 Ampelmännchen -Codefor t in range(int(input())): n, w, e = map(int, input().split()) res = 0 for _ in range(n): ww, we, ew, ee = map(int, input().split()) res += max(w * ww + e * ew, w * we + e * ee) print(f"Data Set {t + 1}:") print(res) print() 2024. 8. 9. [백준/파이썬] 9253번 Negative People in Da House -Codefor _ in range(int(input())): res, now = 0, 0 for _ in range(int(input())): p1, p2 = map(int, input().split()) now = now - p1 + p2 res = max(res, now) print(res) 2024. 8. 8. [백준/파이썬] 9253번 스페셜 저지 -Codea = input()b = input()s = input()print("YES" if s in a and s in b else "NO") 2024. 8. 7. [백준/파이썬] 29614번 학점계산프로그램 -Codegrade = { "A+": 4.5, "A": 4.0, "B+": 3.5, "B": 3.0, "C+": 2.5, "C": 2.0, "D+": 1.5, "D": 1.0, "F": 0.0}s = input()res = []for i in range(len(s)): if s[i] == "+": continue if i + 1 2024. 8. 6. [백준/파이썬] 12780번 원피스 -Codeh = input()n = input()print(h.count(n)) 2024. 8. 5. 이전 1 ··· 26 27 28 29 30 31 32 ··· 390 다음