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
1014
【BZOJ】
1014
: [JSOI2008]火星人prefix(splay+hash+二分+lcp)
id=
1014
题意:支持插入一个字符、修改一个字符,查询lcp。
·
2015-11-13 11:18
hash
【wikioi】
1014
装箱问题
题目链接 算法:动态规划(01背包) 01背包思想:依次对待某一物体,考虑是否放入容量为V的背包中 用f[V]来表示容量为V的背包的最大价值,则决策是 f[V] = max{f[V], f[V-v[i]]+w[i]} (0 <= i <= n, V-v[i] >= 0) 解释:每一个物体i,只有两种选择,是否放入(放入后一定体积要等于容量V)容量为V的背包中,
·
2015-11-13 11:37
IO
[Trie]hihoCoder
1014
Trie树
#include <iostream> #include <cstring> #include <cstdio> #include <string> using namespace std; int t,n; bool ok; string str; struct Trie {
·
2015-11-13 10:19
code
SIP基本呼叫
:"+861069690069"<sip:
[email protected]
;user=phone>;tag=8741b8-ac
1014
d2
·
2015-11-13 09:44
IP
POJ
1014
-Dividing
转载请注明出处:優YoU http://blog.csdn.net/lyy289065406/article/details/6661449 大致题意: 有分别价值为1,2,3,4,5,6的6种物品,输入6个数字,表示相应价值的物品的数量,问一下能不能将物品分成两份,是两份的总价值相等,其中一个物品不能切开,只能分给其中的某一方,当输入六个0是(即没有物品了),这程序结束,总物品的
·
2015-11-13 09:16
div
九度OnlineJudge之
1014
:排名
题目描述: 今天的上机考试虽然有实时的Ranklist,但上面的排名只是根据完成的
·
2015-11-13 08:52
online
HDU
1014
:Uniform Generator
Problem Description Computer simulations often require random numbers. One way to generate pseudo-random numbers is via a function of the form seed(x+1) = [seed(x) + STEP] % MOD where '%' is
·
2015-11-13 08:03
generator
1014
-数据的插入与删除
描述 在一组数据(数目不超过10000)中,插入新数,删除所有与给定数相等的数据。 输入 第一行是未排序的一组非负整数,数目不超过10000。以-1作为结束标志。 第二行是要插入的数。 第三行是要删除的数。 输出 第一行输出自小到大排好序的数。如果没有元素,输出“No elements.”(不包括引号)。
·
2015-11-13 08:14
删除
WOJ
1014
#include<stdio.h> #include<stdlib.h> #include<math.h> int main() { double a[3][3]={0},volumn; int i,j; while(scanf("%lf",&a[0][0])!=EOF) { for(i
·
2015-11-13 06:04
OJ
POJ
1014
: 多重背包 + 二进制优化 + 取模优化
问题描述: 有若干价值为分别为1,2 ,3,4,5,6的大理石,求总价值的均分策略。设价值为V的石头重量为V,这批石头的总价值为SUM,则问题转化为选取若干大理石将容量为SUM/2的背包装满。 背包问题(参考“背包问题9讲”) 有N件物品和一个容量为V的背包,第i件物品的费用是c[i],价值是w[i]。 f[i][v]表示前i件物品恰放入一个容量为v的背包可以获得的最大价值,则有: 0
·
2015-11-13 04:16
二进制
浙江大学PAT上机题解析之
1014
. 福尔摩斯的约会 (20)
1014
.
·
2015-11-13 04:58
pat
poj分类
1000 1001 1002 1003 1004 1005 1006 1007 1008 10111012
1014
&
·
2015-11-13 03:46
poj
[HDOJ]
1014
. Uniform Generator
注意格式控制就可以了,没什么好说的题目。 #include < iostream > #include < cstdio > using namespace std; int main() { &
·
2015-11-13 02:57
generator
hdu
1014
(水~)
#include<stdio.h> #include<string.h> #define N 100000+5 int step,mod,seed; int flag; int f[N]; int main(){ int i,j,k; while(scanf("%d%d",&step,&mod)==2){ f
·
2015-11-13 00:54
HDU
jquery上传文件
http://hi.baidu.com/shouxin
1014
/blog/item/43aa70504fb6f6998c5430b5.html 客户端代码: <link href="
·
2015-11-12 21:28
jquery
POJ
1014
Dividing(多重背包 + 倍增优化)
题意: 求一种划分方案使结果最公平。 思路: 多重背包,然后把物品分为 2^0, 2^1, ... , 2^k,... 等。 #include <iostream> #include <algorithm> using namespace std; const int maxn = 20010 * 3; int d
·
2015-11-12 17:53
div
MongoDB .NET Driver 1.1 Bug导致MongoDB拒绝连接
你会得到类似于以下的MongoDB错误日志 Fri Sep 28 06:37:21 [initandlisten] connection accepted from xx.xx.xx.xx:64034 #1073 (
1014
·
2015-11-12 15:59
mongodb
如何挑选雪那瑞犬
来源:http://www.pets8.cn/buypet/buydog/
1014
.htm 这里除了有关兽医职权的地方无法提供之外,我希望可以说说自己的经验给大家参考!
·
2015-11-12 13:59
HDU 题目分类
www.cppblog.com/acronix/archive/2010/09/24/127536.aspx 分类一: 基础题:1000、1001、1004、1005、1008、1012、1013、
1014
·
2015-11-12 12:10
HDU
Ppoj
1014
深搜
这个题题意是给你价值1-6的珠宝个数输出能否平分为两份(如果平分为三分就不知道怎么做了……) 主要是用回溯DFS,但是要剪枝,对200取模……!!(很重要……) 代码…… #include <iostream> #include <cstdio> #include <cstring> #include <cmath>
·
2015-11-12 12:48
poj
我的北大ACM POJ
1014
解答
[原创]我的北大ACM POJ
1014
解答 动态规划DP的题,没看提示之前还真不知怎么写。。。
·
2015-11-12 11:17
ACM
hdu 1059 Dividing(pku 1042)
id=
1014
多重背包 这个题有两种AC的方法一种是采用多重背包的方法,但是这个方法会超时,所以就加了一个取模(这是错误的地方)来减少时间,这个方法可以AC,但却是错误的
·
2015-11-12 11:45
div
移动H5前端性能优化指南[托尼托尼研究所]
基于联通3G网络平均338KB/s(2.71Mb/s),所以首屏资源不应超过
1014
KB5. Mobile侧因手机配置原因,除加载外渲染速度也是优化重点6.
·
2015-11-12 10:36
前端性能优化
#
1014
: Trie树
http://hihocoder.com/problemset/problem/
1014
时间限制:10000ms 单点时限:1000ms 内存限制:256MB
·
2015-11-12 10:53
trie
杭电
1014
题
//使用双链表list实现#include <list>#include <stdio.h>#include <iostream>using namespace std;int main(){ int step,mod; char good[20]="Good Choice"; char bad[20] = &q
·
2015-11-12 09:56
杭电
poj
1014
diving 原来是这样T_T
这题wa了一天才ac.......囧 ==================================================================== 首先主算法是dp无疑,用2进制处理成01背包,貌似还要加上滚动优化,虽然我不懂100*60000的喂马会爆. wa点1:2进制优化 从上次月赛接触了
·
2015-11-11 18:34
div
hoj
1014
题
欧几里德算法欧几里德算法又称辗转相除法,用于计算两个整数a,b的最大公约数。其计算原理依赖于下面的定理: 定理:gcd(a,b) = gcd(b,a mod b) 证明:a可以表示成a = kb + r,则r = a mod b 假设d是a,b的一个公约数,则有 d|a, d|b,而r = a - kb,因此d|r 因此d是(b,a mod b)的公
·
2015-11-11 15:19
OJ
HDU 题目分类
转载自新浪博客,, http://blog.sina.com.cn/s/blog_71ded6bf0100tuya.html 基础题: 1000、1001、1004、1005、1008、1012、1013、
1014
·
2015-11-11 14:32
HDU
acdream
1014
: Dice Dice Dice DFS枚举
1014
: Dice Dice Dice Time Limit: 10 Sec Memory Limit: 128 MB Description
·
2015-11-11 11:06
DFS
UESTC
1014
Shot
这题刚开始没想通,结果发现要解方程,代码如下: #include<iostream> #include<cstdio> #include<cmath> #include<cstring> #include<algorithm> #include<cstdlib>
·
2015-11-11 11:31
sh
hdu
1014
Uniform Generator(水 枚举 gcd)
题意:有一个数列 seed[x+1]=(seed(x)+step)%mod 给出 step 和 mod 如果求出的是以 1。。。mod-1 为循环节的数列 则为 good choice
·
2015-11-11 10:28
generator
HDOJ-
1014
Uniform Generator
pid=
1014
给出式子seed(x+1) = [seed(x) + STEP] % MOD seed初始为0,给出STEP和MOD的值 问seed能否取到0~(MOD - 1)之间的所有值
·
2015-11-11 09:57
generator
hihoCoder
1014
trie树(字典树)
hihoCoder
1014
题目提示已经很清楚了~ 贴代码…… #include <iostream> #include <cstdio> #include <
·
2015-11-11 08:13
code
编程之美--2. Trie树 (Trie图)
#
1014
: Trie树 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 小Hi和小Ho是一对好朋友,出生在信息化社会的他们对编程产生了莫大的兴趣
·
2015-11-11 08:34
编程之美
ACM数论题集
pid=
1014
http://acm.hdu.edu.cn/showproblem.php?
·
2015-11-11 06:21
ACM
hdu
1014
(数学)
//数学题#include <cstdio>#include <iostream>using namespace std;int gcd(int a, int b) { return b ? gcd(b, a%b) : a;}int main() { int n, m; while (scanf("%d%d", &n, &
·
2015-11-11 05:15
HDU
[wikioi]装箱问题
http://wikioi.com/problem/
1014
/ 01背包问题是最经典的动态规划之一,这道题目甚至是这其中还简单的一种,因为价值就是本身的重量了。
·
2015-11-11 03:48
IO
hihoCoder
1014
Trie树
题目链接:hihoCoder -
1014
小Hi和小Ho是一对好朋友,出生在信息化社会的他们对编程产生了莫大的兴趣,他们约定好互相帮助,在编程的学习道路上一同前进。
·
2015-11-11 03:36
code
Hihocoder #
1014
: Trie树 (字典数树统计前缀的出现次数 *【模板】 基于指针结构体实现 )
#
1014
: Trie树 时间限制: 10000ms 单点时限: 1000ms 内存限制: 256MB 描述 小Hi和小Ho是一对好朋友,出生在信息化社会的他们对编程产生了莫大的兴趣
·
2015-11-11 00:45
code
Linux启动oracle
$exportORACLE_SID=zjidc[oracle@localhost~]$sqlplus/nologSQL*Plus:Release11.2.0.1.0ProductiononTueNov
1014
ptzrbin
·
2015-11-10 14:46
Linux
acdream
1014
Dice Dice Dice(组合)
id=
1014
题意:n个筛子,每个筛子m个面(标有数字1到m)。n个筛子前K大的筛子数字之和为p的有多少种?
·
2015-11-09 14:50
ICE
汇编 端口
汇编 端口 http://blog.csdn.net/du_minchao/article/details/6514012 2010-12-06 21:07
1014
·
2015-11-09 12:15
端口
H5性能调优
优化手段在Mobile侧同样适用在Mobile侧我们提出三秒种渲染完成首屏指标基于第二点,首屏加载3秒完成或使用Loading基于联通3G网络平均338KB/s(2.71Mb/s),所以首屏资源不应超过
1014
KBMobile
hexieshangwang
·
2015-11-08 19:00
性能优化
H5
性能调优
移动前段
1014
1 #include <iostream> 2 using namespace std; 3 int main() 4 {long long s=0,t=1; 5 int m,n; 6 cin>>n; 7 for (m=1;m<=n;m++) 8 { 9 t=t*m; 10 s=s+t; 11 } 1
·
2015-11-08 15:51
poj
1014
:母函数+优化
题目大意: 有1~6六种宝石,价格分别为1~6 。。给定每种宝石的个数,问能否平分给两个人 分析: 一看显然是个多重背包问题,也可以用母函数做 不过母函数的复杂度是n*v*k,第一次tle了。。 后来发现一种优化方式 当个数大于 6的时候直接把个数设为 5(奇数),6(偶数)。。 discuss 里面有位神牛给出了这个优化的证明: http://poj.org/showmessag
·
2015-11-08 14:08
poj
POJ
1014
Dividing
多重背包..看代码吧还是orz #include <iostream> using namespace std; #define LEN 7 #define INIT 0xffffffff int F[60001]; int max(int x, int y) { return x>y?x:y; } void ZeroOnePack
·
2015-11-08 13:27
div
Hdu 1059 Dividing & Zoj 1149 & poj
1014
Dividing(多重背包)
多重背包模板~ #include <stdio.h> #include <string.h> int a[7]; int f[100005]; int v, k; void ZeroOnePack(int cost, int weight) { for (int i = v; i >= cost; i--)
·
2015-11-08 11:31
div
引用类型中的push()、pop()、shift()方法
/** * write by waitingbar
1014
* time 2013.10.18 * 用途:常用于如一堆游戏激活码中获得抽取的值 * **/
·
2015-11-07 13:16
push
关于List
中的Exists 和Contains的区别
转载:http://www.cnblogs.com/jicheng
1014
/archive/2010/02/01/1660967.html 今天在做小项目的时候,有个需求
·
2015-11-07 11:23
contains
移动H5前端性能优化指南
基于联通3G网络平均338KB/s(2.71Mb/s),所以首屏资源不应超过
1014
KB5. Mobile侧因手机配置原因,除加载外渲染速度也是优化重点6. 基于第五点,要合理处理代码减少渲染
·
2015-11-07 10:43
前端性能优化
上一页
26
27
28
29
30
31
32
33
下一页
按字母分类:
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
其他