Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <algorithm>
- using namespace std;
- long long a[4], w;
- int main()
- {
- cin >> a[0] >> a[1] >> a[2] >> a[3];
- sort(a, a + 4);
- for(int i = 0; i < 4; i++) if(a[i] == a[i + 1]) w++;
- cout << w;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement