백준2316 [백준/파이썬] 32458번 Just Round Down -Codeprint(int(float(input()))) 2024. 10. 7. [백준/파이썬] 32384번 사랑은 고려대입니다 -Codeprint(*["LoveisKoreaUniversity" for _ in range(int(input()))]) 2024. 10. 6. [백준/파이썬] 29724번 🍎📦 '사과상자'에 들어있는 것은 무엇? 현금? -Codebox, cnt = 0, 0for _ in range(int(input())): box_type, w, h, l = input().split() w, h, l = int(w), int(h), int(l) if box_type == 'A': cnt += (w // 12) * (h // 12) * (l // 12) box += 1000 else: box += 6000box += cnt * 500price = cnt * 4000print(box)print(price) 2024. 10. 5. [백준/파이썬] 14039번 Magic Squares -Codearr1 = []arr2 = []for _ in range(4): li = list(map(int, input().split())) arr1.append(li)for i in range(4): line = [] for j in range(4): line.append(arr1[j][i]) arr2.append(line)res = sum(arr1[0])flag = Truefor i in range(4): if res != sum(arr1[i]) or res != sum(arr2[i]): flag = False breakprint("magic" if flag else "not magic") 2024. 10. 4. [백준/파이썬] 11606번 Egg Drop -Coden, k = map(int, input().split())safe_h, broken_h = 1, kfor i in range(n): h, res = input().split() h = int(h) if res == "SAFE": safe_h = max(h, safe_h) else: broken_h = min(h, broken_h)print(safe_h + 1, broken_h - 1) 2024. 10. 3. [백준/파이썬] 24805번 Climbing Worm a, b, h = map(int, input().split())now_h, res = 0, 0while True: now_h += a res += 1 if now_h >= h: print(res) break now_h -= b 2024. 10. 2. 이전 1 ··· 13 14 15 16 17 18 19 ··· 386 다음