#include <iostream>
#include <bits/stdc++.h>
#include <iomanip>
#include <numeric>
using namespace std;
#define ll long long
bool comp(const pair<ll,ll> &a,pair<ll,ll> &vl)
{
return a.second > vl.first;
}
bool scomp(const pair<ll,ll> &a,pair<ll,ll> &vl)
{
return a.first >= vl.first;
}
void solve() {
int n;
cin >> n;
set<int> st;
for (int i = 0; i < n; i++)
{
int x,E;
cin >> x >> E;
st.insert(x);
}
cout << st.size() << endl;
}
int main() {
ios_base::sync_with_stdio(false);
int t = 1;
// cin>>t;
while(t--) {
solve();
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |