if i try to submit this code:
t=int(input())
for i in range(t):
ans=0
ts=int(input())
while(ts%2==0):
ts=ts//2
if ts%2!=0:
ans=ts//2
print(ans)
it is successfully accepting.....
**but if i submit any of the following codes it is partially correct....**
**#number:1**
t=int(input())
for i in range(t):
ans=0
ts=int(input())
while(ts%2==0):
ts=ts//2
if ts%2!=0:
ans=ts/2
print(int(ans))
**#number:2:**
t=int(input())
for i in range(t):
ans=0
ts=int(input())
while(ts%2==0):
ts=ts/2
if ts%2!=0:
ans=ts//2
print(ans)
#number:3:
t=int(input())
for i in range(t):
ans=0
ts=int(input())
while(ts%2==0):
ts=ts/2
ts=int(ts)
if ts%2!=0:
ans=ts//2
print(ans)
but i don't find any difference from any of these codes as int and floor is same for positive intezers.
can any one help me with solution i wasted so much of my time to get the reason.
please help me.
the question is from june long challenge 2020,division 2,the tom and jerry game.......
**edit:** i just added indentation