Skip to content

Latest commit

ย 

History

History

P1463

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
ย 
ย 
ย 
ย 

[baekjoon-1463] 1๋กœ ๋งŒ๋“ค๊ธฐ

image

์ ํ™”์‹

dp[1] = 0
dp[n] = Math.min(dp[n-1], dp[n/2], dp[n/3]) + 1
// n/2, n/3์€ ๋‚˜๋ˆ„์–ด ๋–จ์–ด์ง€๋Š”์ง€ ํ™•์ธ