Skip to content

Latest commit

Β 

History

History

P13398

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Β 
Β 
Β 
Β 
Β 
Β 

[baekjoon-13398] 연속합 2

image

점화식

dp[0][0] = dp[0][1] = arr[0];
dp[n][0] = Math.max(dp[n-1][0], 0) + arr[n];
dp[n][1] = Math.max(dp[n-1][0], dp[n-1][1] + arr[n]);

IMG_BEB4BBF853D3-1

ν›„μ•„.. ν•œμ°Έμ„ 헀맨 λ¬Έμ œλ‹€. μ„±μž₯ν•˜μž !!!