Thursday, October 13, 2016

UVa 10469 - To Carry or not to Carry

#include<bits/stdc++.h>

using namespace std;

int  main()
{
 int x,y;
 
 while(cin>>x>>y)
 {
  int c=x^y;
  cout<<c<<endl;
 }
 
 return 0;
}

No comments:

Post a Comment

Thank you for commenting. Please wait for response :)