分析:水题
import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
int n = in.nextInt();
while(0 != n){
int[] arr1=new int[n];
int[] arr2=new int[n];
for (int i = 0; i < n; i++) {
arr1[i]=in.nextInt();
}
for (int i = 0; i < n; i++) {
arr2[i]=in.nextInt();
}
Arrays.sort(arr1);
Arrays.sort(arr2);
int sum1=0,sum2=0;
for (int i = 0; i < n; i++) {
if(arr1[i]>arr2[i]){
sum1+=2;
}
else if(arr1[i]<arr2[i]){
sum2+=2;
}
else {
sum1++;sum2++;
}
}
System.out.println(sum1+" vs "+sum2);
n=in.nextInt();
}
}
}