list1=list(map(int, input().split())) res_b_mov=[] res_2=[] for i in list1: tem=0 tem1=0 for j in range(16): if j==0: if 1 << (j * 2) & i: tem1 += 1 << (j * 2 + 1) if 1 << (j * 2 + 1) & i: tem1 += 1 << (j * 2) if 1<<(j*2)&i: tem+=1<<(j*2+1) if 1<<(j*2+1)&i: tem+=1<<(j*2) res_b_mov.append(tem) res_2.append(tem1) res=[] for i in range(len(res_b_mov)): res1=0 tem=res_b_mov[i] if i==0: tem1 = res_2[-1] else: tem1=res_2[i-1] res1+=tem>>2 res1+=tem1<<30 res.append(res1) for i in res: print(i,end=" ")
全部评论
(0) 回帖