Guest User

Untitled

a guest
Jul 19th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. int dp[10000]; //yeah, you have to know MAXN, here. We assume N < 10000
  2.  
  3. for (int i = 1; i <= N; i++) {
  4. dp[i] = 1 + dp[i - 1] + dp[i - 1];
  5. }
Add Comment
Please, Sign In to add comment