650. 2 Keys Keyboard
## 思路
兩層for-loop更新DP
dp[j] = min(dp[j], dp[i] + step)
step = copy&paste次數
## Code
```python
class Solution:
def minSteps(self, n: int) -> int:
if n == 1:
return 0
dp = list(range(1+n))
for i in range(2, 1 + n//2):
step = 1 # copy
for j in range(i+i, 1+n, i):
step += 1 # paste
dp[j] = min(dp[j], dp[i] + step)
return dp[-1]
```