StoneHaos

216

Oct 31st, 2019
126
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //216
  2. #include <iostream>
  3. #include <cstdio>
  4. using namespace std;
  5.  
  6. int main(void) {
  7.     ios_base::sync_with_stdio(false);
  8.     cin.tie(NULL);
  9.  
  10.     freopen("input.txt", "r", stdin);
  11.     freopen("output.txt", "w", stdout);
  12.  
  13.     int a, b, c;
  14.     cin >> a >> b >> c;
  15.  
  16.     if (a != b && b != c && a != c)
  17.         cout << "3\n";
  18.     else if (a == b && b != c || a != b && b == c || a == c && a != b)
  19.         cout << "2\n";
  20.     else
  21.         cout << "1\n";
  22.     return 0;
  23. }
RAW Paste Data