The <base href=”/”/> you define will determine how all other assets you plan on loading treat their relative paths. While you’ll most often use / as y ...
分类:
Web程序 时间:
2016-09-26 15:52:45
阅读次数:
158
bzoj1589[Usaco2008 Dec]Trick or Treat on the Farm 采集糖果 题意: n个节点,每个节点有一个后继节点,问从每个节点出发能到多少个没去过的节点。n≤100000。 题解: 因为每个节点只有一个后继节点,所有tarjan缩点后就会变成一堆链,对每条链df ...
分类:
其他好文 时间:
2016-09-25 17:22:45
阅读次数:
155
模式的定义组合模式(Composite Pattern)定义如下: Compose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly。将对象组合成树...
分类:
其他好文 时间:
2016-08-05 16:14:00
阅读次数:
185
款待奶牛(treat) 题目描述 FJ有n(1≤n≤2000)个美味的食物,他想卖掉它们来赚钱给奶牛。这些食物放在一些箱子里,它们有些有趣的特性:(1)这些食物被编号为1~n,每一天FJ可以从这排箱子的头部或者尾部取出食物去卖;(2)这些食物放得越久,年龄越大,价值越大,食物i有一个初始的价值V(i ...
分类:
其他好文 时间:
2016-07-18 03:05:01
阅读次数:
599
This lesson walks you through creating your first .tsconfig configuration file which will tell the TypeScript compiler how to treat your .ts files. In ...
分类:
其他好文 时间:
2016-06-09 06:20:25
阅读次数:
149
[2016-03-05][UVALive][4504][Trick or Treat] 时间:2016-03-05 12:06:59 星期六题目编号: UVALive 4504 B - Trick or Treat题目大意:给定坐标轴上若干个点,每个点上有一个人,求x轴上一点,使得所有人到这个点集合...
分类:
其他好文 时间:
2016-03-05 22:03:21
阅读次数:
241
题目链接 本来想做强连通分量的题的 然而这个题太水了。。。随便搞搞就过了 一个连通块里有且仅有一个环,从所有入度为0的点出发找出环,记录答案 然后只有一个圈但没有“把”的再来考虑 1 #include<algorithm> 2 #include<iostream> 3 #include<cstdli
分类:
其他好文 时间:
2016-03-04 20:39:57
阅读次数:
208
Java8 new featuresJava Language Specifioon Lamada Expression enable you to treat functionality as a method argument, or code as data. and express inte...
分类:
编程语言 时间:
2015-10-24 21:57:02
阅读次数:
371
Problem:Implement pow(x,n).Analysis:This problem inherently is very easy and simple.Don't try to treat a problem as difficult problem, even the myster...
分类:
其他好文 时间:
2015-09-02 01:53:49
阅读次数:
259
组合模式 Composite Pattern 合成模式compose objects into tree structures to represent part-whole hierarchies.Composite lets clients treat individual objects and compositions of objects uniformly.将对象组合成树形结构以表示“部...
分类:
编程语言 时间:
2015-08-31 23:48:06
阅读次数:
308