E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
2418
SSL
2418
数字序列 状压DP
题目大意,求一个数列的方案数,这个数列满足,只由1到k之间的数字组成,而且当ai=aj时,i和j的差值至少为ai之前那个50分的是因为压得方式不同设f[i,i1,i2...ik]表示长度为i,数字1上一次出现位置在第i位的前i1位,2上次在i的前i2位……有多少种方案当i1>=1时,i1=0。当i2>=2时,i2=0……通过实践发现,k=7时,合法的i1,i2……ik状态最多900多种现在来考虑转
BPM136
·
2016-03-19 11:00
状压dp
Fragment
android:name=”Fragment1的命名空间“ 相关视频教程:http://www.imooc.com/video/2417 http://www.imooc.com/video/
2418
u014028231
·
2016-03-14 14:00
YTU
2418
: C语言习题 矩阵元素变换
2418
:C语言习题矩阵元素变换时间限制: 1Sec 内存限制: 128MB提交: 293 解决: 155题目描述将一个n×n(2>n; p=newint[n*n]; a=newint*[n
qq_28954601
·
2016-02-23 20:00
poj_
2418
Hardwood Species (字典序Trie树)
又是一道典型的Trie树应用题,有了Trie树的基本知识,写起来就非常容易了~~【题目描述】Hardwoodsarethebotanicalgroupoftreesthathavebroadleaves,produceafruitornut,andgenerallygodormantinthewinter. America'stemperateclimatesproduceforestswithh
cleopard66
·
2016-01-27 18:00
数据结构
算法
Trie树
字典树
NOI
redis启动过程
转载:点击打开链接redis启动过程发表于1年前(2014-08-
2418
:24) 主要有两点:1、把初始化脚本放到/etc/inti.d/下,启动服务/etc/init.d/redisstart
u011461420
·
2016-01-24 21:00
POJ
2418
Hardwood Species( AVL-Tree )
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> typedef struct AVLTree{ char name[31]; int nCount; int nHeight; struct AVL
·
2015-11-13 22:06
tree
各浏览器的默认CSS
由 愚人码头 撰写 http://www.css88.com/archives/
2418
在丸子主编的帮助下终于找到了各浏览器的默认CSS。
·
2015-11-13 17:23
css
A过的题目
TreeSet类:A - Language of FatMouse ZOJ1109B - For Fans of Statistics URAL 1613 C - Hardwood Species POJ
2418
D
·
2015-11-13 16:59
a
poj
2418
Hardwood Species(字典树)
求出该字符窜在所有字符窜中德比例 Trie树,这次学到了如何输出 View Code 1 #include<stdio.h> 2 #include<string.h> 3 #include<stdlib.h> 4 5 const int MAXN=256; 6 7 struct Trie 8 { 9 T
·
2015-11-13 16:16
poj
poj
2418
Hardwood Species
编辑器加载中... 题目: 给出一些树名,问每一棵树的所占的比例 分析: 就是给树按字典序排序,并输出他们所占的比例,由于本题涉及的树名比较多,可以采用 二分搜索树来做
·
2015-11-13 03:54
poj
几道字典树题目
POJ
2418
Hardwood Species 题意:给一些字符串,按照字典序输出他们,并且输出频率...........
·
2015-11-13 02:04
字典树
POJ
2418
Hardwood Species【二叉查找树】
POJ
2418
Hardwood Species算法核心 二叉查找树题目大意:通过卫星得到了某一个区域的树名,将这些树名按字典顺序输出,并输出在树的总数中所占的比例,保留小数点后四位。
·
2015-11-12 22:16
二叉查找树
POJ
2418
Hardwood Species(字典树+字符串排序)
题目大意:给一个字符文本,每行一个字符串,统计不同的字符串出现的百分比。最后按ASCII排序输出不同字符串和出现的百分比。 分析:对输入字符串建立字典树,在叶子结点记录该字符串出现的次数。这样的话,最后就可以查找每个字符串出现的次数。另外用一个数组记录不同的字符串,然后对其排序,输出结果。 建字典树时要注意,题中没说出现的字符的范围,那就是所有字符都可能出现。数组应开成next[NODE][1
·
2015-11-12 19:26
字符串
poj
2418
Hardwood Species
id=
2418
trie树,有非空格、字母的字符 View Code 1 #include <iostream> 2 #include<cstdio>
·
2015-11-12 18:52
poj
poj
2418
map 快排水过
/*计算每个单词的百分比按字典序输出*/ #include <cstdio>#include<cstdlib>#include <cstring>#include <cctype>#include <string>#include <map>#include <algorithm>#include <i
·
2015-11-12 12:04
map
POJ
2418
Hardwood Species(trie 树)
题目链接 开始想用map的,字典序不会搞,还是老老实实的用trie树把。好久没写了,忘得差不多了。 1 #include <iostream> 2 #include <cstdio> 3 #include <cstdlib> 4 #include <cstring> 5 #include <map> 6 #in
·
2015-11-12 09:49
trie
Hardwood Species
id=
2418
1 #include<cstdio> 2 #include<cstring> 3 #include<string> 4 #include
·
2015-11-11 13:48
IE
poj
2418
Hardwood Species
id=
2418
题意:给定一些树,按字典序输出数名和树出现的频率; 思路:这个题用二叉搜索树可以做,同时在网上看到了一个简单的方法,用map来做,这里map真是太好用了; map做法: View
·
2015-11-11 12:19
poj
POJ
2418
Hardwood Species
题意 : 输入若干个树木品种,里边有的是重复的,让你统计每个品种占输入的总数量的百分比,最后按字典序输出 思路 : 本题数量很大,所以采用直接统计的方式会超时,而采用的方法可以用二叉搜索树,或者用map函数或者是字典树都可以实现,呃,我想说,为什么用G++交WA了,得用C++交才对啊 #include<cstdio> #include<cstring> #i
·
2015-11-11 10:09
poj
ArcGIS API for Silverlight中专题地图的实现浅析
原文 http://www.gisall.com/html/32/7232-
2418
.html 专题地图是突出表现特定主题或者属性的地图。
·
2015-11-11 09:08
silverlight
各浏览器的默认CSS
由 愚人码头 撰写 http://www.css88.com/archives/
2418
在丸子主编的帮助下终于找到了各浏览器的默认CSS。
·
2015-11-11 05:20
css
poj
2418
bst统计字符串
数据比较随机,直接bst可以过。 1 #include <cstring> 2 #include <cstdio> 3 using namespace std; 4 5 const int N = 101; 6 int tot; 7 8 struct Node 9 { 10 Node * ch[2]; 11 c
·
2015-11-09 13:46
字符串
poj
2418
Hardwood Species
id=
2418
简单题。。 平衡树,写了个模板。。动态分配内存确实很慢。。。
·
2015-11-07 15:18
poj
hdu 2141 Can you find it? 二分
32768/10000 K (Java/Others)Total Submission(s): 9266 Accepted Submission(s):
2418
·
2015-11-07 13:09
find
POJ
2418
各种二叉排序树
题意很明确,统计各个字符串所占总串数的百分比,暴力的话肯定超时,看了书上的题解后发现这题主要是用二叉排序树来做,下面附上n种树的代码。 简单的二叉排序树,不作任何优化(C语言版的): 1 #include<stdio.h> 2 #include<string.h> 3 #include<stdlib.h> 4 5 typ
·
2015-11-07 10:06
二叉排序树
POJ
2418
Hardwood Species【字典树 / map】
题意:统计树的种类出现的百分率,给你树木的名字(可能有重复,最多100W个数据,种类不超过1W),数目名字的长度不超过30,但是可能包含空格,也可能包含别的字符(所以需要把struct开到ch[130],RE被坑了多次,最终AC)用字典树做或者是用map,目前只做了字典树版本的,以后map填坑。。HardwoodSpeciesTimeLimit: 10000MS MemoryLimit: 6553
wxyfennie
·
2015-11-06 17:00
poj
2418
Hardwood Species 字典树
HardwoodSpeciesDescriptionHardwoodsarethebotanicalgroupoftreesthathavebroadleaves,produceafruitornut,andgenerallygodormantinthewinter.America'stemperateclimatesproduceforestswithhundredsofhardwoodspec
wr132
·
2015-11-06 15:00
poj
字典树
Hardwood
Species
2418
POJ
2418
Hardwood Species(Tire树)
DescriptionHardwoodsarethebotanicalgroupoftreesthathavebroadleaves,produceafruitornut,andgenerallygodormantinthewinter.America’stemperateclimatesproduceforestswithhundredsofhardwoodspecies–treesthatsh
zyd8888102
·
2015-11-05 19:00
poj
poj
2418
思路:建立字典树,dfs查找,然后输出频率。//#pragmacomment(linker,"/STACK:1024000000,1024000000") #include #include #include #include #include #include #include #include #include #include #include #include #include #incl
KIJamesQi
·
2015-11-04 22:00
字符串
tire
poj
2418
(Hardwood Species)
思路:建立Tire树,dfs一遍,再del下。//#pragmacomment(linker,"/STACK:1024000000,1024000000") #include #include #include #include #include #include #include #include #include #include #include #include #include #inc
KIJamesQi
·
2015-11-02 22:00
poj
2418
用map,c++就可以过 View Code #include < iostream > #include < cstdio > #include < cstdlib > #include < cstr
·
2015-11-02 14:22
poj
pku
2418
Hardwood Species 字典树
id=
2418
字典数编号,统计每个单词出现的次数,然后计算频率: View Code #include <iostream>#include <cstdio>#include
·
2015-11-01 14:35
pku
poj
2418
Hardwood Species(Trie树)
HardwoodSpeciesTimeLimit:10000MS MemoryLimit:65536KB 64bitIOFormat:%I64d&%I64uDescriptionHardwoodsarethebotanicalgroupoftreesthathavebroadleaves,produceafruitornut,andgenerallygodormantinthewi
u014552756
·
2015-10-31 23:00
POJ
2418
,ZOJ 1899 Hardwood Species - from lanshui_Yang
Description Hardwoods are the botanical group of trees that have broad leaves, produce a fruit or nut, and generally go dormant in the winter. America's temperate climates produce forests wit
·
2015-10-31 12:09
poj
POJ
2418
Cows (树状数组)
Cows Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 9618 Accepted: 3153 Description Farmer John's cows have discovered that the clover gr
·
2015-10-30 15:38
树状数组
poj
2418
二插排序树
View Code #pragma warning (disable : 4786)#include<stdio.h>#include<map>#include<string>#include<iostream>using namespace std;int main(){ char str[50]; double num=0;
·
2015-10-30 10:46
poj
poj
2418
Hardwood Species
1 import java.util. * ; 2 import java.io. * ; 3 import java.text. * ; 4 5 public class Main 6 { 7
·
2015-10-29 08:29
poj
POJ
2418
#include <iostream> #include <string> #include <map> #include <iterator> #include <cstdio> using namespace std; int main() { string s; int cnt=0; ma
·
2015-10-27 16:36
poj
POJ
2418
字典树 or map
e...... DESCRIPTION: 给你许多种名字可以重复。要求你统计每种名字的比例。按照字典序输出每种名字及其所占比例、可以用字典树快速存储,输出大量字符串。 也可以用map。但是。map不太熟。输出好烦。为什么key值是字符数组的时候只能用Cout不能是printf。也不能用各种字符数组的函数呢。什么鬼!T_T用完C++还有编译器C++WA。G++AC。>_<。 附代
·
2015-10-23 08:43
map
二叉排序树
//
2418
-二叉排序树.cpp : 定义控制台应用程序的入口点。
·
2015-10-21 11:39
二叉排序树
mView has no focus+DecorView setVisiblity: visibility = 4+Finishing stop of ActivityRecord
09-
2418
:22:23.692:E/AndroidRuntime(22703):FATALEXCEPTION:main09-
2418
:22:23.692:E/AndroidRuntime(22703
u014737138
·
2015-09-24 20:00
Android开发
Android利用Jsoup解析实现简单新闻客户端
预备知识:关于Jsoup,这个问题百度就能为你解决:Jsoup先看效果图:这是2015/09/
2418
:50左右获取来自腾讯新闻的一些新闻这是2015/09/
2418
:50左右获取来自凤凰新闻的一些新闻请看代码
Coding_One
·
2015-09-24 19:27
Android利用Jsoup解析实现简单新闻客户端
预备知识:关于Jsoup,这个问题百度就能为你解决:Jsoup先看效果图:这是2015/09/
2418
:50左右获取来自腾讯新闻的一些新闻这是2015/09/
2418
:50左右获取来自凤凰新闻的一些新闻请看代码
Coding_One
·
2015-09-24 19:27
Android利用Jsoup解析实现简单新闻客户端
预备知识:关于Jsoup,这个问题百度就能为你解决:Jsoup先看效果图:这是2015/09/
2418
:50左右获取来自腾讯新闻的一些新闻这是2015/09/
2418
:50左右获取来自凤凰新闻的一些新闻请看代码
Coding_One
·
2015-09-24 19:00
android
JSoup
新闻客户端
Linux--Sys_Read系统调用过程分析 http://blog.csdn.net/guopeixin/article/details/5962489
Linux--Sys_Read系统调用过程分析2010-10-
2418
:05 9613人阅读 评论(3) 收藏 举报extfilestructsymlinkcacheio目录(?)
baidu_30399443
·
2015-09-06 13:00
Python读取pcap文件
Python读取pcap文件 (2010-01-
2418
:29:39)转载▼标签: python pcap 文件头 十六进制 包头 it分类: Python 想试一试读取pcap文件的内容,并且分析出
hzliyaya
·
2015-08-26 20:00
poj
2418
字典树 Map容器
HardwoodSpeciesTimeLimit:10000MS MemoryLimit:65536KTotalSubmissions:20877 Accepted:8186DescriptionHardwoodsarethebotanicalgroupoftreesthathavebroadleaves,produceafruitornut,andgenerallygodormantinthew
became_a_wolf
·
2015-08-24 16:00
POJ
2418
----Hardwood Species
HardwoodSpeciesTimeLimit:10000MS MemoryLimit:65536KTotalSubmissions:20874 Accepted:8186统计每个单词出现的频率;可以用map水过!DescriptionHardwoodsarethebotanicalgroupoftreesthathavebroadleaves,produceafruitornut,andgen
lv414333532
·
2015-08-24 16:00
Hardwood Species POJ
2418
HardwoodSpeciesTimeLimit:10000MS MemoryLimit:65536KTotalSubmissions:20816 Accepted:8163DescriptionHardwoodsarethebotanicalgroupoftreesthathavebroadleaves,produceafruitornut,andgenerallygodormantinthew
JSPang
·
2015-08-20 21:00
POJ
2418
Hardwood Species
id=
2418
解题思路:按字典序输出,每种树占所有树的百分比。。。首先用字典树存所有树,再用dfs进行搜索,就可以很轻松解决每种树的数量了。。。同样map也可以轻松解决。。。
piaocoder
·
2015-08-17 20:00
字典树
上一页
1
2
3
4
5
6
7
8
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他