fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. ios_base::sync_with_stdio(false);
  7. cin.tie(NULL);
  8.  
  9. int a, b, c;
  10. if (cin >> a >> b >> c) {
  11. if (a == b) {
  12. cout << c << "\n";
  13. } else if (a == c) {
  14. cout << b << "\n";
  15. } else {
  16. cout << a << "\n";
  17. }
  18. }
  19.  
  20. return 0;
  21. }
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
Standard output is empty