Problem A: 二进制运算

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:539 Solved:184

Description

求下列运算的二进制结果 (8位二进制,不足补0, 例如二进制结果为110,则输出00000110)
 (1) 10 & 8
 (2) 20 | 9

 (3) 30 ^ 0
 (4) -1的补码

Output

#include<iostream>
using namespace std;
int main() {
     cout << "答案一" << endl; 
     cout << "答案二" << endl; 
     cout << "答案三" << endl; 
     cout << "答案四" << endl;
     return 0;
 }

Sample Input Copy


Sample Output Copy