计算线段长度(最标准解法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double Xa,Ya,Xb,Yb; scanf("%lf %…… 题解列表 2024年08月02日 0 点赞 0 评论 398 浏览 评分:9.9
计算三角形面积(超标准答案) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> double distance(float x1, float y1, float x2, fl…… 题解列表 2024年08月02日 1 点赞 0 评论 518 浏览 评分:9.9
快速排序,交换法,挖坑法,前后指针法。 摘要: #include #include void s(int* a, int* b) { int tmp = *a; *a = *…… 题解列表 2024年08月02日 0 点赞 0 评论 145 浏览 评分:0.0
计算2的幂(超简单解答) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int main() { int n; scanf("%d",&n); …… 题解列表 2024年08月02日 0 点赞 0 评论 557 浏览 评分:9.9
列出最简真分数序列* 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int nums_1[100] = { 0 }; int len_1 =…… 题解列表 2024年08月02日 0 点赞 0 评论 149 浏览 评分:9.9
正在路上,每一步都是生活 摘要:``` n,m,mx,my=list(map(int,input().split())) dp=[[0 for x in range(m+1)]for y in range(n+1)] k=[[…… 题解列表 2024年08月03日 0 点赞 0 评论 351 浏览 评分:0.0
正在路上,每一步都是生活 摘要:``` n=int(input()) sl=[0]*(n+2) sl[1]=1 sl[2]=1 for i in range(3,n+1): sl[i]=sl[i-1]+sl[i-…… 题解列表 2024年08月03日 0 点赞 0 评论 445 浏览 评分:0.0
正在路上,每一步都是生活 摘要:```n=int(input()) mc=[] for i in range(n): s=int(input()) mc.append(s) k=max(mc) sl=[0…… 题解列表 2024年08月03日 0 点赞 0 评论 437 浏览 评分:0.0
本题不是排序,不是排序 摘要:重要的事情说三遍,本题很坑,因为这道题不是让你排序,其实是找到最大值和最小值然后和数组首元素和尾元素交换位置即可,其他元素不用管。 ```c #include #include void …… 题解列表 2024年08月03日 0 点赞 0 评论 182 浏览 评分:0.0
大数的阶乘C语言代码 摘要:解题思路:大数的阶乘很容易超出基本数据类型的范围造成数据溢出,所以需要定义一个数组来存储数据(数组可以存放无限大的数据)。阶乘的本质就是数的相乘,因此在计算大数的阶乘的时候可以通过模拟笔算的方式,将数…… 题解列表 2024年08月03日 3 点赞 0 评论 458 浏览 评分:10.0