标签:
#include <stdio.h>
#include <string.h>
int main ()
{
int n;
scanf("%d", &n);
while (n--)
{
int m;
char a[10] = "zzzzzz", str[10];
scanf("%d", &m);
getchar();
while (m--)
{
gets(str);
if (strcmp(str, a) < 0)
strcpy(a, str);
}
printf ("%s\n", a);
}
}
标签:
原文地址:http://www.cnblogs.com/mycapple-zgs-111411/p/4617269.html