题解
2023-08-09 15:29:20
发布于:浙江
5阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
string s1,s2;
int main()
{
cin>>s1>>s2;
if(s1.size()<s2.size())
cout<<s1<<endl<<s2;
else if(s1.size()>s2.size())
cout<<s2<<endl<<s1;
else if(s1<s2)
cout<<s1<<endl<<s2;
else if(s1>s2)
cout<<s2<<endl<<s1;
return 0;
}
这里空空如也
有帮助,赞一个