题解 1487: 蓝桥杯算法提高VIP-不同单词个数统计 set 摘要:#include<iostream> #include<algorithm> #include<string> #include<set> using namespace std; int …… 题解列表 2022年06月22日 0 点赞 1 评论 231 浏览 评分:0.0
C语言-简洁易理解 摘要:解题思路:题目要求输入前n行原样输出,之后的行是不带空格的字符串,字符串间以空格或换行隔开,要求每个字符串单行输出,且每行输出间要输出空行注意事项:1.前n行与之后的行输入方式不同,前n行可用gets…… 题解列表 2022年06月22日 0 点赞 0 评论 316 浏览 评分:0.0
[编程入门]Sn的公式求和,C语言递归解法 摘要:解题思路:主要是如何方便的生成222222,这样的数字,可以通过递归的方式,观察得到f(n)=f(n-1)*10+2,所以用递归写还是比较方便的。参考代码:#include<stdio.h> int…… 题解列表 2022年06月22日 0 点赞 0 评论 240 浏览 评分:0.0
1094: 字符串的输入输出处理 摘要:解题思路:注意事项:参考代码:#include#includeint main() { char str[1000],ch; int n,i; scanf("%d\n"…… 题解列表 2022年06月23日 0 点赞 0 评论 256 浏览 评分:0.0
1126: C语言训练-字符串正反连接 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { char str[50]; gets(str); printf("%s",str); int l…… 题解列表 2022年06月23日 0 点赞 0 评论 295 浏览 评分:0.0
1206: 字符串问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { char str[50]; gets(str); int len=strlen(str); fo…… 题解列表 2022年06月23日 0 点赞 0 评论 321 浏览 评分:0.0
贝叶斯乱搞 摘要:解题思路:妥妥的贝叶斯公式套一套即可得出答案,不过要先算出在所有故障发生的情况下对应故障原因所发生的概率是多少,可以通过给出的发生了故障的情况去计算,若某个故障现象发生了,那么直接用输入的概率即可,若…… 题解列表 2022年06月23日 0 点赞 0 评论 818 浏览 评分:0.0
2513: 信息学奥赛一本通T1615-序列的第 k 个数 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;const long long M=200907;long long quickpow(lo…… 题解列表 2022年06月23日 0 点赞 0 评论 559 浏览 评分:0.0
1402: 简单的字符串 摘要:#include<stdio.h> #include<string.h> int main() { int n,i,len;char str[10000]; scanf("%d\n",&n)…… 题解列表 2022年06月23日 0 点赞 0 评论 227 浏览 评分:0.0
1733: 堆栈的使用 答案太少,凑数的 摘要:```cpp #include using namespace std; int main() { int n; while(cin >> n) { …… 题解列表 2022年06月23日 0 点赞 0 评论 431 浏览 评分:0.0