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 cm[200];
int kg[200];
int main()
{
int N,i,j;
scanf("%d",&N);
for(i=0;i<N;i++){
scanf("%d %d",&kg[i],&cm[i]);
}
for(i=0;i<N;i++){
int prize = 1;
for(j=0;j<N;j++){
if(i==j){
continue;
}
else if(kg[j]>kg[i] && cm[j]>cm[i]){
prize++;
}
}
printf("%d ",prize);
}
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... |