【题目描述】 给定一棵树,输出树的根rootroot,孩子最多的结点maxmax以及他的孩子。 【输入】 第一行:nn(结点个数≤100≤100),mm(边数≤200≤200)。 以下mm行:每行两个结点xx和yy,表示yy是xx的孩子(x,y≤1000x,y≤1000)。 【输出】 第一行:树根: ...
分类:
其他好文 时间:
2021-06-28 20:18:59
阅读次数:
0
(可能 ?)会记录一下最近 VP 和 补题记录。 6.27 Codeforces Round #724 (Div. 2) 赛时切了 ABCD 。A 题 3 发 罚时,B 题 2 发,D 题 1 发 ,wtcl。 1536E - Omkar and Forest 考虑将某些 # 置为 0 , 然后以 ...
分类:
其他好文 时间:
2021-06-28 20:11:47
阅读次数:
0
<div class="row"> <div class="box1 col-xs-12 col-md-4">A</div> <div class="box2 col-xs-12 col-md-8 col-sm-3">B</div> <div class="col-xs-12 col-sm-3">C ...
分类:
其他好文 时间:
2021-06-28 19:47:06
阅读次数:
0
div{ width: 0px; border: 30px solid transparent; border-left-color: tomato;} 第二种方法 div{ margin: auto; width: 0px; border-top: 20px solid transparent; ...
分类:
其他好文 时间:
2021-06-28 19:45:26
阅读次数:
0
1.题目如下 2.解题代码 #include<stdio.h> int majority(int a[],int n){ int i,count=1,c=a[0]; for(i=1;i<n;i++) { if(a[i]==c) count++; else { if(count>0) count--; ...
分类:
其他好文 时间:
2021-06-28 19:33:29
阅读次数:
0
1. 原理: 递归:函数自己调用自己 1 function fn() { 2 fn(); 3 } 4 fn();//会导致栈溢出 1 function fn() { 2 setTimeout(fn,0); 3 } 4 fn();//不会导致栈溢出 2. 代码实现: 3.时间复杂度: 空间复杂度: ...
分类:
编程语言 时间:
2021-06-28 19:12:32
阅读次数:
0
https://blog.csdn.net/kellywong/article/details/106430977 一,react hooks组件传值 1,父传子:通过props传值 2,子传父:子组件通过 父组件传递的事件newList,把值传给父组件 3,通过ref元素的引用来传值 4,跨级传递 ...
分类:
其他好文 时间:
2021-06-28 19:08:05
阅读次数:
0
给定不同面额的硬币 coins 和一个总金额 amount。编写一个函数来计算可以凑成总金额所需的最少的硬币个数。如果没有任何一种硬币组合能组成总金额,返回 -1。 你可以认为每种硬币的数量是无限的。 示例 1: 输入:coins = [1, 2, 5], amount = 11输出:3 解释:11 ...
分类:
其他好文 时间:
2021-06-28 18:57:50
阅读次数:
0
Markdown学习 字体 hello word hello word hello word 引用 选择我没错 分割线 图片 超链接 mybatis文档 列表 ...
分类:
其他好文 时间:
2021-06-28 18:39:05
阅读次数:
0
最近跟着技术胖学习了vue3 和 typescript 记录一下自己的学习过程 现在写一个简单的菜单选择功能 1 <template> 2 <div class="hello"> 3 <div> 4 <h2>欢迎光临呱呱的小店</h2> 5 <div>请选择你喜欢的服务员</div> 6 </div ...
分类:
其他好文 时间:
2021-06-28 18:26:24
阅读次数:
0