Home > Back-end >  Bosses look bai
Bosses look bai

Time:12-26

 
# include & lt; Bits/stdc++. H>
# define ll long long
using namespace std;

Struct done
{
string s;
int len;
} a, [25].
Int CMP (done a, done b)
{
Return a. en}
Int main ()
{
Int CNT=0;
While (1)
{
String c;
Cin> c;
If (c=="#")
break;
A [CNT] s=c;
A [CNT]. Len=c.l ength ();
Cnt++;
}
Sort (a, a + CNT, CMP);
for(int i=0; i{
cout}
return 0;
}


Why enter
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
#
The output is
I q p o n m l k j h g f e d c b a
  • Related