Guest User

Untitled

a guest
Nov 23rd, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. def buistroevozvedenie(x, y):
  2. if y == 0:
  3. return 1
  4. if y == -1:
  5. return 1. / x
  6. oi = buistroevozvedenie(x, y / 2)
  7. oi *= oi
  8. if y % 2:
  9. oi *= x
  10. return oi
Add Comment
Please, Sign In to add comment