#include<iostream>
using namespace std;
unsigned int n;
int main(){
cin >> n;
unsigned int x = n & ((1 << 17) - 1);
unsigned int y = n >> 16;
n = (x << 16) | y;
cout << n;
return 0;
}
谢谢各位大佬小白在线求助~~~
#include<iostream>
using namespace std;
unsigned int n;
int main(){
cin >> n;
unsigned int x = n & ((1 << 17) - 1);
unsigned int y = n >> 16;
n = (x << 16) | y;
cout << n;
return 0;
}
谢谢各位大佬小白在线求助~~~