编写题解 2549: 单词统计 为数不多的c++ 摘要:```cpp #include using namespace std; int main() { string s1,s2; int n,m,i,j,cnt=0,pos=0; c…… 题解列表 2022年06月23日 0 点赞 0 评论 629 浏览 评分:0.0
1733: 堆栈的使用 答案太少,凑数的 摘要:```cpp #include using namespace std; int main() { int n; while(cin >> n) { …… 题解列表 2022年06月23日 0 点赞 0 评论 503 浏览 评分: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 评论 316 浏览 评分:0.0
2513: 信息学奥赛一本通T1615-序列的第 k 个数 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;const long long M=200907;long long quickpow(lo…… 题解列表 2022年06月23日 0 点赞 0 评论 649 浏览 评分:0.0
贝叶斯乱搞 摘要:解题思路:妥妥的贝叶斯公式套一套即可得出答案,不过要先算出在所有故障发生的情况下对应故障原因所发生的概率是多少,可以通过给出的发生了故障的情况去计算,若某个故障现象发生了,那么直接用输入的概率即可,若…… 题解列表 2022年06月23日 0 点赞 0 评论 1005 浏览 评分:0.0
1206: 字符串问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { char str[50]; gets(str); int len=strlen(str); fo…… 题解列表 2022年06月23日 0 点赞 0 评论 406 浏览 评分:0.0
题解 1144:自守数问题(C代码) 摘要:解题思路:注意事项:参考代码:#include<math.h>int Number(int i,int count);int main(){ long long sum; for (int…… 题解列表 2022年06月23日 0 点赞 0 评论 585 浏览 评分:9.9
1126: C语言训练-字符串正反连接 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { char str[50]; gets(str); printf("%s",str); int l…… 题解列表 2022年06月23日 0 点赞 0 评论 372 浏览 评分:0.0
1094: 字符串的输入输出处理 摘要:解题思路:注意事项:参考代码:#include#includeint main() { char str[1000],ch; int n,i; scanf("%d\n"…… 题解列表 2022年06月23日 0 点赞 0 评论 339 浏览 评分:0.0
[编程入门]Sn的公式求和,C语言递归解法 摘要:解题思路:主要是如何方便的生成222222,这样的数字,可以通过递归的方式,观察得到f(n)=f(n-1)*10+2,所以用递归写还是比较方便的。参考代码:#include<stdio.h> int…… 题解列表 2022年06月22日 0 点赞 0 评论 366 浏览 评分:0.0