Submission #1686

# Submission time Handle Problem Language Result Execution time Memory
1686 2013-07-12T08:28:12 Z gs13105 덩치 (KOI13_body) C++
18 / 18
0 ms 884 KB
#include <stdio.h>

int arr[50][2];

int main()
{
	int cnt,n,i,j;
	scanf("%d",&n);
	for(i=0;i<n;i++)
		scanf("%d%d",&arr[i][0],&arr[i][1]);
	for(i=0;i<n;i++)
	{
		cnt=1;
		for(j=0;j<n;j++)
			if(arr[j][0]>arr[i][0]&&arr[j][1]>arr[i][1])
				cnt++;
		printf("%d ",cnt);
	}
	return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 884 KB Output is correct
2 Correct 0 ms 884 KB Output is correct
3 Correct 0 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 884 KB Output is correct
2 Correct 0 ms 884 KB Output is correct
3 Correct 0 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 884 KB Output is correct
2 Correct 0 ms 884 KB Output is correct
3 Correct 0 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 884 KB Output is correct
2 Correct 0 ms 884 KB Output is correct
3 Correct 0 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 884 KB Output is correct
2 Correct 0 ms 884 KB Output is correct
3 Correct 0 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 884 KB Output is correct
2 Correct 0 ms 884 KB Output is correct
3 Correct 0 ms 884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 884 KB Output is correct
2 Correct 0 ms 884 KB Output is correct