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