#include <bits/stdc++.h>
using namespace std;
vector< pair <int, int> > a;
vector< pair <int, int> >::iterator it ;
int main()
{
int n;
scanf("%d", &n);
pair<int ,int> x;
for(int i = 0;i<n;i++){
cin>>x.first>>x.second;
a.push_back(x);
}
sort(a.begin(),a.end());
it = unique (a.begin(), a.end() );
a.erase (it, a.end() );
cout << a.size();
return 0;
}
zzuli oj 1191: 数星星(结构体专题)
最新推荐文章于 2023-11-21 05:00:00 发布