2825: 计算多项式的值(C) 摘要:参考代码:#include<stdio.h> #include<math.h> int main() { double x; int n; scanf("%lf…… 题解列表 2023年02月28日 0 点赞 0 评论 428 浏览 评分:0.0
2821: 开关灯 摘要:参考代码:#include<stdio.h> #include<math.h> int main() { int n,m; scanf("%d %d",&n,&m); …… 题解列表 2023年02月28日 0 点赞 0 评论 346 浏览 评分:0.0
1429: 蓝桥杯2014年第五届真题-兰顿蚂蚁(BFS版) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> #include<cmath> #include<algorithm> #include…… 题解列表 2023年02月28日 0 点赞 0 评论 297 浏览 评分:9.9
辗转相除法求最大公因数 摘要:思路: 最小公倍数 = 两个整数的乘积/最大公因数 最小公倍数 辗转相除 代码: #include int main(){ int a, b; …… 题解列表 2023年02月28日 0 点赞 0 评论 347 浏览 评分:0.0
2024题C语言引用C++解法 摘要:解题思路:主要分为分成结构体定义,链表尾插遍历查找并删除链表元素和打印链表注意事项:主要问题在于遍历查找删除链表元素,就是用指针s来记录L的上一个位置,L来遍历,L往后跳一格,如果没查到s就瞬移到L,…… 题解列表 2023年02月28日 0 点赞 0 评论 509 浏览 评分:9.9
2815: 求特殊自然数(C) 摘要:参考代码:#include<stdio.h> #include<math.h> int main() { // 七进制的三位数为100~666 int x,y; …… 题解列表 2023年02月28日 0 点赞 1 评论 551 浏览 评分:9.9
01背包+二维费用问题 摘要:``` // https://www.dotcpp.com/oj/problem3056.html #include #include #include using names…… 题解列表 2023年02月28日 0 点赞 0 评论 384 浏览 评分:0.0
dfs简单且明了-Python 摘要:解题思路:就是想吐槽一下:题目都说了由不同字母组成 但是测试用例有相同的 害我第一次没通过 真老6注意事项:方法:就是要用下标1-n来对应input输入的字母保证不会重复 最后再输出下标对应的字母就o…… 题解列表 2023年02月28日 0 点赞 0 评论 831 浏览 评分:8.0
1030: [编程入门]二维数组的转置 摘要:解题思路:把二维数组转置,也就是把各个元素的列号和行号互换(如arr[1][2]转置后成为arr[2][1])。注意事项:这里不使用新的数组保存转置后的数组,然后再输出。但在函数中转置输出的数组并不改…… 题解列表 2023年02月28日 0 点赞 0 评论 359 浏览 评分:0.0
题解 1139: C语言训练-求素数问题(没有最后空格版) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int n, i,j; scanf("%d", &n); printf("2"); for (i…… 题解列表 2023年02月28日 0 点赞 0 评论 725 浏览 评分:9.9