2d array problem

sir i have a problem in which i have given a 2D array of size n*2. i have to find which pair (any one value) greater or equal to other pairs(any one value).
Example
1047 1008
800 700
1884 200

output ->
2
1
2

as 1047/1008 is greater than 800 and 200 so count =2
800/700 is greater than 200 so count =1
1884 is greater than 800 and 1047 so count =2

You can make two 1-D arrays representing the minimum and maximum elements of pairs.
And then compare accordingly.