二、阅读程序-1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #include <iostream> using namespace std; int main(){ unsigned short x,y; cin>>x>>y; x=(x|x<<2)&0x33; x=(x|x<<1)&0x55; y=(y|y<<2)&0x33; y=(y|y<<1)&0x55; unsigned short z=x|y<<1; cout<<z<<endl; return 0; } |
假设输入的 x、y 均是不超过 15 的自然数,完成下面的判断题和单选题:
