파이썬2187 [백준/파이썬] 25278번 Terraforming -Codetemp, oxy, oce = -30, 0, 0for _ in range(int(input())): type, change = input().split() change = int(change[1]) if type == "temperature": temp += change elif type == "oxygen": oxy += change elif type == "ocean": oce += changeprint("liveable" if temp >= 8 and oxy >= 14 and oce >= 9 else "not liveable") 2024. 12. 11. [백준/파이썬] 32800번 Bus Assignment -Codefrom sys import stdininput = stdin.readlinepassengers = 0res = 0for _ in range(int(input())): a, b = map(int, input().split()) passengers = passengers - a + b res = max(res, passengers)print(res) 2024. 12. 10. [백준/파이썬] 32929번 UOS 문자열 -Codeprint("UOS"[int(input()) % 3 - 1]) 2024. 12. 9. [백준/파이썬] 32777번 가희와 서울 지하철 2호선 - Codedef solution(n1, n2): out = (n1 - n2 + 43) % 43 inner = (n2 - n1 + 43) % 43 if out > inner: return "Inner circle line" return "Outer circle line"for _ in range(int(input())): a, b = map(int, input().split()) print(solution(a, b)) 2024. 12. 8. [백준/파이썬] 32905번 RACI -Coden, m = map(int, input().split())flag = Truefor _ in range(n): line = list(input().split()) if line.count("A") != 1: flag = Falseprint("Yes" if flag else "No") 2024. 12. 7. [백준/파이썬] 32866번 코인의 신 건모 -Coden = int(input())x = int(input())res = n / (n - n * (x / 100)) - 1print(round(res * 100, 7)) 2024. 12. 6. 이전 1 ··· 8 9 10 11 12 13 14 ··· 365 다음