Skip to content

Instantly share code, notes, and snippets.

@joaogui1
Created June 29, 2017 09:12
Show Gist options
  • Save joaogui1/f9d495ac2b1757db89c14621872d27dd to your computer and use it in GitHub Desktop.
Save joaogui1/f9d495ac2b1757db89c14621872d27dd to your computer and use it in GitHub Desktop.
#include<bits/stdc++.h>
using namespace std;
int main(){
int a, b, c;
cin >> a >> b >> c;
if(a == b) cout << c << "\n";
else if(a == c) cout << b << "\n";
else cout << a << "\n";
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment