ARMY
#include<iostream>
using namespace std;
int main()
{ int t,ng,nm,sg,sm,maxg,maxm,flag;
cin>>t;
while(t--)
{cin>>ng>>nm;
maxg=0;maxm=0;
if(ng==0&&nm==0){cout<<"uncertain"<<endl;goto last;}
else if(nm==0){cout<<"Godzilla"<<endl;goto last;}
else if(ng==0){cout<<"MechaGodzilla"<<endl;goto last;}
while(ng--)
{ cin>>sg;
if(sg>maxg)maxg=sg;
}
while(nm--)
{ cin>>sm;
if(sm>maxm)maxm=sm;
}
if(maxg>=maxm)cout<<"Godzilla"<<endl;
else cout<<"MechaGodzilla"<<endl;
last:;
}
return 0;
}
#include<iostream>
using namespace std;
int main()
{ int t,ng,nm,sg,sm,maxg,maxm,flag;
cin>>t;
while(t--)
{cin>>ng>>nm;
maxg=0;maxm=0;
if(ng==0&&nm==0){cout<<"uncertain"<<endl;goto last;}
else if(nm==0){cout<<"Godzilla"<<endl;goto last;}
else if(ng==0){cout<<"MechaGodzilla"<<endl;goto last;}
while(ng--)
{ cin>>sg;
if(sg>maxg)maxg=sg;
}
while(nm--)
{ cin>>sm;
if(sm>maxm)maxm=sm;
}
if(maxg>=maxm)cout<<"Godzilla"<<endl;
else cout<<"MechaGodzilla"<<endl;
last:;
}
return 0;
}
No comments:
Post a Comment