Tuesday 20 September 2016

UVA 10469 - To Carry or not to Carry

Problem:10469 - To Carry or not to Carry
Code:
#include<bits/stdc++.h>
using namespace std;
int main()
{
       int a,b;
       while(cin>>a>>b)
       {
              int c=a^b;
              cout<<c<<endl;
       }
       return 0;
}

No comments:

Post a Comment