note an easy problem2 摘要:哈哈哈#includeint main(){ int strcpy_my(int n, char c[], int m); int n, m; char a[100]; sca…… 题解列表 2021年02月15日 0 点赞 1 评论 815 浏览 评分:0.0
蓝桥杯算法提高VIP-队列操作 28行!!! 摘要:解题思路:注意事项:参考代码:import java.util.LinkedList; import java.util.Queue; import java.util.Scanner; pub…… 题解列表 2021年02月23日 1 点赞 0 评论 2535 浏览 评分:0.0
IP判断(JAVA语言) 摘要:具体代码如下:import java.util.Scanner; public class ContestUsing { public static void main(String[…… 题解列表 2021年02月23日 0 点赞 0 评论 821 浏览 评分:0.0
蓝桥杯算法提高VIP-因式分解 28行!!! 摘要:解题思路: 循环判断是否是约数,约数是否是素数,连接字符串,每次循环从2开始。格式化输出注意事项: 循环起始的位置参考代码:import java.util.Scanner; publi…… 题解列表 2021年02月23日 0 点赞 0 评论 2439 浏览 评分:0.0
蓝桥杯算法提高VIP-不同单词个数统计 解题思路:我先用得到getline保存字符串,然后分割字符串保留单词到一个字符串数组,同时记录单词个数,接下来去一个单词一个单词对比,如果相同,单词数目减一注意事项:分割字符串的时候注意长度参考代码:#include#include#include 题解列表 2021年02月23日 0 点赞 1 评论 542 浏览 评分:0.0 01背包 动态规划初级 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; /** * 2021年2月23日 下午5:37:46 * @author praguetramp …… 题解列表 2021年02月23日 0 点赞 0 评论 1874 浏览 评分:0.0 题解 1557: 蓝桥杯算法提高VIP-聪明的美食家 Python3 6行 摘要:解题思路:注意事项: 由于dp在某些情况下可能不存在递增子序列,所以在判断最大值时需要手动加入一个“0”元素防止出现max方法内无参数的报错。参考代码:n = int(input()) num…… 题解列表 2021年02月23日 0 点赞 0 评论 884 浏览 评分:0.0 二叉排序树的基本操作(C++) #include#includetypedefstructtreenode{intdata;structtreenode*lchild,*rchild;}bitree,*tree;typedefstructstack{tree*base,*top;intlen;}sqstack;voidinitsta 题解列表 2021年02月23日 0 点赞 0 评论 1108 浏览 评分:0.0 题解 1673: 数据结构-集合union( C语言 ) #include#includetypedefstructnode{intdata;structnode*next;}sqnode;sqnode*creat(intnum){sqnode*head,*p1,*p2;head=(sqnode*)malloc(sizeof(sqnode));head->n 题解列表 2021年02月23日 0 点赞 0 评论 724 浏览 评分:0.0 蓝桥杯算法训练-未名湖边的烦恼 摘要:参考代码:#include<iostream> using namespace std; int f(int m, int n) { if (m < n) return 0; …… 题解列表 2021年02月23日 0 点赞 0 评论 678 浏览 评分:0.0 « 12...1614161516161617161816191620...59235924 »
01背包 动态规划初级 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; /** * 2021年2月23日 下午5:37:46 * @author praguetramp …… 题解列表 2021年02月23日 0 点赞 0 评论 1874 浏览 评分:0.0
题解 1557: 蓝桥杯算法提高VIP-聪明的美食家 Python3 6行 摘要:解题思路:注意事项: 由于dp在某些情况下可能不存在递增子序列,所以在判断最大值时需要手动加入一个“0”元素防止出现max方法内无参数的报错。参考代码:n = int(input()) num…… 题解列表 2021年02月23日 0 点赞 0 评论 884 浏览 评分:0.0
二叉排序树的基本操作(C++) #include#includetypedefstructtreenode{intdata;structtreenode*lchild,*rchild;}bitree,*tree;typedefstructstack{tree*base,*top;intlen;}sqstack;voidinitsta 题解列表 2021年02月23日 0 点赞 0 评论 1108 浏览 评分:0.0
题解 1673: 数据结构-集合union( C语言 ) #include#includetypedefstructnode{intdata;structnode*next;}sqnode;sqnode*creat(intnum){sqnode*head,*p1,*p2;head=(sqnode*)malloc(sizeof(sqnode));head->n 题解列表 2021年02月23日 0 点赞 0 评论 724 浏览 评分:0.0
蓝桥杯算法训练-未名湖边的烦恼 摘要:参考代码:#include<iostream> using namespace std; int f(int m, int n) { if (m < n) return 0; …… 题解列表 2021年02月23日 0 点赞 0 评论 678 浏览 评分:0.0