fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. int main(){
  5. int a, b, c;
  6. cin >> a >> b >> c;
  7. if (a == b) cout << 3;
  8. else if (a == c) cout << 2;
  9. else cout << 1;
  10. return 0;
  11.  
  12. }
Success #stdin #stdout 0.01s 5284KB
stdin
2 3 2
stdout
2