Beakjoon&프로그래머스/파이썬2201 [백준/파이썬] 33528번 Alphabetic Shift -Codealpa = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"line = input()for i in range(26): res = "" for w in line: res += alpa[(ord(w) - 65 - i) % 26] print(res) 2025. 2. 20. [백준/파이썬] 33026번 LOL Lovers -Coden = int(input())line = input()res = -1for i in range(1, n): flag1 = line[:i].count("L") != line[i:].count("L") flag2 = line[:i].count("O") != line[i:].count("O") if flag1 and flag2: res = i breakprint(res) 2025. 2. 18. [백준/파이썬] 29133번 Фома и занимательная математика -Codea, b, c, d = map(int, input().split())res = []for x in range(1, 4): now = a ** x + b ** x + c ** x if now == d: res.append(x)print(res[0] if len(res) == 1 else -1) 2025. 2. 17. [백준/파이썬] 27222번 Штангист -Coden = int(input())n_list = list(map(int, input().split()))res = 0for i in range(n): x, y = map(int, input().split()) if n_list[i]: res += y - x if y - x > 0 else 0print(res) 2025. 2. 16. [백준/파이썬] 33171번 어느 한쪽 (Either, but Not Both) -Coden = int(input())a = int(input())b = int(input())res = 0for i in range(1, n + 1): if i % a == 0 and i % b == 0: continue if i % a == 0 or i % b == 0: res += 1print(res) 2025. 2. 15. [백준/파이썬] 33249번 Circus Tent -Codefrom math import pid, h = map(float, input().split())r = d / 2 + 5print(pi * r ** 2 + 2 * pi * r * h) 2025. 2. 14. 이전 1 2 3 4 ··· 367 다음