# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
713835 | scottchou | Team Contest (JOI22_team) | C++17 | 2091 ms | 4456 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
using namespace std;
int const N = 150005;
struct Person{
int x, y, z;
}a[N];
bool cmp(Person x, Person y){
return x.x < y.x;
}
bool cmp2(Person x, Person y){
return x.y < y.y;
}
int main(){
int n;
cin >> n;
vector<int> xsort, ysort, zsort;
for(int i = 0; i < n; i++){
cin >> a[i].x >> a[i].y >> a[i].z;
xsort.push_back(a[i].x);
ysort.push_back(a[i].y);
zsort.push_back(a[i].z);
}
sort(a, a + n, cmp);
sort(xsort.begin(), xsort.end());
sort(ysort.begin(), ysort.end());
sort(ysort.begin(), ysort.end());
xsort.resize(unique(xsort.begin(), xsort.end()) - xsort.begin());
ysort.resize(unique(ysort.begin(), ysort.end()) - ysort.begin());
zsort.resize(unique(zsort.begin(), zsort.end()) - zsort.begin());
vector<Person> p;
Compilation message (stderr)
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |