Created
September 29, 2012 12:50
-
-
Save brickgao/3803903 to your computer and use it in GitHub Desktop.
Codeforces Round 141 (Div. 2) A
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//By Brickgao | |
#include <iostream> | |
#include <set> | |
#include <cstdio> | |
using namespace std; | |
int main() | |
{ | |
__int64 tmp; | |
set <__int64> rec; | |
for(int i = 1; i <= 4; i++) | |
{ | |
cin >> tmp; | |
rec.insert(tmp); | |
} | |
__int64 ans = 4 - rec.size(); | |
printf("%I64d\n", ans); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment