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的自然数,完成下面的判断题和单选题:

当输入为“65535”时,输出为“63”。()

答案
A

题目信息

题号:1916
题型:判断题
难度:普通