Guest User

Untitled

a guest
Jul 17th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. long[] store = new long[((int) a+1)/2];
  2. store[0] = 2;
  3. long l = ((int) a)-2;
  4. for (long iy = 0; iy < l; iy++) {
  5. long ta = store[0];
  6. store[0]++;
  7.  
  8. int ix = 1;
  9. for (; ix <= (iy+1)/2; ix++) {
  10. long tb = store[ix];
  11. store[ix] = ta+tb;
  12. ta = tb;
  13. }
  14. if ((iy & 1) == 0) {
  15. store[ix] = store[ix-1];
  16. }
  17. }
Add Comment
Please, Sign In to add comment