-
Notifications
You must be signed in to change notification settings - Fork 2
/
armystrength.c
36 lines (33 loc) · 890 Bytes
/
armystrength.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include<stdio.h>
int main(){
int t;
int max1=0;
int max2=0;
int i;
scanf("%d",&t);
for(i=0;i<t;i++){
int n=0;
int m=0;
int j=0;
scanf("%i%i",&n,&m);
while(n>0){
scanf("%i",&j);
if(j>max1)
max1=j;
n--;
}
while(m>0){
scanf("%i",&j);
if(j>max2)
max2=j;
m--;
}
if(max1>=max2)
printf("Godzilla\n");
else
printf("MechaGodzilla\n");
max1=0;
max2=0;
}
return 0;
}