邻接表两次DFS求树的直径(不会内存超限) 摘要:package lqb.fs; import java.util.ArrayList; import java.util.Scanner; //树的直径使用两次df来求:第一次用dfs从…… 题解列表 2022年10月30日 0 点赞 1 评论 351 浏览 评分:9.9
敲简单C语言代码!!! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,s; char c; int h=0,k; while((k=scanf…… 题解列表 2022年10月30日 0 点赞 0 评论 330 浏览 评分:0.0
敲简单C语言代码!!! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[100],i,d,k,j,t=-1,b[100],w,r; scanf ("%d",&d…… 题解列表 2022年10月30日 0 点赞 0 评论 322 浏览 评分:9.9
二级C语言-进制转换python 摘要:解题思路:注意事项:参考代码:m = int(input())s = oct(m)s = s[2:]print(s)…… 题解列表 2022年10月30日 0 点赞 0 评论 640 浏览 评分:9.9
编写题解 1676: 数据结构-链表的基本操作 摘要:### 使用结构体存数据和地址  ```cpp typedef struct…… 题解列表 2022年10月30日 0 点赞 0 评论 434 浏览 评分:0.0
最简单解法,一看就会,不会的找我。 摘要:解题思路:注意事项:注意找到h,s和i的关系,一定要看清楚题目,总共经过的路程是,第N次落地的路程,就是说不包括第N次反弹的高度参考代码:#include<stdio.h>#include<math.…… 题解列表 2022年10月30日 0 点赞 1 评论 287 浏览 评分:9.9
平均值计算python 摘要:解题思路:注意事项:参考代码:n = list(map(int,input().split()))s = sum(n)/(len(n))count = 0for i in n: if i>s: …… 题解列表 2022年10月30日 0 点赞 0 评论 619 浏览 评分:9.9
Hello, World!的大小 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char c1[]="Hello, World!";//"Hello, World!"是字符串,注意空格!…… 题解列表 2022年10月30日 0 点赞 0 评论 1013 浏览 评分:7.3
典型的动态规划,时间复杂度O(m*k) 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;#define maxn 100000000#define maxm 1010#define maxk 1010#…… 题解列表 2022年10月30日 0 点赞 1 评论 1069 浏览 评分:9.9
求满足条件的3位数代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdio.h>int fun(int c);int main(){ int i,j,m,n,k,x,l=1…… 题解列表 2022年10月29日 0 点赞 0 评论 509 浏览 评分:9.9