题解 1505(超简单): 蓝桥杯算法提高VIP-单词个数统计 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main(){ string s; getlin…… 题解列表 2022年11月29日 0 点赞 0 评论 125 浏览 评分:8.0
1111111111111111111111111111111111111111111111111111111111111 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s; int t=0; wh…… 题解列表 2022年08月07日 0 点赞 0 评论 191 浏览 评分:0.0
蓝桥杯算法提高VIP-单词个数统计 题解(c++谨慎型) 摘要:解题思路:看了以为大佬的讲解,恍然大悟,原来字符串必须要慎之又慎!注意事项:要用getline输入。参考代码:#include<bits/stdc++.h>using namespace std;st…… 题解列表 2022年05月12日 0 点赞 0 评论 226 浏览 评分:0.0
双指针 找单词 摘要:```cpp #include using namespace std; string s1; int main(){ getline(cin, s1); int sum …… 题解列表 2022年03月19日 0 点赞 0 评论 256 浏览 评分:0.0
蓝桥杯算法提高VIP-单词个数统计 摘要:```cpp #include using namespace std; int main() { int b=1; char a[80]; gets(a); …… 题解列表 2022年03月05日 0 点赞 0 评论 316 浏览 评分:0.0
1505: 蓝桥杯算法提高VIP-单词个数统计(.............) 摘要:```cpp #include #include using namespace std; int main() { char str[1000]; gets_s(str…… 题解列表 2022年02月18日 0 点赞 0 评论 316 浏览 评分:0.0
单词个数计算(计算空格数c++) 摘要:解题思路:计算空格的数量,加一等于单词数注意事项:输入字符串要读取空格参考代码:#include <iostream> #include <string> using namespace std; i…… 题解列表 2022年01月29日 0 点赞 0 评论 283 浏览 评分:9.3
学好英语走遍天下(但不能忘本) 摘要:解题思路:我们可以发现一句英文是由三部分组成(单词,空格,标点符号)然后我们可以发现每两个单词中间就有一个空格,那么我们只要对接收到的字符串,统计它中空格的数量,那么单词数量就是空格数量加1。注意事项…… 题解列表 2022年01月19日 0 点赞 0 评论 282 浏览 评分:9.9
1505: 蓝桥杯算法提高VIP-单词个数统计 摘要:#include<bits/stdc++.h> using namespace std; int main(){ string s; getline(cin,s); …… 题解列表 2021年12月17日 0 点赞 0 评论 162 浏览 评分:0.0
统计单词C与C++都可 摘要:解题思路:注意事项:参考代码:#include <iostream>//C用户为<stdio.h>#include <cctype>//c用户改为<ctype.h>using namespace st…… 题解列表 2021年11月06日 0 点赞 0 评论 273 浏览 评分:0.0