蓝桥杯算法提高VIP-单词个数统计-题解(C++代码) 摘要:解题思路:查找空格个数即可,最后加1。注意事项:参考代码:#include<iostream>#include<string.h>using namespace std;int main(){ …… 题解列表 2020年11月08日 0 点赞 0 评论 238 浏览 评分:0.0
1111111111111111111111111111111111111111111111111111111111111 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s; int t=0; wh…… 题解列表 2022年08月07日 0 点赞 0 评论 184 浏览 评分:0.0
蓝桥杯算法提高VIP-单词个数统计 题解(c++谨慎型) 摘要:解题思路:看了以为大佬的讲解,恍然大悟,原来字符串必须要慎之又慎!注意事项:要用getline输入。参考代码:#include<bits/stdc++.h>using namespace std;st…… 题解列表 2022年05月12日 0 点赞 0 评论 223 浏览 评分:0.0
双指针 找单词 摘要:```cpp #include using namespace std; string s1; int main(){ getline(cin, s1); int sum …… 题解列表 2022年03月19日 0 点赞 0 评论 251 浏览 评分:0.0
蓝桥杯算法提高VIP-单词个数统计 摘要:```cpp #include using namespace std; int main() { int b=1; char a[80]; gets(a); …… 题解列表 2022年03月05日 0 点赞 0 评论 310 浏览 评分:0.0
1505: 蓝桥杯算法提高VIP-单词个数统计(.............) 摘要:```cpp #include #include using namespace std; int main() { char str[1000]; gets_s(str…… 题解列表 2022年02月18日 0 点赞 0 评论 310 浏览 评分:0.0
最简单思路 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s; getline(cin,s); int …… 题解列表 2023年08月04日 0 点赞 0 评论 146 浏览 评分:0.0
1505: 蓝桥杯算法提高VIP-单词个数统计 摘要:#include<bits/stdc++.h> using namespace std; int main(){ string s; getline(cin,s); …… 题解列表 2021年12月17日 0 点赞 0 评论 159 浏览 评分:0.0
统计单词C与C++都可 摘要:解题思路:注意事项:参考代码:#include <iostream>//C用户为<stdio.h>#include <cctype>//c用户改为<ctype.h>using namespace st…… 题解列表 2021年11月06日 0 点赞 0 评论 268 浏览 评分:0.0
c++间接方法,超级简单 摘要:解题思路:一段话中判断英语单词的个数,其实可以间接来做,就是通过英文空格的个数,进而判断单词出现的个数注意事项:能通过所有测试,我不清楚题目说的英文输入包括不包括标点符号,如果仅仅只是看单词的输入的话…… 题解列表 2024年02月27日 0 点赞 0 评论 157 浏览 评分:0.0