字符串合併
資源限制
時間限制:1.0s 內存限制:256.0MB
問題描述
輸入兩個字符串,將其合併爲一個字符串後輸出。
輸入格式
輸入兩個字符串
輸出格式
輸出合併後的字符串
樣例輸入
一個滿足題目要求的輸入範例。
Hello
World
樣例輸出
HelloWorld
數據規模和約定
輸入的字符串長度0<n<100
/*
Name: 藍橋杯:字符串合併
Copyright: 拔劍四顧心茫然
Author: 拔劍四顧心茫然
Date: 20/03/30 9:34
Description: dev-cpp 5.11
*/
#include<iostream>
#include<string.h>
using namespace std;
int main()
{
char s1[1<<5],s2[1<<5];
gets(s1);
gets(s2);
cout << s1 << s2;
return 0;
}