题解列表

筛选

数据结构-八进制数

摘要:解题思路:直接循环输入输出。注意事项:while输入。参考代码:#include<bits/stdc++.h>using namespace std;int s;int main(){    whil……

蓝桥杯算法提高VIP-进制转换

摘要:解题思路:直接输入输出。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int s;int main(){    scanf("%x",&……

统计字符个数

摘要:解题思路:边输入,边统计,最后输出就行了。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int letter=0,number=0,ot……

蓝桥杯算法提高VIP-企业奖金发放

摘要:解题思路:按照题目要求判断所在的范围,再输出就可以了。注意事项:要保留两位小数。参考代码:#include<bits/stdc++.h>using namespace std;double a;int……

二级C语言-分段函数 题解

摘要:解题思路:这题自己代入自定义函数,按题目要求判断。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;double x,y;int hs(do……

二级C语言-求偶数和

摘要:解题思路:用%2写注意事项:是%2不是/2;参考代码:#include<bits/stdc++.h>using namespace std;int n,s,z;int main(){     cin>……

1952: 求长方形面积

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

[编程入门]时间设计

摘要:解题思路:数组定义来累加注意事项:判断闰年参考代码:#include<bits/stdc++.h>using namespace std;int a,b,c,s,z[15]={0,31,28,31,3……