[编程入门]水仙花数判断 摘要:解题思路: 1.是个三位数 2.每位数的立方之和等于这个三位数本身 注意事项: 只输出水仙花数,不是水仙花数记得用continue继续for循环查找,直至找到所有水仙花数参考…… 题解列表 2023年02月28日 0 点赞 0 评论 290 浏览 评分:0.0
1030: [编程入门]二维数组的转置 摘要:解题思路:把二维数组转置,也就是把各个元素的列号和行号互换(如arr[1][2]转置后成为arr[2][1])。注意事项:这里不使用新的数组保存转置后的数组,然后再输出。但在函数中转置输出的数组并不改…… 题解列表 2023年02月28日 0 点赞 0 评论 312 浏览 评分:0.0
01背包+二维费用问题 摘要:``` // https://www.dotcpp.com/oj/problem3056.html #include #include #include using names…… 题解列表 2023年02月28日 0 点赞 0 评论 346 浏览 评分:0.0
辗转相除法求最大公因数 摘要:思路: 最小公倍数 = 两个整数的乘积/最大公因数 最小公倍数 辗转相除 代码: #include int main(){ int a, b; …… 题解列表 2023年02月28日 0 点赞 0 评论 309 浏览 评分:0.0
2821: 开关灯 摘要:参考代码:#include<stdio.h> #include<math.h> int main() { int n,m; scanf("%d %d",&n,&m); …… 题解列表 2023年02月28日 0 点赞 0 评论 284 浏览 评分:0.0
2825: 计算多项式的值(C) 摘要:参考代码:#include<stdio.h> #include<math.h> int main() { double x; int n; scanf("%lf…… 题解列表 2023年02月28日 0 点赞 0 评论 393 浏览 评分:0.0
2826: 雇佣兵 摘要:#include<stdio.h> #include<math.h> int main() { int m,n,x; scanf("%d %d %d",&m,&n,&x)…… 题解列表 2023年02月28日 0 点赞 0 评论 280 浏览 评分:0.0
辗转相除法求最大公约数与最小公倍数 摘要:解题思路:1.最大公约数:辗转相除 2.最小公倍数:两数乘积/最大公约数注意事项:参考代码:#include<stdio.h> int Max_GY(int x,int y); int Min_…… 题解列表 2023年02月28日 0 点赞 0 评论 192 浏览 评分:0.0
自定义函数求一元二次方程 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int main() { //输入处理 float a,b,c,del…… 题解列表 2023年02月28日 0 点赞 0 评论 245 浏览 评分:0.0
[编程入门]自定义函数之字符提取 摘要:解题思路:注意事项:参考代码:def copy(a): lst="aeiou" for i in a: for j in lst: if i == j:…… 题解列表 2023年02月28日 0 点赞 0 评论 265 浏览 评分:0.0