2012_1华中科技大学机试真题
来源:互联网 发布:连接sql数据库小工具 编辑:程序博客网 时间:2024/04/30 12:21
#include<stdio.h>int count;void reverse(unsigned long int digit){unsigned long int low,high;low=digit<<24;high=digit>>24;digit=digit&0x00ffff00;digit=low|digit;digit=high|digit;printf("%u\n",digit);}void yidong(unsigned long int digit,int n){n%=16;unsigned long int low,high,t1,t2;low=digit&0x00ffff00;low>>=8;low<<=n;low=low&0x00ffff00;high=low<<16;high=high&0x00ffff00;t1=digit&0xff000000;t2=digit&0x000000ff;digit=high|low|t1|t2;printf("%u\n",digit);}void output(unsigned long int digit){if(digit){output(digit/2);printf("%u",digit%2);count++;if(count%8==0)printf(" ");}}int main(){unsigned long int digit;int n;while(~scanf("%u",&digit)){reverse(digit);scanf("%d",&n);yidong(digit,n);count =0;output(digit);printf("\n");}return 0;}
0 0
- 2012_1华中科技大学机试真题
- 2011_1华中科技大学机试真题
- 2012_2华中科技大学机试真题
- 2011_2华中科技大学机试真题
- 2011_3华中科技大学机试真题
- 华中科技大学的IP
- 华中科技大学社会系
- CentOS5华中科技大学更新源
- 06华中科技大学复试上机
- 华中科技大学IPV6设置,linux
- 华中科技大学海外校友录
- 华中科技大学网络教材
- 黑晓军 华中科技大学 博士 副教授
- 华中科技大学软件工程硕士
- 2014华中科技大学复试
- 华中科技大学 2010 奇偶校验
- 华中科技大学 2010 a+b
- 奇偶校验-华中科技大学计算机题
- PHP内核分析(一)
- android 获取手机网络状态
- iOS UIBezierPath类 介绍
- 【Javaweb】关闭Eclipse/Myeclipse的网页预览与设置xml文件的默认编辑器
- Java泛型编程最全总结
- 2012_1华中科技大学机试真题
- Linux 内核的文件 Cache 管理机制介绍
- No filesystem could mount root, tried: ext3 ext2 ext4 vfat msdos
- linux 数据库主从同步配置
- 在Cocoa Touch框架中使用迭代器模式
- 实用注册表管理类
- Android---蓝牙的使用
- python学习笔记-(4)Python运算符
- android 退出整个程序