2023年CSP-S1阅读程序题1:#include
2023年CSP-S1阅读程序题1:
#include <iostream>
using namespace std;
unsigned short f(unsigned short x){
x ^= x << 6;
x ^= x >>8;
return x;
}
int main(){
unsigned short x;
cin >> x;
unsigned short y = f(x);
cout << y <<endl;
return 0;
}假设输入的x是不超过65535的自然数,完成下面的判断题和单选题:
当输入为“1”时,输出为“64”。()
答案
B