2455 拼接姓名

#include<bits/stdc++.h>
using namespace std;

int main() {
	string a,b;
	cin>>a>>b;
    //利用字符串的比较函数
	if(a.compare(b)<=0){
		cout<<a<<b;
	}else{
		cout<<b<<a;
	}
	return 0;
}
posted @ 2024-10-31 15:37  行胜于言Ibl  阅读(61)  评论(0)    收藏  举报