Submission #1281788

#TimeUsernameProblemLanguageResultExecution timeMemory
1281788hssaan_arifAdvertisement 2 (JOI23_ho_t2)C++20
10 / 100
264 ms21504 KiB
// #include <me>
#include <bits/stdc++.h>
using namespace std;

#define endl "\n"
#define pb push_back
#define int long long
#define fi first
#define se second

const int N = 3e5 + 5, M = 1e9 + 7, LG = 20;

int n , x , e;

void solve(){
    cin >> n;
    set<int> st;
    for (int i = 1 ; i <= n ; i++){
        cin >> x >> e;
        st.insert(x);
    }
    
    cout << st.size() << endl;
}

signed main(){
    ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
    int ts = 1;
    // cin >> ts;
    while(ts--){
        solve();
    }
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...