Advertisement
rengetsu

Codeforces_228A

Aug 8th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. //Codeforces Round 228A
  2. #include <iostream>
  3. using namespace std;
  4. int main()
  5. {
  6.     long double s[4], answ=0;
  7.     for(int i=0;i<4;i++) cin >> s[i];
  8.    
  9.     if(s[0]==s[1] || s[0]==s[2] || s[0]==s[3]){answ++;}
  10.     if(s[1]==s[2] || s[1]==s[3]){answ++;}
  11.     if(s[3]==s[2]){answ++;}
  12.     cout << answ;
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement