파이썬2195 [백준/파이썬] 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. [백준/파이썬] 24197번 Tabbtabbande -Coden, m = map(int, input().split())position = list(map(int, input().split()))now, res = 1, 0for p in position: res += min((now - p + n) % n, (p - now + n) % n) now = pprint(res) 2024. 8. 4. [백준/파이썬] 23275번 Knot Knowledge -Coden = int(input())x_list = list(map(int, input().split()))y_list = list(map(int, input().split()))for x in x_list: if x not in y_list: print(x) break 2024. 8. 3. [백준/파이썬] 29097번 Короли -Codeli = list(map(int, input().split()))res = [li[i] * li[i + 3] for i in range(3)]names = ["Joffrey", "Robb", "Stannis"]for i in range(3): if max(res) == res[i]: print(names[i], end=" ") 2024. 8. 2. [백준/파이썬] 11880번 개미 -Codefrom sys import stdininput = stdin.readlinefor _ in range(int(input())): line = list(map(int, input().split())) res = [] for i in range(3): res.append(line[i] ** 2 + (sum(line) - line[i]) ** 2) print(min(res)) 2024. 8. 1. 이전 1 ··· 30 31 32 33 34 35 36 ··· 366 다음