利用最简单的数组巧妙解决问题 摘要:解题思路:因为这道题的难点是有重复去除的地方,所以我打算利用数组来解决,最开始初始化均为1,相加为501。当要去除哪段,就使哪段的数组等于0,那么相加之后的和就去除之后所剩余的树。注意事项:参考代码:…… 题解列表 2022年08月10日 0 点赞 1 评论 443 浏览 评分:9.9
自由下落的距离计算 摘要:解题思路:注意事项:路程最后一次不算反弹参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ int m…… 题解列表 2022年08月10日 0 点赞 0 评论 335 浏览 评分:0.0
有规律的数列求和 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ int n; cin>>…… 题解列表 2022年08月10日 0 点赞 0 评论 314 浏览 评分:0.0
判断N以内的素数 摘要:解题思路:(1)质数又称素数。一个大于1的自然数,除了1和它自身外,不能被其他自然数整除的数叫做质数;否则称为合数(规定1既不是质数也不是合数)。 (2)使用两层for循环…… 题解列表 2022年08月10日 0 点赞 1 评论 417 浏览 评分:9.9
蓝桥杯2022年第十三届决赛真题-故障 摘要:# 蓝桥杯2022年第十三届决赛真题-故障 全概率与贝叶斯公式。 用100减去未出现的现象的对应故障的概率。 令各个现象为Ri, 故障为A,B,C... 则P(R1R2R3..Rm|A) …… 题解列表 2022年08月10日 0 点赞 0 评论 1345 浏览 评分:9.9
11111111111111111111111111111111111111111111111111111111a 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,m; while(scanf("%d",&…… 题解列表 2022年08月10日 0 点赞 0 评论 429 浏览 评分:0.0
871da84df5s6af4ads\ 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string a,b; while(cin>>a>>b) {…… 题解列表 2022年08月10日 0 点赞 0 评论 343 浏览 评分:0.0
1111111111111111111111111111111111111111111111111111111111111111111111111111111111 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<vector>#include <algorithm>using namespace std;int main(){…… 题解列表 2022年08月10日 0 点赞 0 评论 510 浏览 评分:0.0
11111111111111111111111111111111111111111 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int ch(int a[],int t,int n){ for(int i=n-1;i>=0;i--) { if(a[i]==t) …… 题解列表 2022年08月10日 0 点赞 0 评论 531 浏览 评分:0.0
c语言迭代法求平方根 摘要:解题思路:迭代算法的基本思想是: 为求一个问题的解x,可由给定的一个初值x0,根据某一迭代公式得到一个新的值x1,这个新值x1比初值x0 更接近要求的值x;再以新值作为初值,即:x1→x0,重新按原来…… 题解列表 2022年08月10日 0 点赞 3 评论 783 浏览 评分:8.7