파이썬2198 [백준/파이썬] 31613번 繰り返し (Repetition) -Codex = int(input())n = int(input())res = 0while x 2024. 5. 5. [백준/파이썬] 29467번 Шифровка -Codes = input()s_list = set()for i in range(len(s)): for j in range(i, len(s) + 1): s_list.add(s[i:j])print(sorted(s_list)[-1]) 2024. 5. 4. [백준/파이썬] 20473번 Гостиница -Codefrom math import ceiln = int(input())x, y = 0, ceil(n / 3)while 2 * x + 3 * y != n: x += 1 y -= 1print(x, y)2인실과 3인실 사용인원이 빈 자리 없이 딱맞는 다는 문장을 못보고 풀어서 몇번 틀렸습니다. 2024. 5. 3. [백준/파이썬] 29220번 Свидание -Codeflag = Falsek = int(input())n = int(input())a_list = list(map(int, input().split()))a_sum = sum(a_list)for a in a_list: if a_sum - a >= k: flag = True breakprint("YES" if flag else "NO") 2024. 5. 2. [백준/파이썬] 25756번 방어율 무시 계산하기 -Coden = int(input())ignore_defence = list(map(int, input().split()))res = 0for posion in ignore_defence: res += (100 - res) * (posion / 100) print(res) 2024. 5. 1. [백준/파이썬] 31776번 예비 소집 결과 보고서 -Coderes = 0for _ in range(int(input())): t = list(map(int, input().split())) if sum(t) == -3: continue for i in range(3): if t[i] == -1: t[i] = 121 if t[0] 2024. 4. 30. 이전 1 ··· 46 47 48 49 50 51 52 ··· 367 다음