Home > Back-end >  HDU1004 various, however, this is my code, the great god show just a little...
HDU1004 various, however, this is my code, the great god show just a little...

Time:10-11

# include
# include
# include
using namespace std;
Int flag1=0;
Int the find (string a);
int n;
String c [1001];
Int c1 [1001];
Int main ()
{
While (cin> n, n)
{
string str;
Memset (c1, 0, sizeof (c1));
While (n -)
{
int i;
Cin> STR.
I=the find (STR);
C1 [I] + +;
}
Int Max=c1 [0], k1=0;
for(int j=0; J <=flag1; J++)
{
If (c1 [j]> Max)
{
Max=c1 [j];
K1=j;
}

}
Cout Flag1=0;
}
return 0;
}
Int the find (string a)
{
int t;
for(int i=0; I <1001; I++)
If (a==c [I])
{
return i;
break;
}
T=flag1;
C + +] [flag1=a;
Return t;

}