1687: 数据结构-字符串连接 vector 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义一个字符向量q1,用于存储拼接后…… 题解列表 2024年12月05日 0 点赞 0 评论 422 浏览 评分:0.0
C++ 数据结构 字符串连接 #include#includeusingnamespacestd;intmain(){stringa,b;stringc[3];for(inti=0;i<3;++i){cin>>a>>b;stringpan;pan=a+b;if(pan.length()>100)pan="ResultStringi 题解列表 2023年09月12日 0 点赞 0 评论 643 浏览 评分:9.9
编写题解 1687: 数据结构-字符串连接 摘要:解题思路:注意事项:参考代码:for x in range(3): a = input().split() if len(a[0]+a[1])>100: print("Res…… 题解列表 2023年05月19日 0 点赞 0 评论 558 浏览 评分:0.0
编写题解 1687: 数据结构-字符串连接 编写题解1687:数据结构-字符串连接```#includeusingnamespacestd;intmain(){strings1,s2;for(inti=0;i>s1>>s2;if(s1.length()+s2.length()>100){cout 题解列表 2023年02月15日 0 点赞 0 评论 632 浏览 评分:0.0
数据结构-字符串连接(C语言) 摘要:#include<stdio.h> #include<string.h> int main() { char str1[100],arr1[100]; char str2[100], a…… 题解列表 2023年01月06日 0 点赞 0 评论 571 浏览 评分:0.0
数据结构-字符串连接(C语言) 摘要: #include #include int main(){ char a[500],b[500]; while(scanf("%s %s…… 题解列表 2022年07月16日 0 点赞 0 评论 848 浏览 评分:0.0
数据结构-字符串连接 题解 摘要:解题思路:直接输入后连接,最后输出。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;string a,b;int main(){ for(…… 题解列表 2022年05月06日 0 点赞 0 评论 610 浏览 评分:0.0
数据结构-字符串连接 ```importjava.util.Scanner;publicclassDemo1687{publicstaticvoidmain(String[]args){Scannerscanner=newScanner(System.in);while(scanner.hasNext()){Strings 题解列表 2022年04月10日 0 点赞 0 评论 751 浏览 评分:9.9
Hifipsysta-1687-数据结构-字符串连接(C++代码) ```cpp#include#includeusingnamespacestd;intmain(){stringmystr;while(getline(cin,mystr)){intpos=mystr.find('');if(pos>=0&&pos 题解列表 2022年02月12日 0 点赞 0 评论 591 浏览 评分:0.0
1687: 数据结构-字符串连接 摘要:解题思路:定义了一个数组,输出除空格之外的所有字符参考代码:#include <stdio.h> #include <stdlib.h> #include <string.h> int ma…… 题解列表 2021年12月27日 1 点赞 0 评论 853 浏览 评分:9.9