为什么我在 codechef 上的代码中出现 nzec 错误??????请帮助问题链接是 http://www.codechef.com/problems/DCE05 我的解决方案是
maxn = 10**9
i = 0
lis = [1]
while(maxn !=0):
lis.append(2*lis[i])
i = i+1
maxn = maxn/2
t = int(input())
for y in range(t):
n = int(input())
if n == 0:
print n
continue
for j in range(len(lis)):
if n > lis[j]:
continue
else:
if lis[j]== n:
print lis[j]
else:
print lis[j-1]
break