自己看
2026-08-17 09:37:30
发布于:广东
0阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
string s,t;
int main(){
//freopen(".in","r",stdin);
//freopen(".out","w",stdout);
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
std::cout.tie(nullptr);
cin>>s>>t;
ll len1=s.size();
ll len2=t.size();
if(len1>len2){
cout<<t<<endl<<s<<endl;
}else{
if(len1<len2){
cout<<s<<endl<<t<<endl;
}else{
cout<<min(s,t)<<endl<<max(s,t)<<endl;
}
}
//fclose(stdin);
//fclose(stdout);
return 0;
}
//coder::by::M91
这里空空如也






有帮助,赞一个