题解列表

筛选

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

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

统计字符个数

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

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

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

数据结构-八进制数

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

[编程入门]二进制移位练习

摘要:解题思路:运用位移和与运算符。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int n;int main(){    scanf("%d……

c++兰顿蚂蚁问题

摘要:参考代码:#include<iostream> using namespace std; int dx[4]={-1,0,1,0};//上右下左顺时针 int dy[4]={0,1,0,-1};……

C++ 代码演示 注意条件的过滤

摘要: 1. 要求因子和相等; 2. 要求亲密数不同; 3. 要求亲密数对唯一; 4. 要求亲密数对大的在后,小的在前; ``` #include #include #incl……

,,,,,,,,,,,

摘要:解题思路:注意事项:参考代码:#include <stdio.h>struct student{    char number[100];    char name[100];    int scor……