题解
2025-01-02 21:06:02
发布于:江苏
0阅读
0回复
0点赞
#include<iostream>
#include<string>
using namespace std;
int main(){
string a,b;
cin>>a>>b;
if(a.length()>b.size()){
cout<<b<<"\n"<<a;
}else if(a.size()<b.length()){
cout<<a<<"\n"<<b;
}else{
if(a>b){
cout<<b<<"\n"<<a;
}else{
cout<<a<<"\n"<<b;
}
}
return 0;
}
这里空空如也
有帮助,赞一个