题解列表
蓝桥杯2022年第十三届决赛真题-故障
摘要:# 蓝桥杯2022年第十三届决赛真题-故障
全概率与贝叶斯公式。
用100减去未出现的现象的对应故障的概率。
令各个现象为Ri, 故障为A,B,C...
则P(R1R2R3..Rm|A) ……
11111111111111111111111111111111111111111111111111111111a
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,m; while(scanf("%d",&……
871da84df5s6af4ads\
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string a,b; while(cin>>a>>b) {……
1111111111111111111111111111111111111111111111111111111111111111111111111111111111
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<vector>#include <algorithm>using namespace std;int main(){……
11111111111111111111111111111111111111111
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int ch(int a[],int t,int n){ for(int i=n-1;i>=0;i--) { if(a[i]==t) ……
c语言迭代法求平方根
摘要:解题思路:迭代算法的基本思想是: 为求一个问题的解x,可由给定的一个初值x0,根据某一迭代公式得到一个新的值x1,这个新值x1比初值x0 更接近要求的值x;再以新值作为初值,即:x1→x0,重新按原来……
沸羊羊 C# 2248: 蓝桥杯算法提高-输出二进制表示 (bitset二进制函数)
摘要:
```cpp
#include
#include //bitset二进制转换函数
using namespace std;
int main()
{
int n;
……
[编程入门]结构体之时间设计
摘要:注意事项:1、从程序的第42行开始,不需要再写12月的代码了,因为第9行循环变量i最大范围是“最大的月份-1“,即12-1=11,不会轮到12月。2、一定要注意程序的第51行要加上一个‘;’,否则会出……