贝叶斯乱搞 解题思路:妥妥的贝叶斯公式套一套即可得出答案,不过要先算出在所有故障发生的情况下对应故障原因所发生的概率是多少,可以通过给出的发生了故障的情况去计算,若某个故障现象发生了,那么直接用输入的概率即可,若没发生则使用相反概率(即用1减去)即可。其他的就看公式自己套一套就行。 题解列表 2022年06月23日 0 点赞 0 评论 1204 浏览 评分:0.0
2513: 信息学奥赛一本通T1615-序列的第 k 个数 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;const long long M=200907;long long quickpow(lo…… 题解列表 2022年06月23日 0 点赞 0 评论 805 浏览 评分: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 评论 438 浏览 评分:0.0
1733: 堆栈的使用 答案太少,凑数的 摘要:```cpp #include using namespace std; int main() { int n; while(cin >> n) { …… 题解列表 2022年06月23日 0 点赞 0 评论 644 浏览 评分:0.0
编写题解 2549: 单词统计 为数不多的c++ ```cpp#includeusingnamespacestd;intmain(){strings1,s2;intn,m,i,j,cnt=0,pos=0;cin>>n>>s1;cin>>m>>s2;for(i=0;i 题解列表 2022年06月23日 0 点赞 0 评论 769 浏览 评分:0.0
归并排序,1719 摘要:解题思路:注意事项:参考代码:#include <stdio.h>void quick_sort(int num[], int low, int high){ int i, j, temp; …… 题解列表 2022年06月23日 0 点赞 0 评论 767 浏览 评分:0.0
链表的基本操作,1676 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>struct Node{ int data; struct No…… 题解列表 2022年06月23日 0 点赞 0 评论 493 浏览 评分:0.0
链表的基本操作,1676 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>struct Node{ int data; struct No…… 题解列表 2022年06月23日 0 点赞 0 评论 479 浏览 评分:0.0
简易代码(C)望空破茧 摘要:解题思路:输入一个正整数n (1≤ n ≤6),再输入一个n 行n列的矩阵,找出该矩阵中绝对值最大的元素以及它的行下标和列下标。注意事项: int n; …… 题解列表 2022年06月23日 0 点赞 0 评论 589 浏览 评分:0.0
链表合并,1052 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>struct Student{ int num; int score;};struct Node{ …… 题解列表 2022年06月23日 0 点赞 0 评论 446 浏览 评分:0.0