Submission #768436

#TimeUsernameProblemLanguageResultExecution timeMemory
768436green_gold_dogAdvertisement 2 (JOI23_ho_t2)C++17
10 / 100
273 ms30792 KiB
#include<bits/stdc++.h>

using namespace std;

typedef long long ll;

template<typename T>
bool assign_min(T& a, T b) {
        if (a > b) {
                a = b;
                return true;
        }
        return false;
}

template<typename T>
bool assign_max(T& a, T b) {
        if (a < b) {
                a = b;
                return true;
        }
        return false;
}

void solve() {
        ll n;
        cin >> n;
        set<ll> all;
        for (ll i = 0; i < n; i++) {
                ll x, y;
                cin >> x >> y;
                all.insert(x);
        }
                cout << all.size() << '\n';
}

int main() {
        ios_base::sync_with_stdio(false);
        cin.tie(0);
        cout.tie(0);
        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...