python简易解法 摘要:解题思路:注意事项:参考代码:while True: try: a=input() b=''.join(input().split()) c=''.join((a…… 题解列表 2022年03月05日 0 点赞 0 评论 179 浏览 评分:0.0
编写题解 2073: [STL训练]亲和串 摘要:解题思路:注意事项:参考代码:while True: try: a=input().strip() b=input().strip() …… 题解列表 2022年03月16日 0 点赞 0 评论 135 浏览 评分:0.0
#C++2073——[STL训练]亲和串(string类find(),substr()) 摘要:解题思路: string类自带函数的运用注意事项: 循环移位(依次往后移动或往前移动都可),若往后,截取b的长度的子串,再接上,已完成所有移位,如样例AABCD,查找4个长度的字符串,截取前4个,接上…… 题解列表 2022年08月01日 0 点赞 0 评论 198 浏览 评分:0.0
2073 安之 亲和串训练 摘要:解题思路:在s1字符串后连接一个s1,用find()函数进行搜索即可。注意事项:参考代码:#include <iostream>#include <string>using namespace std…… 题解列表 2024年11月22日 0 点赞 0 评论 93 浏览 评分:0.0
太简单了,我都不想解释 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string a,b; while(cin>>a…… 题解列表 2022年03月01日 0 点赞 0 评论 209 浏览 评分:4.0
题解 2073: [STL训练]亲和串 (C语言)用好str相关函数,事半功倍!轻松搞定 摘要: 大家可以趁着这道题复习一波C语言中关于str的相关函数。确实省了不少事参考代码:#include <stdio.h> #include <string.h> #include <stdli…… 题解列表 2021年03月25日 0 点赞 0 评论 346 浏览 评分:6.0
【优质题解】保证你没见过这种想法!太简洁了!看了都是五星! 2073题-[STL训练]亲和串-题解(C++代码) 摘要:```cpp #include #include using namespace std; int main() { string a,b; while(cin>>a>>b) {…… 题解列表 2020年03月04日 0 点赞 2 评论 697 浏览 评分:8.7
超短代码,你值得拥有!!!2073题-[STL训练]亲和串-题解(C++代码)觉得可以,请留下5星好评!!! 摘要: #include using namespace std; int main() { string s1,s2; while(cin>>s…… 题解列表 2019年08月18日 0 点赞 0 评论 896 浏览 评分:9.0
[STL训练]亲和串-题解(C++代码) 摘要:我的是C++风格的,上面的题解是C风格的 ``` #include #include using namespace std; int main() { string s1,…… 题解列表 2019年10月04日 0 点赞 0 评论 804 浏览 评分:9.3
[STL训练]亲和串 (C++代码)只做最好的思路! 摘要:这题我一开始竟然理解错了,我把它理解成了集合问题难怪错误50%,代码如下: ```cpp #include using namespace std; int main(){ int p…… 题解列表 2020年03月29日 0 点赞 0 评论 1088 浏览 评分:9.9