#P310. 练52.2 数组间的比较大小
练52.2 数组间的比较大小
Description
There are two arrays and , each with elements. Compare them element by element (i.e., with , with , and so on). If the number of elements in array that are greater than the corresponding elements in array is more than the number of elements in array that are greater than the corresponding elements in array (for example, 6 times, while 3 times), then array is considered greater than array .
Write a program to determine the relationship between arrays and , and count the number of times elements in are greater than, equal to, or less than the corresponding elements in .
Input Format
Two lines, each containing integers separated by spaces, representing arrays and .
Output Format
The first line should output the number of times elements in are greater than, equal to, and less than the corresponding elements in , separated by spaces.
If array is greater than array , output "a>b" on the second line; if array is less than array , output "a<b"; if the arrays are equal, output "a=b".
Note: Do not output quotes, and ensure to output a newline at the end of each line.
Sample
1 3 5 7 9 8 6 4 2 0
5 3 8 9 -1 -3 5 6 0 44 1 5
a<b
Related
In following homework: