Uva 10469 - To Carry or not to Carry

/*
    Uva 10469 - To Carry or not to Carry
    Verdict :: Accepted
    Time:: 0.000
*/
#include <iostream>
#include <cstdio>
#include <cstring>
#include <string>
#include <algorithm>
#include <cmath>
using namespace std;

int main ()
{
    unsigned int a,b;

    while (cin >> a >> b)
    {
        int c = a^b;

        cout << c << endl;
        //printf("%u\n",c);
    }

    return 0;
}

Comments

Popular posts from this blog

Uva 10650 - Determinate Prime

SPOJ-CMG - Collecting Mango

LeetCode Palindrome Number