码迷,mamicode.com
首页 >  
搜索关键字:depth    ( 1433个结果
Codeforces 280C Game on Tree 期望
Game on Tree 这种题好像在wannfly训练营讲过, 我怎么又不会写啦, 我好菜啊啊啊。 我们按每个点算贡献, 一个点有贡献就说明它是被选中的点, 那么它被选中的概率就为1 / depth ...
分类:其他好文   时间:2019-02-11 12:30:16    阅读次数:209
Loj10022 埃及分数(迭代加深搜索IDDFS)
``` cpp include include include using namespace std; typedef long long ll; ll depth,a,b,flag,ans[100005],nans[100005]; inline ll gcd(ll a,ll b){ retur ...
分类:其他好文   时间:2019-02-07 19:17:07    阅读次数:230
python手绘
1 from PIL import Image 2 import numpy as np 3 4 a = np.asarray(Image.open(r'C:\Users\ldy\Desktop\214.jpg').convert('L')).astype('float') 5 6 depth = ... ...
分类:编程语言   时间:2019-02-02 23:13:34    阅读次数:266
559. Maximum Depth of N-ary Tree
/* // Definition for a Node. class Node { public: int val; vector children; Node() {} Node(int _val, vector _children) { val = _val; children = _child... ...
分类:其他好文   时间:2019-02-02 15:51:42    阅读次数:137
【DFS】数独游戏
DFS(深度优先搜索): 深度优先搜索算法(英语:Depth-First-Search,简称DFS)是一种用于遍历或搜索树或图的算法。 沿着树的深度遍历树的节点,尽可能深的搜索树的分支。当节点v的所在边都己被探寻过或者在搜寻时结点不满足条件,搜索将回溯到发现节点v的那条边的起始节点。整个进程反复进行 ...
分类:其他好文   时间:2019-02-01 17:10:22    阅读次数:213
关于因为git仓库无法克隆的问题;
有时候会遇见一种情况: 在git clone 时,遇见断开连接或者无法连接git源仓库;连接超时的时候; git clone url(git 仓库源) --depth=n // n 为想要克隆的层数 来进行浅克隆,以获取最新的n个版本; 如果想获取所有历史版本; 在使用: git fetch -- ...
分类:其他好文   时间:2019-02-01 14:54:25    阅读次数:211
Unity 3D 光照贴图快速入门 Lightmapping Quickstart
This an introductory description of lightmapping in Unity. For more advanced topics see in-depth description of lightmapping in Unity 这是一个Unity 光照贴图的引 ...
分类:移动开发   时间:2019-02-01 13:06:49    阅读次数:280
【原创】Linux基础之常用命令
1 磁盘、cpu、内存相关 查看整体磁盘占用情况 # df -h 查看指定目录磁盘占用情况,按照目录汇总,深度为1 # du -h --max-depth=1 $path 在指定目录查查找指定文件 # find $path -name $file_name 查看磁盘io # iostat 查看cpu ...
分类:系统相关   时间:2019-01-30 13:13:45    阅读次数:222
箭头函数
个箭头函数表达式的语法比一个函数表达式更短,并且不绑定自己的 this,arguments,super或 new.target。 这些函数表达式最适合用于非方法函数,并且它们不能用作构造函数。 0.1. 基础语法 0.2. 高级语法 1. 描述 另见 "ES6 In Depth: Arrow fun ...
分类:其他好文   时间:2019-01-29 15:02:25    阅读次数:217
启发式合并CodeForces - 1009F
E - Dominant Indices CodeForces - 1009F You are given a rooted undirected tree consisting of nn vertices. Vertex 11 is the root. Let's denote a depth ...
分类:其他好文   时间:2019-01-21 16:12:18    阅读次数:221
1433条   上一页 1 ... 27 28 29 30 31 ... 144 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!