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 <cstdio>
int main(){
int n;scanf("%d",&n);
int x[n],y[n];
for(int i=0;i<n;i++)scanf("%d %d",x+i,y+i);
int ans[n];
for(int i=0;i<n;i++){
ans[i]=1;
for(int j=0;j<n;j++){
if(x[j]>x[i]&&y[j]>y[i])ans[i]++;
}
}
for(int i=0;i<n;i++)printf("%d ",ans[i]);
}
# | 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... |