Guest User

Untitled

a guest
Oct 20th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. c = 0
  2. for i = 1 to n do
  3. for i = j to n do
  4. if sum(u[i:j]) > 0 then
  5. c = c + 1
  6. return c
Add Comment
Please, Sign In to add comment