백준2353 [백준/파이썬] 18228번 펭귄추락대책위원회 -Coden = int(input())ice = list(map(int, input().split()))penguin = ice.index(-1)left = min(ice[:penguin])right = min(ice[penguin + 1:])print(left + right) 2024. 5. 29. [백준/파이썬] 27058번 Message Decowding -Codekey = input()message = input()res = ""for w in message: if w.isalpha(): if w.isupper() and w.lower() in key: res += key[ord(w.lower()) - 97].upper() else: res += key[ord(w) - 97] else: res += wprint(res) 2024. 5. 28. [백준/파이썬] 31922번 이 대회는 이제 제 겁니다 -Codea, p, c = map(int, input().split())print(a + c if a + c > p else p) 2024. 5. 27. [백준/파이썬] 24830번 Broken Calculator -Codetemp = 1for _ in range(int(input())): a, op, b = input().split() a, b = int(a), int(b) if op == "+": temp = a + b - temp elif op == "-": temp = (a - b) * temp elif op == "*": temp = (a * b) ** 2 else: temp = (a + 1) // 2 if a % 2 == 1 else a // 2 print(temp) 2024. 5. 26. [백준/파이썬] 26535번 Chicken Pen -Codefrom math import sqrt, ceiln = int(input())k = ceil(sqrt(n))print('x' * (k + 2))for _ in range(k): print('x' + '.' * k + 'x')print('x' * (k + 2)) 2024. 5. 25. [백준/파이썬] 29602번 Расписание -Coden = int(input())nums = list(map(int, input().split()))arr = []res = [0] * nfor i in range(n): arr.append([nums[i], i])arr.sort()for i in range(1, n + 1): res[arr[i - 1][1]] = iprint(*res) 2024. 5. 24. 이전 1 ··· 41 42 43 44 45 46 47 ··· 393 다음