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