题解列表

筛选

蓝桥杯算法提高VIP-单词个数统计(指针)

摘要:文章中的单词都是用空格间隔开的,换句话说,单词数=空格数+1。程序不认识单词,但是程序认识空格。这样,整个问题实际上转换成了统计文章中的空格数。可以使用指针写。也可以使用数组写第一种方法 使用指针//……

2773: 计算线段长度

摘要:```cpp #include #include #include using namespace std; int main() { double xa, xb, ya, ……

判断水仙花

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){    int n,ge,shi,bai;    //scanf("%d",&n)……

3020: 最大数位置

摘要:``` #include using namespace std; int a[100000],n,maxx,num; int main(){ cin>>n; maxx = -1; ……

简单求和训练

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){    float a,b,c;    float sum=0,sum1=0,su……

结构体之成绩统计

摘要:解题思路:注意事项:参考代码#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <string.h> // 定义学生结构体……