Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 리덕스장바구니
- Spring
- 정렬
- 분할메모리할당
- codeup
- web
- 공부
- memory
- error
- 협업
- 파이썬
- react
- 백준
- 일상
- CPU 스케줄링
- 코드업
- react-redux
- 타입스크립트
- OS
- js to ts
- 프로그래머스
- 스프링
- 알고리즘
- 토이프로젝트
- Operating System
- 기초100제
- Redux
- 자료구조
- Java
- C++
Archives
- Today
- Total
목록1932 (1)
감자튀김 공장🍟

✔ 문제 ✔ 풀이 import sys input = sys.stdin.readline n = int(input()) tri = [] for _ in range(n): tri.append(list(map(int, input().split()))) for i in range(1, n): for j in range(len(tri[i])): if j == 0: # 가장 왼쪽인 경우 tri[i][j] = tri[i-1][j] + tri[i][j] elif j == len(tri[i]) - 1: # 가장 오른쪽인 경우 tri[i][j] = tri[i-1][j-1] + tri[i][j] else: tri[i][j] = max(tri[i-1][j-1], tri[i-1][j]) + tri[i][j] print(max(t..
Algorithm/BOJ
2023. 2. 14. 22:08