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