제출 #1024844

#제출 시각아이디문제언어결과실행 시간메모리
1024844MohamedFaresNebiliAdvertisement 2 (JOI23_ho_t2)C++14
10 / 100
113 ms16120 KiB
#include <bits/stdc++.h> using namespace std; int N; int X[500005], E[500005]; vector<int> C; int32_t main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); cin >> N; for(int l = 0; l < N; l++) { cin >> X[l] >> E[l]; C.push_back(X[l]); } sort(C.begin(), C.end()); C.erase(unique(C.begin(), C.end()), C.end()); cout << (int)C.size() << "\n"; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...