Wednesday, July 2, 2014

UVa - 10469 - To Carry or not to Carry

#include <iostream>
#include <cstdio>

using namespace std;

int main()
{
    int a, b;
    while(scanf("%d %d", &a, &b) == 2){
    printf("%d\n", a ^ b);
    }
    return 0;
}

No comments:

Post a Comment