본문 바로가기
728x90
반응형

분류 전체보기162

Spring boot 3.0 + S3 서비스 적용 By Spring Cloud for AWS Spring Cloud AWS Spring Cloud for AWS 공식문서 https://spring.io/projects/spring-cloud-aws Spring Cloud for Amazon Web Services Spring Cloud for Amazon Web Services is a community-run project. The website is https://awspring.io/ and the source repository is located at https://github.com/awspring/spring-cloud-aws. Spring Cloud for Amazon Web Services, eases the integration with host spring.io 공식문서에 들.. 2023. 6. 6.
AWS S3, 버킷 Bucket, 객체 Object, 버전 관리, 요금 및 기본 가이드 What is AWS S3? 공식문서에는 AWS S3를 이렇게 소개하고 있다. Amazon Simple Storage Service (Amazon S3) is an object storage service that offers industry-leading scalability, data availability, security, and performance. Scalability 확장성, Data Availabilty 데이터 가용성, Security 보안, Performance 성능을 제공하는 객체 스토리지 서비스. S3 공식문서 https://docs.aws.amazon.com/AmazonS3/latest/userguide/Welcome.html What is Amazon S3? - Amazon Si.. 2023. 6. 4.
나동빈 유튜브 예제 문제 *업데이트 중 그리디 알고리즘 1이 될 때까지 import sys a, b = map(int, sys.stdin.readline().split()) cnt = 0 while True: if a % b != 0: a = a - 1 cnt += 1 else: a = a // b cnt += 1 if a == 1: break print(cnt) 곱하기 혹은 더하기 import sys word = sys.stdin.readline() answer = int(word[0]) for i in range(1, len(word)-1): if int(word[i-1]) a or nx < 1 or ny < 1: continue x, y = nx, ny print(x, y) x, y축이 반대임. 2023. 6. 2.
백준 2559(시간 초과 나기 쉬운 문제) 처음 시도한 코드(시간 초과) a, b = map(int, input().split()) temp = list(map(int, input().split())) number = [] num = 0 for i in range(len(temp)): for j in range(i, i + b): if i + b > a: break num += temp[j] number.append(num) num = 0 number.pop(a-1) print(max(number)) 두 번째 시도한 코드(시간 초과) import sys a, b = map(int, sys.stdin.readline().split()) temp = list(map(int, sys.stdin.readline().rstrip().split())) ma.. 2023. 6. 2.
백준 12865 코드 n, m = map(int, input().split()) product = [list(map(int, input().split())) for _ in range(n)] # 가치 계산하기 values = [0] * n # 무게 계산하기 weights = [0] * n # 무게, 가치 값 초기화 for i in range(n): weights[i] = product[i][0] values[i] = product[i][1] # dp def dp(n, m, weights, values): dp = [[0] * (m+1) for _ in range(n+1)] for i in range(1, n+1): weight = weights[i-1] value = values[i-1] for j in range(1,.. 2023. 5. 24.
백준 11048 코드 n, m = map(int, input().split()) candies = [list(map(int, input().split())) for i in range(n)] # 1, 1부터 시작이므로 1 더 큰 2차원 배열 생성 result = [[0] * (m+1) for i in range(n+1)] for x in range(1, n+1): for y in range(1, m+1): result[x][y] = max(result[x-1][y], result[x][y-1], result[x-1][y-1]) + candies[x-1][y-1] print(result[n][m]) 2023. 5. 24.
728x90
반응형