字符串拼接
题解
讨论
查看他人的提交
题号:NC228623
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld
题目描述
键盘输入两个字符串,将这两个字符串进行拼接后输出。
输入描述:
键盘输入两个字符串
输出描述:
输出两个字符串拼接后的结果
示例1
输入
复制
hello nihao
hello nihao
输出
复制
hellonihao
hellonihao
字符串拼接
返回全部题目
列表加载中...
#include
#include
using namespace std; int main() { string s1, s2; getline(cin, s1); getline(cin, s2); // write your code here...... return 0; }
hello nihao
hellonihao