没写完-PAT (Basic Level) Practice Python解法 1005 继续(3n+1)猜想
n = int(input())
ckl =list(map(int,input().split()))
for hys in ckl:
while hys != 1:
if hys % 2 == 0:
hys = hys / 2
else:
hys = (hys * 3 + 1) / 2
if int(hys) in ckl:
ckl.remove(hys)
ckl.reverse()
otp = list(map(str,ckl))
print(' '.join(otp))
坑点134爆炸。说实话这代码能跑就离谱。