daily pastebin goal
63%
SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.     int a,b,c;
  6.     cin>>a>>b>>c;
  7.     if(a==b && b==c)
  8.     {
  9.         cout<<1;
  10.     }
  11.     else
  12.     if(a==b && a!=c)
  13.     {
  14.         cout<<2;
  15.     }
  16.     else
  17.     if(a==c && a!=b)
  18.     {
  19.         cout<<2;
  20.     }
  21.     else
  22.     if(b==c && b!=a)
  23.     {
  24.         cout<<2;
  25.     }
  26.     else
  27.     if(a!=b && b!=c && a!=c)
  28.     {
  29.         cout<<3;
  30.     }
  31.         else
  32.         {
  33.         cout<<0;
  34.         }
  35. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top