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 N,X[55],Y[55],R[55];
int main()
{
int i,j;
scanf ("%d",&N);
for (i=0;i<N;i++) scanf ("%d %d",&X[i],&Y[i]);
for (i=0;i<N;i++){
for (j=0;j<N;j++) if (X[i] < X[j] && Y[i] < Y[j]) R[i]++;
}
for (i=0;i<N;i++) printf ("%d ",R[i]+1);
return 0;
}
# | 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... |