二、阅读程序-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 的自然数,完成下面的判断题和单选题:
Time limit: 0
Quiz Summary
0 of 6 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
Results
Quiz complete. Results are being recorded.
Results
0 of 6 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Categories
- Not categorized 0%
- Review
- Answered
- Correct
- Incorrect
-
Question 1 of 6
1. Question
CorrectIncorrect -
Question 2 of 6
2. Question
CorrectIncorrect -
Question 3 of 6
3. Question
CorrectIncorrect -
Question 4 of 6
4. Question
CorrectIncorrect -
Question 5 of 6
5. Question
CorrectIncorrect -
Question 6 of 6
6. Question
CorrectIncorrect