#include #include const int maxn=1000; char str[55][maxn+5],res; int hsh[128],max; int n,m; int cnt; //ACGT int main() { #define NDEBUG #ifdef local freopen("pro.in","r",stdin); #undef NDEBUG #endif int t; scanf("%d",&t); while(t-->0) { scanf("%d%d",&m,&n); for(int i=0;imax) res=j,max=hsh[j]; printf("%c",res); for(int j=0;j