MaxXLive

Untitled

Nov 21st, 2020
543
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. last = 0
  2. best = 0
  3. i = 0
  4.  
  5. while (i < size) loop
  6. h = g[i]
  7. t = h + last
  8.  
  9. last = h v t
  10. best = best v last
  11.  
  12. i = (i + 1)
  13.  
  14. end
  15.  
  16. result = best
  17.  
RAW Paste Data