蓝桥杯 算法训练 字符串合并
资源限制
时间限制:1.0s 内存限制:256.0MB
问题描述
输入两个字符串,将其合并为一个字符串后输出。
输入格式
输入两个字符串
输出格式
输出合并后的字符串
样例输入
Hello
World
样例输出
HelloWorld
数据规模和约定
输入的字符串长度0<n<100
题解
#include <iostream>
using namespace std;
int main(){
string a,b;
cin>>a>>b;
cout<<a<<b;
return 0;
}