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, m[52][4];
int main()
{
int i, j, cnt;
scanf("%d",&n);
for(i=1 ; i<=n ; i++)
{
scanf("%d %d",&m[i][1],&m[i][2]);
}
for(i=1 ; i<=n ; i++)
{
cnt=1;
for(j=1 ; j<=n ; j++)
{
if(m[i][1]<m[j][1] && m[i][2]<m[j][2])
{
cnt++;
}
}
printf("%d ",cnt);
}
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... |