Submission #1067524

#TimeUsernameProblemLanguageResultExecution timeMemory
1067524_rain_Advertisement 2 (JOI23_ho_t2)C++14
10 / 100
125 ms16068 KiB
#include<bits/stdc++.h> using namespace std; using i64 = long long; #define debug false const int maxn = 5'00'000; int x[maxn+2] , e[maxn+2] , n; int main(){ ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); cin >> n; vector<int> value; for (int i = 1; i <= n; ++i) { cin >> x[i] >> e[i]; value.push_back(x[i]); } sort(value.begin(),value.end()); value.resize(unique(value.begin(),value.end()) - value.begin()); cout << value.size(); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...