题解列表

筛选

链表的基本操作,1676

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>struct Node{ int data; struct No……

链表的基本操作,1676

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>struct Node{ int data; struct No……

归并排序,1719

摘要:解题思路:注意事项:参考代码:#include <stdio.h>void quick_sort(int num[], int low, int high){    int i, j, temp;  ……

1402: 简单的字符串

摘要:#include<stdio.h> #include<string.h> int main() { int n,i,len;char str[10000]; scanf("%d\n",&n)……

贝叶斯乱搞

摘要:解题思路:妥妥的贝叶斯公式套一套即可得出答案,不过要先算出在所有故障发生的情况下对应故障原因所发生的概率是多少,可以通过给出的发生了故障的情况去计算,若某个故障现象发生了,那么直接用输入的概率即可,若……

1206: 字符串问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { char str[50]; gets(str); int len=strlen(str); fo……