#include<stdio.h>int main(void){ int N; int i = 0; scanf("%d",&N); while(i < N) { unsigned short a,g,d; unsigned short mask; mask = 0x0ff0;//保留中间8位 scanf("%u",&a); g = a>>12; d = a<<12; a = a & mask; a = a | g; a = a | d; printf("%u\n",a); i++; } return 0;}
1 回答
- 1 回答
- 0 关注
- 1188 浏览
添加回答
举报
0/150
提交
取消