解题思路:
注意事项:
参考代码:
//程序名:新的C++程序
//作者:
#include<iostream>
#include<fstream>
#include<algorithm>
using namespace std;
int main()
{
int a,n,b;
cin>>a>>n;
b=a;
a=(a>>n); //a向右移n位
b=(b<<(32-n)); //b向左移32-n位
cout << a+b <<endl;
return 0;
}
0.0分
0 人评分
WU-蓝桥杯算法提高VIP-企业奖金发放 (C++代码)浏览:1175 |
wu-淘淘的名单 (C++代码)浏览:1339 |
WU-printf基础练习2 (C++代码)浏览:2007 |
WU-小九九 (C++代码)浏览:1684 |
2006年春浙江省计算机等级考试二级C 编程题(2) (C语言代码)浏览:472 |
C语言程序设计教程(第三版)课后习题8.9 (C语言代码)浏览:832 |
1011题解浏览:765 |
矩阵加法 (C语言代码)浏览:1722 |
C二级辅导-求偶数和 (C语言代码)浏览:673 |
C二级辅导-等差数列 (C语言代码)浏览:817 |