Advertisement
roronoa

hight low jump

Nov 11th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. r=readline
  2. e=readline(r()).split` `
  3. h=0
  4. l=0
  5. e.forEach((v,i)=>{if(v*1>e[i-1])h++
  6. else l++})
  7. print(h,--l)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement