#include<iostream>
#include<string>
#include<cstring>
#include<cstdio>
#include<algorithm>
#include<vector>
using namespace std;
struct node{
string a,b;
}a[30005],g[30005];
struct nod{
string a,b;
int n;
}c[30005];
bool Cmp(node a,node b){
return a.a<b.a;}
bool fum(nod a,nod b){
return a.n>b.n;}
bool fu(node a,node b){
if(a.b==b.b)
return a.a<b.a;
return a.b<b.b;}
bool fun(nod a,nod b){
if(a.n==b.n)
return a.a<b.a;
return a.n>b.n;}
int main(){
// freopen("1.txt","r",stdin);
int i=0;
string t;
while(cin>>a[i].a){
t=a[i].a;
sort(t.begin(),t.end());
a[i].b=t;
i++;
}
sort(a,a+i,fu);
int d=0;
c[0].a
poj2408 字符串处理,排序
最新推荐文章于 2021-01-30 22:36:11 发布