NOJ/86/main.c

19 lines
393 B
C
Raw Normal View History

2020-08-31 16:46:43 +00:00
#include <stdio.h>
int main(void){
int number, A[100], B[100], As = 0, Bs = 0;
scanf("%d",&number);
int i;
for(i = 0; i < number; i++) scanf("%d",A+i);
for(i = 0; i < number; i++) scanf("%d",B+i);
for(i = 0; i < number; i++){
if(A[i] > B[i]) As++;
else if(A[i] < B[i]) Bs++;
}
if(As > Bs) printf("A");
else if(As < Bs) printf("B");
else printf("=");
printf("\n");
return 0;
}