题解列表

筛选

DNA C++题解+思路

摘要:# 解题思路: 首先输入长和宽,然后循环(后面有注释)如果在对角线上就输出X否则就输出空格。(只有在行不等于零而且数量为第一个同达小时才会输出)(就是只有第一个会往上多一行) >注意事项: ……

数组的距离

摘要:#include #include using namespace std; int main() {     int num1,num2,a[1010],b[1010],temp,sum=……

素数回文优质题解c++

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;bool a[100001000];int main(){ long long n1,n2,t……

tom数c++题解

摘要:解题思路:注意事项:参考代码:#include using namespace std; int main(){ long long n,sum=0,s,temp; while(cin>>n)……

自由下落的距离计算

摘要:解题思路:注意事项:路程最后一次不算反弹参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){    int m……

有规律的数列求和

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){    int n;    cin>>……

蓝桥杯2022年第十三届决赛真题-故障

摘要:# 蓝桥杯2022年第十三届决赛真题-故障 全概率与贝叶斯公式。 用100减去未出现的现象的对应故障的概率。 令各个现象为Ri, 故障为A,B,C... 则P(R1R2R3..Rm|A) ……

[编程入门]结构体之时间设计

摘要:注意事项:1、从程序的第42行开始,不需要再写12月的代码了,因为第9行循环变量i最大范围是“最大的月份-1“,即12-1=11,不会轮到12月。2、一定要注意程序的第51行要加上一个‘;’,否则会出……