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 <stdio.h>
int main(){
int n,i,j;
scanf("%d",&n);
int a[n],b[n],c[n];
for (i=0; i<n; i++) {
scanf("%d %d",&a[i],&b[i]);
c[i]=1;
}
for (i=0; i<n; i++) {
for (j=0; j<n; j++) c[i]+=(a[i]<a[j])&&(b[i]<b[j]);
}
for (i=0; i<n; i++) {
printf("%d ",c[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... |