
소스코드 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 import sys loop = int(sys.stdin.readline()) result = [ [0]*i for i in range(1, loop+1)] index = 0 for n in range(loop): x = list(map(int, sys.stdin.readline().split())) if n == 0: result[0][0] = x[0] continue for i in range(len(x)): if i == 0: result[n][0] = result[n-1][0] + x[0] elif i == len(x)-1: result[n][i] = result[n-1][i-1] + x..

소스코드 1 2 3 4 5 6 7 8 9 10 11 12 13 import sys loop = int(sys.stdin.readline()) result = [[0]*loop for i in range(3)] for i in range(loop): x = list(map(int, sys.stdin.readline().split())) result[0][i] = min(result[1][i-1], result[2][i-1]) + x[0] result[1][i] = min(result[0][i-1], result[2][i-1]) + x[1] result[2][i] = min(result[0][i-1], result[1][i-1]) + x[2] print(min(result[0][loop-1], result[..
- Total
- Today
- Yesterday
- Server runtime environment
- @Controller
- not supported
- Project facet Java version 10 is not supported
- project facet
- DP
- ConnectionPool
- baekjoon
- session-timeout
- @RequestMapping
- @Component
- java version
- java
- 다이나믹 프로그램
- SESSION
- tomcat
- 스택
- @Service
- @Repository
- 그리디
- angular
- @ModelAttribute
- 다이나믹 프로그래밍
- Persistence
- Stack
- @RequestParam
- 내장 객체
- python3
- @Autowired
- Project facet Java version
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |