二级C语言-寻找矩阵最值-题解(C语言代码) 摘要:```c #include int main() { int n,i; scanf("%d",&n); getchar(); int a[n][n]; int max_i=…… 题解列表 2019年12月02日 0 点赞 0 评论 1177 浏览 评分:5.2
成绩排序 (C++代码) 摘要:# 思路 实现自定义类型的比较规则即可。 # 代码 ```cpp #include #include // 结构体:学生信息,包括姓名、年龄、成绩 struct Student …… 题解列表 2019年12月29日 0 点赞 0 评论 2262 浏览 评分:5.2
数据结构-稀疏矩阵转置-题解(C语言代码) 摘要:因为这里的M*N小于12500,所以就把12500开根号取111; 代码如下: ```c #include #define M 111 #define N 111 #define Ma…… 题解列表 2020年03月14日 0 点赞 0 评论 1042 浏览 评分:5.2
王牌花色-题解(C++代码) 摘要:```cpp #include #include using namespace std; string f(string s){ if(s=="J"){ re…… 题解列表 2020年03月28日 0 点赞 0 评论 848 浏览 评分:5.2
[STL训练]Who's in the Middle -题解(C语言代码) 摘要:这题主要是考查STL中的sort函数用法。即为sort(数组首地址,数组的末地址的后一位,cmp) cmp是比较函数,如果未给出,则默认为从小拍到大。 ```cpp #include #inc…… 题解列表 2020年10月10日 0 点赞 0 评论 1053 浏览 评分:5.2
[编程入门]利润计算-题解(C语言代码) 摘要:解题思路:这题不难,只是比较费时间和眼力罢了;注意事项:参考代码:#include <stdio.h>int main(){ int a,b; scanf("%d",&a); if(a>=0 && a…… 题解列表 2020年11月24日 0 点赞 1 评论 704 浏览 评分: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 评论 1849 浏览 评分:5.2
求圆的面积-题解(Python代码) 摘要:解题思路:注意事项:参考代码:import math r=float(input()) s=math.pi*r*r print('%.2f'%s)…… 题解列表 2021年01月27日 0 点赞 0 评论 1062 浏览 评分:5.2
c++极简代码,思路较为简单 摘要:解题思路: 首先定义两个函数,其本质是用来求和的,两个一起用来求阶乘,另一个关键便是用while循环来进行累加。思路并不是很难注意事项: 不知为何就是在c语言网上运行失败,但是在devc++中可以正…… 题解列表 2022年01月24日 0 点赞 4 评论 909 浏览 评分: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 评论 3011 浏览 评分:5.2