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