堆排序(数组模拟堆)(acwing) 摘要:解题思路: 首先初始化堆(从小到大),然后每次输出堆首元素 注意事项: 更新堆时要注意比较的方式参考代码:#include<iostream> using namespace std;…… 题解列表 2023年07月31日 0 点赞 0 评论 183 浏览 评分:9.9
优质题解 1007:[编程入门]分段函数求值 摘要:解题思路:声明两个变量x,y,其中x 获取用户输入,y根据函数获取赋值。注意事项: 1,函数中“1<=x<10"在if 条件语句中要写成”x>=1&&x<10“。2,”2x-1“”3x-11“两个式子…… 题解列表 2023年07月31日 3 点赞 9 评论 4151 浏览 评分:8.4
简单调用函数解决问题 摘要:参考代码:# include <stdio.h># include <string.h> //使用strlen()计算数组长度需添加此头文件void abc(char str[])…… 题解列表 2023年07月31日 0 点赞 0 评论 248 浏览 评分:0.0
1005:[编程入门]温度转换 摘要:解题思路:输入华氏温度,输出摄氏温度。注意事项:1,取两位小数的写法。2,原公式乘号省略。3,注意题目中要求的输出形式。参考代码:#include<stdio.h>int main(){ flo…… 题解列表 2023年07月31日 0 点赞 0 评论 237 浏览 评分:0.0
优质题解 1238: 演讲大赛评分(C++解析) 摘要:代码解析: 定义了一个Player结构体,包含选手的姓名和分数列表。 然后,定义了一个calculateAverageScore函数,用于计算选手的平均分。函数中,首先将选手的分数列表复制到一个新…… 题解列表 2023年07月31日 0 点赞 0 评论 482 浏览 评分:9.9
多组输入的循环方式解决 摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>int main() { int n; scanf("%d", &n);…… 题解列表 2023年07月31日 0 点赞 0 评论 249 浏览 评分:0.0
蓝桥杯算法提高VIP-最大最小值 摘要:# max_element 和 min_element ```c++ #include #include #include #include using namespace std; i…… 题解列表 2023年07月31日 0 点赞 0 评论 303 浏览 评分:0.0
信息学奥赛一本通T1239-统计数字 C++ STL 实现 摘要:# STL map `key`-> `value` ```c++ #include #include #include using namespace std; int main()…… 题解列表 2023年07月31日 0 点赞 0 评论 664 浏览 评分:6.0
画矩形(思路简单) 摘要:解题思路:注意事项:根据条件写代码参考代码:#include <stdio.h>int main(){ int x,y,c,n; scanf("%d %d %c %d",&x,&y,&c,…… 题解列表 2023年07月31日 0 点赞 0 评论 320 浏览 评分:9.9
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>typedef struct student{ int id; int score; …… 题解列表 2023年07月30日 0 点赞 0 评论 300 浏览 评分:0.0