Skip to content

Instantly share code, notes, and snippets.

@brickgao
Created September 29, 2012 12:50
Show Gist options
  • Save brickgao/3803903 to your computer and use it in GitHub Desktop.
Save brickgao/3803903 to your computer and use it in GitHub Desktop.
Codeforces Round 141 (Div. 2) A
//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