437. Path Sum III Easy Easy Easy You are given a binary tree in which each node contains an integer value. Find the number of paths that sum to a give ...
分类:
其他好文 时间:
2019-11-28 11:44:00
阅读次数:
62
1,首先vue跨域我知道两种 ,一种在config文件下,index.js里面配置跨域: module.exports = { dev: { // Paths assetsSubDirectory: 'static', assetsPublicPath: '/', proxyTable: { '/a ...
分类:
其他好文 时间:
2019-11-25 23:39:37
阅读次数:
112
1.配置文件如下 spring: # 热部署 devtools: restart: enabled: true #设置开启热部署 additional-paths: src/main/java #重启目录 exclude: WEB-INF/** freemarker: cache: false #页 ...
分类:
编程语言 时间:
2019-11-24 15:46:46
阅读次数:
76
mac os 环境变量 系统级别 /etc/profile /etc/paths 用户级别 ~/.bash_profile ~/.bash_login ~/.profile ~/.bashrc(同linux) 系统级别更为就是全局设置,不推荐 mac系统中推荐更改~/.bash_profile 格式 ...
分类:
系统相关 时间:
2019-11-22 12:00:59
阅读次数:
73
1.1. Lucene工具类 为了后面的开发、测试方便,这里编写一个工具类: 1 import java.io.IOException; 2 3 import java.nio.file.Paths; 4 5 import java.util.List; 6 7 8 9 import org.apa ...
分类:
Web程序 时间:
2019-11-15 14:37:23
阅读次数:
78
题目描述 In order to get from one of the F (1 include include include include using namespace std; const int N=5e4+10,M=5e4+10; int next[M],head[N],go[M], ...
分类:
其他好文 时间:
2019-11-13 22:08:29
阅读次数:
85
10.Paths through the Hourglass,UVa10564 题意: 有一个沙漏,第一行有$n$个格子,第二行有$n 1$个格子$\cdots\cdots$最中间的行只有1个格子,然后它下面一行2个格子,再下面一行3个格子$\cdots\cdots$最后一行$n$个格子,如图$1 ...
分类:
其他好文 时间:
2019-11-09 23:57:22
阅读次数:
189
问题描述 "LG CF1005F" 题解 由题面显然可得,所求即最短路树。 所以跑出最短路树,计数,输出方案即可。 $\mathrm{Code}$ ...
分类:
其他好文 时间:
2019-11-06 22:53:32
阅读次数:
102
如题,缩完点后数一下有几个入度为1的scc,+1再/2即可。 教训:加一个cntf处理重边!否则重边会被认为是同一条。 ...
分类:
其他好文 时间:
2019-11-02 16:08:10
阅读次数:
82
神仙题。~~为啥我第一眼看上去以为是个普及题~~ 路径有两种,第一种是从 LCA 一边下去的,第二种是从 LCA 两边都下去了的。 先考虑第一种。 先枚举路径长度 $h$。 当 LCA 编号是 $x$ 时,且所有儿子都是往左走时,和为 $(2^h 1)x$;所有儿子都往右走时,和为 $(2^h 1) ...
分类:
其他好文 时间:
2019-11-01 18:42:32
阅读次数:
51