CodePudding
Home
front end
Back-end
Net
Software design
Enterprise
Blockchain
Mobile
Software engineering
database
OS
other
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;
}
Page link:
https//www.codepudding.com/Backend/61293.html
Prev:
What's the problem, how to solve
Next:
C builder6, database desktop about related indexes, urgent request
Tags:
The base class
Related
Does anyone have CH340G schematic diagram, clear
Two threads, nuclear, CPU statistics difference is big, who
The error C2668: "pow" : the overloaded function call is not
FormsAuthentication created ticket can't clear, is the BUG?
Android Studio compile failure: reference to the findViewByI
VS2015 community edition install the cause of the failure? T
In the server 124.2 to 2 nuclear 4 g3/month, what level
Element tree component deletion and clear the problem
In vivado ZYNQ zcu102 PCIe nuclear how to use? (a combinatio
WeChat return 1 payment failure all sorts of problems are cl
Links:
CodePudding