蓝桥杯 算法训练 ALGO-233 字符串合并

蓝桥杯 算法训练 字符串合并

资源限制

时间限制: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;
}
发布了130 篇原创文章 · 获赞 57 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/qq_43422111/article/details/104537418