解题
2024-07-31 18:32:00
发布于:广东
4阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
int main() {
string x,y;
cin >> x >> y;
if(x.size()<y.size()){
cout<< x <<endl << y;
}else if(x.size()>y.size()){
cout << y << endl << x;
}else if(x<y){
cout << x << endl << y;
}else{
cout << y << endl << x;
}
return 0;
}
这里空空如也
有帮助,赞一个