Advertisement
Guest User

Untitled

a guest
May 21st, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. n = int(input())
  2. numbers = list(map(int, input().split()))
  3. q = int(input())
  4. x = 1
  5. question = []
  6. while q > 0:
  7. question.append(int(input()))
  8. q = q - 1
  9.  
  10.  
  11. def binary_search(numbers, x):
  12. if len(numbers) >= 1:
  13. binary_search(numbers[0:len(numbers)/2])
  14. binary_search(numbers[len(numbers)/2:len(numbers)])
  15. if numbers > 0:
  16. print("ano")
  17. else:
  18. print("nie")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement