题解列表

筛选

奇偶数之和

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int n,a=0,b=0;    cin>>n; ……

感谢支持,谢谢你们的支持

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

树上启发式合并裸题

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;#define maxn 200010#define maxc 200010int ……

题目 1431: 蓝桥杯2014年第五届真题-分糖果题解

摘要:1.解题思路第一步:看一下所有的数是不是相等,如果是,flag=1,否则,flag=0第二步:全体减半第三步:所有的数都加上左边的数,相当于把左边数的一半给了这个数第四步:判断奇偶,如果是奇数,则这个……

和为给定数--二分

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int a[100001];int main(){ in……

蛇行矩阵(简简单单)

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

温度转换入门小白求法

摘要: ###### #根据题目我们可以知道要求为 ---- 将温度进行转换 温度转换公式为 c=5(F-32)/9,取位2小数。 这是题目要求 输入一个华氏温度,要求输出摄氏温度。且温度要取……

明明的随机数(正规)

摘要:解题思路:把相等于0,然后在排,在定义个数组,把不等于0的复制其中,然后输出.......注意事项:无参考代码:#include<iostream>#include<algorithm>using n……