题目 2750: 字符菱形 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<stdlib.h> using namespace std; int main() { char c;…… 题解列表 2024年02月28日 0 点赞 0 评论 478 浏览 评分:0.0
题目 2774: 计算三角形面积 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<math.h> using namespace std; int main() { double x1…… 题解列表 2024年02月28日 0 点赞 0 评论 309 浏览 评分:0.0
C语言-公约公倍 摘要:解题思路:最小公倍数易求,最大公约数难求,要用递归,为避免用递归的麻烦,直接先求最小公倍数,再通过最小公倍数与最大公约数之积=输入的两数乘积得出最大公约数注意事项:参考代码:#include<stdi…… 题解列表 2024年02月29日 0 点赞 0 评论 316 浏览 评分:0.0
编写题解 2813: 药房管理 摘要:解题思路:注意事项:参考代码:m=int(input())n=int(input())list1=list(map(int,input().split()))#记录每个病人希望取走的药品数量z=0#没…… 题解列表 2024年02月29日 0 点赞 0 评论 347 浏览 评分:0.0
绝对值排序(STL秒了) 不需要用队列 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; bool cmp(int &x,int &y){ return ab…… 题解列表 2024年02月29日 0 点赞 0 评论 281 浏览 评分:0.0
【C语言题解】题目 1120: C语言训练-"水仙花数"问题2 摘要:解题思路:注意事项:参考代码:#include <stdio.h>//定义函数,判断该数是否为水仙花数int shui (int);int main(){ int i; //遍历所有的三位…… 题解列表 2024年02月29日 0 点赞 0 评论 356 浏览 评分:0.0
有序线性表的有序合并——面向对象 摘要:```cpp #include using namespace std; struct node { int data; node* next; /*构造*/…… 题解列表 2024年02月29日 0 点赞 0 评论 440 浏览 评分:0.0
使用字符串存储因子 摘要:解题思路:使用字符串存储因子注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[…… 题解列表 2024年02月29日 0 点赞 0 评论 352 浏览 评分: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 评论 303 浏览 评分:0.0
用C语言解决三个数找最大值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); int max=…… 题解列表 2024年02月29日 2 点赞 0 评论 841 浏览 评分:0.0