题目 2774: 计算三角形面积 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<math.h> using namespace std; int main() { double x1…… 题解列表 2024年02月28日 0 点赞 0 评论 151 浏览 评分:0.0
C语言-公约公倍 摘要:解题思路:最小公倍数易求,最大公约数难求,要用递归,为避免用递归的麻烦,直接先求最小公倍数,再通过最小公倍数与最大公约数之积=输入的两数乘积得出最大公约数注意事项:参考代码:#include<stdi…… 题解列表 2024年02月29日 0 点赞 0 评论 164 浏览 评分:0.0
编写题解 2813: 药房管理 摘要:解题思路:注意事项:参考代码:m=int(input())n=int(input())list1=list(map(int,input().split()))#记录每个病人希望取走的药品数量z=0#没…… 题解列表 2024年02月29日 0 点赞 0 评论 175 浏览 评分:0.0
绝对值排序(STL秒了) 不需要用队列 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; bool cmp(int &x,int &y){ return ab…… 题解列表 2024年02月29日 0 点赞 0 评论 134 浏览 评分:0.0
【C语言题解】题目 1120: C语言训练-"水仙花数"问题2 摘要:解题思路:注意事项:参考代码:#include <stdio.h>//定义函数,判断该数是否为水仙花数int shui (int);int main(){ int i; //遍历所有的三位…… 题解列表 2024年02月29日 0 点赞 0 评论 182 浏览 评分:0.0
有序线性表的有序合并——面向对象 摘要:```cpp #include using namespace std; struct node { int data; node* next; /*构造*/…… 题解列表 2024年02月29日 0 点赞 0 评论 229 浏览 评分:0.0
使用字符串存储因子 摘要:解题思路:使用字符串存储因子注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[…… 题解列表 2024年02月29日 0 点赞 0 评论 188 浏览 评分:0.0
java摘苹果问题 摘要:注意事项:注意i是小于n而不是等于n参考代码:Scanner sc = new Scanner(System.in);int n = sc.nextInt();int m = sc.nextInt()…… 题解列表 2024年02月29日 0 点赞 0 评论 123 浏览 评分:0.0
用C语言解决三个数找最大值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); int max=…… 题解列表 2024年02月29日 0 点赞 0 评论 479 浏览 评分:0.0
用lamda函数来计算delta 摘要:解题思路:首先从math库导入sqrt函数用来计算平方根,然后接受输入,计算delta,通过条件判断来计算,特别注意<0时需要实部虚部分开计算注意事项:注意x1 x2之间有空格参考代码:from ma…… 题解列表 2024年03月01日 0 点赞 0 评论 247 浏览 评分:0.0