UVA 10469 - To Carry or not to Carry

Problem PDF

Solution:

#include
int main()
{
    int a,b;
    while(scanf("%d %d",&a,&b)==2)
    {
        printf("%d\n",a^b);
    }
    return 0;
}
https://github.com/Shipu/OnlineJudgeProblemSolutionWithCPlusPlus/tree/master/uva/10469/10469.cpp