题解列表

筛选

1094: 字符串的输入输出处理

摘要:解题思路:注意事项:参考代码:#include#includeint main() {     char str[1000],ch;     int n,i;     scanf("%d\n"……

1206: 字符串问题

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

贝叶斯乱搞

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

1402: 简单的字符串

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

归并排序,1719

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