大佬求调,75pets,首尾爆WA
查看原帖
大佬求调,75pets,首尾爆WA
745896
hagoubang123楼主2024/8/9 11:22
#include <bits/stdc++.h>
using namespace std;
int n;
string a[25];
bool cmp(string s1,string s2){
	return s1>s2;
}
int main(){
	cin >> n;
	for(int i=0;i<n;i++){
		cin >> a[i];
	}
	sort(a,a+n,cmp);
	for(int i=0;i<n;i++){
		cout << a[i];
	}
	return 0;
}
2024/8/9 11:22
加载中...