Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement