Paste Search Dynamic
Recent pastes
Binary
  1. def Binary(arr,t):
  2.     if t%2==0:print(arr[t-2],end=" ")
  3.     elif t%2!=0:print(arr[t-1],end=" ")
  4.     if t == 0: return
  5.     return Binary(arr,t-2)
  6.  
  7. t =int(input())
  8. arr =list(map(int,input().split()))
  9. Binary(arr,t)
Parsed in 0.003 seconds