백준2319 [백준/파이썬] 5340번 Secret Location -Coderes = []for _ in range(6): line = input().rstrip() res.append(len(line))print(f"Latitude {res[0]}:{res[1]}:{res[2]}")print(f"Longitude {res[3]}:{res[4]}:{res[5]}") 2024. 8. 29. [백준/파이썬] 9771번 Word Searching -Codew = input()res = 0while True: try: s = input() res += s.count(w) except: breakprint(res) 2024. 8. 28. [백준/파이썬] 6903번 Trident -Codet = int(input())s = int(input())h = int(input())for _ in range(t): print('*' + ' ' * s + '*' + ' ' * s + '*')print('*' * (3 + s * 2))for _ in range(h): print(' ' * (1 + s) + '*') 2024. 8. 27. [백준/파이썬] 6190번 Another Cow Number Game -Coden = int(input())cnt = 0while n > 1: if n % 2 == 0: n = n // 2 else: n = n * 3 + 1 cnt += 1print(cnt) 2024. 8. 26. [백준/파이썬] 6975번 Deficient, Perfect, and Abundant -Codefor _ in range(int(input())): n = int(input()) measure = [] for i in range(1, n // 2 + 1): if n % i == 0: measure.append(i) sum_measure = sum(measure) res = "is a perfect number." if sum_measure > n: res = "is an abundant number." elif sum_measure 2024. 8. 25. [백준/파이썬] 27512번 스네이크 -Coden, m = map(int, input().split())print(n * m - 1 if n % 2 and m % 2 else n * m) 2024. 8. 24. 이전 1 ··· 20 21 22 23 24 25 26 ··· 387 다음