辗转相除法求最大公约数与最小公倍数 摘要:解题思路:1.最大公约数:辗转相除 2.最小公倍数:两数乘积/最大公约数注意事项:参考代码:#include<stdio.h> int Max_GY(int x,int y); int Min_…… 题解列表 2023年02月28日 0 点赞 0 评论 458 浏览 评分: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 评论 579 浏览 评分:0.0
3021基础解法(Python) 摘要:注意事项:题目下标问题参考代码:n_num = int(input())for i in range(n_num) : n_in = int(input()) if n_in == 1 :…… 题解列表 2023年02月28日 0 点赞 0 评论 635 浏览 评分:9.9
2825: 计算多项式的值(C) 摘要:参考代码:#include<stdio.h> #include<math.h> int main() { double x; int n; scanf("%lf…… 题解列表 2023年02月28日 0 点赞 0 评论 607 浏览 评分:0.0
2821: 开关灯 摘要:参考代码:#include<stdio.h> #include<math.h> int main() { int n,m; scanf("%d %d",&n,&m); …… 题解列表 2023年02月28日 0 点赞 0 评论 546 浏览 评分:0.0
1429: 蓝桥杯2014年第五届真题-兰顿蚂蚁(BFS版) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> #include<cmath> #include<algorithm> #include…… 题解列表 2023年02月28日 0 点赞 0 评论 481 浏览 评分:9.9
辗转相除法求最大公因数 思路:最小公倍数=两个整数的乘积/最大公因数最小公倍数辗转相除代码:#includeintmain(){inta,b;inttemp,m1,m2,ab;scanf("%d%d",&a,&b);ab=a*b;if(a 题解列表 2023年02月28日 0 点赞 0 评论 535 浏览 评分:0.0
2024题C语言引用C++解法 解题思路:主要分为分成结构体定义,链表尾插遍历查找并删除链表元素和打印链表注意事项:主要问题在于遍历查找删除链表元素,就是用指针s来记录L的上一个位置,L来遍历,L往后跳一格,如果没查到s就瞬移到L,然后L再往后跳一格,要是查到了,L就往回跳一格就是s, 题解列表 2023年02月28日 0 点赞 0 评论 684 浏览 评分:9.9
2815: 求特殊自然数(C) 摘要:参考代码:#include<stdio.h> #include<math.h> int main() { // 七进制的三位数为100~666 int x,y; …… 题解列表 2023年02月28日 0 点赞 1 评论 682 浏览 评分:9.9
01背包+二维费用问题 ```//https://www.dotcpp.com/oj/problem3056.html#include#include#includeusingnamespacestd;constintN=1010,M=510;intn,V1,V2;intv1[N], 题解列表 2023年02月28日 0 点赞 0 评论 541 浏览 评分:0.0