c语言 30306:树的存储 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#define MAX_N 10000// 邻接表节点结构体typedef struct Nod…… 题解列表 2024年12月15日 1 点赞 0 评论 425 浏览 评分:10.0
通用的思维写出的 摘要:解题思路:注意事项:参考代码: public class Test { public static void main(String[] args) { Scanner …… 题解列表 2024年12月15日 1 点赞 0 评论 674 浏览 评分:0.0
超级简单,用了循环和字符串函数, 摘要:解题思路:只要不是空格,就直接加,不用考虑字符是字母还是数字。注意事项:使用标记变量处理逗号问题。参考代码:#include <stdio.h>#include <string.h>int main(…… 题解列表 2024年12月15日 1 点赞 0 评论 400 浏览 评分:10.0
运用if和else语句实现输出三个数的最大值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,max; scanf("%d %d %d",&a,&b,&c); max=…… 题解列表 2024年12月15日 9 点赞 0 评论 1725 浏览 评分:10.0
3054: 最低通行费 来看看吧 DP和DFS两种做法 摘要:解题思路: 两种做法不知道你更喜欢哪一种,本人更喜欢DFS 哈哈哈哈哈注意事项:参考代码:DP做法#include"bits/stdc++.h" using namespac…… 题解列表 2024年12月15日 0 点赞 0 评论 346 浏览 评分:0.0
3053: 怪盗基德的滑翔翼 最长递增或递减子序列 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义全局变量k, n和数组a, dp, dp2,大小为110 int…… 题解列表 2024年12月15日 0 点赞 0 评论 301 浏览 评分:0.0
大神老白1390///////// 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int gys(int a,int b){ if (a==b) { return a; } else …… 题解列表 2024年12月15日 0 点赞 0 评论 352 浏览 评分:0.0
3041: 最大子矩阵 应该能看懂吧 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义全局变量n和三个二维数组a, b, c,以及答案变量ans in…… 题解列表 2024年12月15日 1 点赞 0 评论 316 浏览 评分:0.0
使用函数易理解 摘要:解题思路:注意事项:由题可知大写变小写,加32即可,在注意下字符数组的输入输出参考代码:#include <stdio.h>#include <string.h>void fun(char a[]){…… 题解列表 2024年12月15日 3 点赞 2 评论 739 浏览 评分:10.0
1265: 青年歌手大奖赛_评委会打分 向量轻松搞定 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义变量n和x,用于存储输入的整数 …… 题解列表 2024年12月15日 0 点赞 0 评论 312 浏览 评分:0.0