1 solutions

  • 0
    @ 2026-11-15 12:45:04

    C++ :

    #include <bits/stdc++.h>
    using namespace std;
    
    int main() {
        ios::sync_with_stdio(false);
        cin.tie(nullptr);
    
        int a, b;
        cin >> a >> b;
    
        cout << (a & b) << " "
             << (a | b) << " "
             << (a ^ b) << " "
             << (~a) << " "
             << (a << 2) << " "
             << (a >> 1) << "\n";
    
        return 0;
    }
    
    • 1

    Information

    ID
    190
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    10
    Tags
    # Submissions
    1
    Accepted
    1
    Uploaded By