#import<iostream>
int n,a[999][9],c[999],i,j;main(){std::cin>>n;for(;i<n;i++)std::cin>>a[i][0]>>a[i][1];for(i=0;i<n;i++)for(j=0;j<n;j++)if(a[i][0]<a[j][0]&&a[i][1]<a[j][1])c[i]++;for(i=0;i<n;i++)std::cout<<++c[i]<<" ";}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
1756 KB |
Output is correct |
2 |
Correct |
0 ms |
1756 KB |
Output is correct |
3 |
Correct |
0 ms |
1756 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
1756 KB |
Output is correct |
2 |
Correct |
0 ms |
1756 KB |
Output is correct |
3 |
Correct |
0 ms |
1756 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
1756 KB |
Output is correct |
2 |
Correct |
0 ms |
1756 KB |
Output is correct |
3 |
Correct |
0 ms |
1756 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
1756 KB |
Output is correct |
2 |
Correct |
0 ms |
1756 KB |
Output is correct |
3 |
Correct |
0 ms |
1756 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
1756 KB |
Output is correct |
2 |
Correct |
0 ms |
1756 KB |
Output is correct |
3 |
Correct |
0 ms |
1756 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
1756 KB |
Output is correct |
2 |
Correct |
0 ms |
1756 KB |
Output is correct |
3 |
Correct |
0 ms |
1756 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
1756 KB |
Output is correct |
2 |
Correct |
0 ms |
1756 KB |
Output is correct |