成绩排序 (C++代码) 摘要:# 思路 实现自定义类型的比较规则即可。 # 代码 ```cpp #include #include // 结构体:学生信息,包括姓名、年龄、成绩 struct Student …… 题解列表 2019年12月29日 0 点赞 0 评论 2397 浏览 评分:5.2
数据结构-稀疏矩阵转置-题解(C语言代码) 摘要:因为这里的M*N小于12500,所以就把12500开根号取111; 代码如下: ```c #include #define M 111 #define N 111 #define Ma…… 题解列表 2020年03月14日 0 点赞 0 评论 1167 浏览 评分:5.2
王牌花色-题解(C++代码) 摘要:```cpp #include #include using namespace std; string f(string s){ if(s=="J"){ re…… 题解列表 2020年03月28日 0 点赞 0 评论 1009 浏览 评分:5.2
[STL训练]Who's in the Middle -题解(C语言代码) 摘要:这题主要是考查STL中的sort函数用法。即为sort(数组首地址,数组的末地址的后一位,cmp) cmp是比较函数,如果未给出,则默认为从小拍到大。 ```cpp #include #inc…… 题解列表 2020年10月10日 0 点赞 0 评论 1163 浏览 评分:5.2
[编程入门]利润计算-题解(C语言代码) 摘要:解题思路:这题不难,只是比较费时间和眼力罢了;注意事项:参考代码:#include <stdio.h>int main(){ int a,b; scanf("%d",&a); if(a>=0 && a…… 题解列表 2020年11月24日 0 点赞 1 评论 782 浏览 评分:5.2
蓝桥杯2018年第九届真题-交换次数-题解(Java代码) 摘要:解题思路:①首先统计ABT三个字母的次数②ABT全排列有6种方式,调用cal(String s1, String s2, String s3, char c1, char c2, char c3)方法…… 题解列表 2021年01月13日 0 点赞 0 评论 2003 浏览 评分:5.2
求圆的面积-题解(Python代码) 摘要:解题思路:注意事项:参考代码:import math r=float(input()) s=math.pi*r*r print('%.2f'%s)…… 题解列表 2021年01月27日 0 点赞 0 评论 1161 浏览 评分:5.2
优质题解 [编程入门]自定义函数求一元二次方程-题解(C++代码) 思路清晰,过程详细 摘要:解题思路:求根公式为 ```math x_1,x_2=\frac{-b\pm \sqrt{\Delta}}{2a}, \quad \Delta=b^2-4ac ``` 自定义函数delta_…… 题解列表 2022年01月25日 0 点赞 4 评论 3099 浏览 评分:5.2
信息学奥赛一本通T1602-烽火传递 摘要:数据太水,居然混过去了 ```cpp #include #include using namespace std; int n, m; int dp[200005]; int a[200…… 题解列表 2022年03月25日 0 点赞 0 评论 540 浏览 评分:5.2
我觉得这样写挺傻的#密码截获 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int huiwen(char a[], int i, int j){ int r=i;…… 题解列表 2022年06月07日 0 点赞 0 评论 450 浏览 评分:5.2