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
1051
POJ
1051
P,MTHBGWBTimeLimit: 1000MS MemoryLimit: 10000KTotalSubmissions: 6911 Accepted: 3979DescriptionMorsecoderepresentscharactersasvariablelengthsequencesofdotsanddashes.Inpractice,charactersinamessagearede
zkzxmzk
·
2013-07-30 11:00
模拟
ACM
水题
hdu
1051
Wooden Sticks (贪心)
//贪心算法 #include #include #include #defineMAXN5005 usingnamespacestd; structnode { intlen; intwht; intflag; }stick[MAXN]; intcmp(structnodex,structnodey) { if(x.len!=y.len) returnx.len=tpw&&!stick[j]
lezong2011
·
2013-07-27 15:00
Capture started with SQLCODE is "-2657", Apply started got ASN
1051
W with The error code is "4A5102"
CapturestartedwithSQLCODEis"-2657",ApplystartedgotASN
1051
WwithTheerrorcodeis"4A5102"Capturestartedwitherror
db2notes
·
2013-07-22 23:16
出栈序列的可能性判定问题(PAT
1051
)
问题说明PAT
1051
:给定stack的容量,给定数据的入栈顺序:从1开始的正整数序列,在允许随机的出栈操作的情况下,要求判断某出栈序列是否可能。比如,告知stack容量为5,入栈序列的最大值为7。
BIAOBIAO齐
·
2013-07-16 03:54
算法
出栈序列的可能性判定问题(PAT
1051
)
问题说明PAT
1051
:给定stack的容量,给定数据的入栈顺序:从1开始的正整数序列,在允许随机的出栈操作的情况下,要求判断某出栈序列是否可能。比如,告知stack容量为5,入栈序列的最大值为7。
BIAOBIAOqi
·
2013-07-16 03:00
js中调用flash的函数1
tid=
1051
复制一份,做备份 http://www.webstudio.com.cn/tutorial/tuts/flash8_javascript/external1.html """ 在过去的一年里
lifan_3a
·
2013-07-01 11:00
hdu
1051
(贪心)Wooden Sticks
WoodenSticksTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):8742 AcceptedSubmission(s):3566ProblemDescriptionThereisapileofnwoodensticks.Thelengthandwe
shan614667793
·
2013-06-21 19:00
杭电
HDOJ
1051
Wooden Sticks 贪心again! so easy!
pid=
1051
accode:(usevector)#include #include #include #include #include #include #include #include usingnamespacestd
xiaozhuaixifu
·
2013-06-19 14:00
Algorithm
vector
STL
greedy
HDU
1051
(贪心)
WoodenSticksTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):8665 AcceptedSubmission(s):3541ProblemDescriptionThereisapileofnwoodensticks.Thelengthandwe
xj2419174554
·
2013-06-01 14:00
贪心
pat
1051
pop sequence
这题对于自己,意义不小,编程能力还是如此之弱!sigh! 用cur标记入栈序列的最大值,逐个扫描出栈序列x,当x与当前栈顶元素不一致(大于或小于)时就将cur++入栈(即使是x大于栈顶元素也将cur++入栈,它必将超过栈容量)。当x与当前栈顶元素一致时,将栈顶元素出栈即可。若栈内元素超过栈容量,则不合法。AC代码:#include #include usingnamespacestd;
jjike
·
2013-05-24 10:00
Training 贪心
ideone.com/WGxs4xhdu1045FireNethdu1050MovingTableshttp://blog.csdn.net/yew1eb/article/details/9747423hdu
1051
WoodenStickshttp
yew1eb
·
2013-05-07 09:00
Note (Code
1051
): Unknown table 执行后提示 warning
DROPTABLEIFEXISTS`APPLICATION`; Note(Code1008):Can'tdropdatabase'us_partner';databasedoesn'texistNote(Code
1051
专一的丸子
·
2013-05-07 05:21
warning
hdu
1051
Wooden Sticks【贪心】
WoodenSticks ProblemDescriptionThereisapileofnwoodensticks.Thelengthandweightofeachstickareknowninadvance.Thesticksaretobeprocessedbyawoodworkingmachineinonebyonefashion.Itneedssometime,calledsetuptim
Cfreezhan
·
2013-04-20 20:00
Wooden Sticks(hdu
1051
排序法的应用)
pid=
1051
WoodenSticksTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/O
JHC23
·
2013-04-20 19:00
HDOJ
1051
WoodenSticksTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):8264 AcceptedSubmission(s):3355ProblemDescriptionThereisapileofnwoodensticks.Thelengthandwe
zkzxmzk
·
2013-04-09 19:00
ACM
贪心
hdu
1051
Wooden Sticks
WoodenSticks TimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)ProblemDescriptionThereisapileofnwoodensticks.Thelengthandweightofeachstickarekno
LYHVOYAGE
·
2013-04-04 10:00
贪心
ZJU-PAT
1051
Pop Sequence
#include #include #include usingnamespacestd; intm,n,cases; stackf; inta[1005]; boolJudge() { while(f.empty()==false)f.pop(); inti,j; for(i=0;im)returnfalse; for(i=1;icur) { for(j=cur+1;jm) retur
Matrix_Reloaded
·
2013-03-24 22:00
ACM
pat
ZJU
HDU
1051
Wooden Sticks(LIS)
题目链接:Clickhere~~题意:很经典的问题,记得是黑书上的一道思考题。模型转换完之后意思大概就是,给一个二元组,给一个偏序关系a1 #include #include #include usingnamespacestd; constintN=5e3+5; structT { inta,b; booloperatorA; scanf("%d",&n); for(inti=0;i #i
dgq8211
·
2013-03-16 20:00
HDU
1051
:Wooden Sticks
ProblemDescriptionThereisapileofnwoodensticks.Thelengthandweightofeachstickareknowninadvance.Thesticksaretobeprocessedbyawoodworkingmachineinonebyonefashion.Itneedssometime,calledsetuptime,forthemachi
libin56842
·
2013-03-14 21:00
ACM
HDU
解题报告
贪心
pat
1051
#include #include #include usingnamespacestd; intin[1005]; intout[1005][1005]; intm,n,k; stackst; intmain(){ scanf("%d%d%d",&m,&n,&k); for(inti=0;im){flag=false;break;} for(intq=in[i];q<=out[p][j];q
chen895281773
·
2013-03-11 13:00
1051
. Pop Sequence (25)
考察数据结构Stack的push跟pop操作 题目链接:http://pat.zju.edu.cn/contests/pat-a-practise/
1051
#include #include #include
sunbaigui
·
2013-03-10 20:00
pat
ZJU
OSPF在帧中继中的点到多点接口(配置)
Currentconfiguration:
1051
bytes!
Cisco527
·
2013-03-05 10:45
接口
的
帧中继
hdu
1051
贪心
#include #include #include usingnamespacestd; intT; intn; typedefstruct { intl; intw; }stick; intcmp(sticka,stickb)//这个函数写错了很多次,坑的一笔,找个时间要好好看看 { if(a.l==b.l) { returna.w>T; while(T--) { cin>>n; for(
Kevin_Samuel
·
2013-03-03 01:00
hdu
1051
Wooden Sticks
对木棍的长度和重量进行排序,以长度为首要考虑。排序完后的不一定都是下一根木棍重量和长度都大于前一根的。于是,我们对排序后的数组进行多次扫描,将可以在一次建立时间内完成的进行标记,设置一个外部变量number来计数已扫描的元素的数量。例子:549 52 21 35 14排序完后:14 21 35 49 52然后进行第一次扫描:使用mark[]数组进行标记,mark[]初始化为0,红色为第一次描过的。
jjike
·
2013-02-06 10:00
andriod 2.3.3 marvell 8787 wifi移植
marvell87871、device\honmax\product\init.rc wlan0->mlan0 //这个名字是你驱动注册的网卡的名字,我的是mlan0 2、device\honmax\PAD
1051
rain0993
·
2013-01-05 16:00
Adobe Fireworks CS4 序列号(注册码)
1193-1760-3063-5235-1921-1642 1193-
1051
-5008-1361-4968-5999 1193-1983-8347-3865-8554-9370 我电脑上现在就安装好了
NationWoo
·
2012-12-31 10:00
[sicily online]
1051
. Biker's Trip Odomete
/*不懂这个题目要考啥 Constraints TimeLimit:1secs,MemoryLimit:32MB Description MostbicyclespeedometersworkbyusingaHallEffectsensorfastenedtothefrontforkofthebicycle.Amagnetisattachedtooneofthespokesonthefron
qiuchenl
·
2012-12-02 20:00
metasploit获取shell之后进一步利用!metasploit+sessions
今天我就会给大家讲一讲Meterpreter获取shell以后的运用当你看到了[*]Meterpretersession1opened(192.168.195.140:4444->192.168.195.139:
1051
jzking121
·
2012-11-30 00:41
metasploit
BT5自动提权
shell进一步利用
sessions使用
Qt入门:最傻瓜的Qt Hello world
Qt入门:最傻瓜的QtHelloworld转载自:http://www.kuqin.com/cpluspluslib/20070912/
1051
.html 今天在Jeltter的介绍之下,下载了Qt4.2.2WinPlatformEvaluationforVisualStudio2003
it1988888
·
2012-11-26 15:00
hdu 1501
pid=
1051
题目分析:额,这题卡了,就是因为一直在纠结调用函数cmp的时候l,w该怎么样排序;题目中所给的意思就是: 先按l小得排序,要是l一样的话,返回w小的,最重要的一点就是
yujuan_Mao
·
2012-11-21 23:00
杭电OJ——
1051
Wooden Sticks
WoodenSticksProblemDescriptionThereisapileofnwoodensticks.Thelengthandweightofeachstickareknowninadvance.Thesticksaretobeprocessedbyawoodworkingmachineinonebyonefashion.Itneedssometime,calledsetuptime
lishuhuakai
·
2012-10-26 22:00
awk学习笔记(2) - 输出文件内容
arr.dat,内容如下: 1034 7:26 1025 7:27 1101 7:32 1006 7:45 1012 7:46 1028 7:49
1051
ustb80
·
2012-10-19 20:20
awk学习笔记
HDU
1051
1A,Greedyalgorithm:#include #include #include #include usingnamespacestd; #defineLEN5010 typedefstructNode{ intl,w; }Node; Nodenode[LEN]; Nodeans[LEN]; intcmp(Nodea,Nodeb){ if(a.l==b.l){ returna.w
X_White
·
2012-10-08 17:00
HDU
1051
与1257类似 二维排序,然后贪心
#include #include #include #include usingnamespacestd; typedefstruct { intx,y; }node; boolcmp(noden1,noden2) { if(n1.x!=n2.x) return(n1.xb[i]) min=b[i]; } returnmin; } intmaxIndex(int*b,inta) { int
vsooda
·
2012-09-21 09:00
HDU
1051
A New Growth Industry
相同的代码,在zoj能ac,在hdu就runtimeerror。。。检查之后才发现,zoj中的数组开的太大了。。。#include#includeintmain(){ intday,i,j,K,n; intD[22],a[22][22],b[22][22]; scanf("%d",&n); while(n--){ scanf("%d",&day); mems
Wss0130
·
2012-09-11 21:00
System
HDU
1051
贪心算法
pid=
1051
题目大意:给n根木棍的长度和重量。根据要求求出制作木棍的最短时间。建立第一个木棍需要1分钟,若是接着要制作的木棍重量和长度都比此木棍长就不需要建立的时间,若是没有,则再需要建立时间。
start0609
·
2012-07-31 20:00
杭电ACM
1051
箍木
如果当前要做的木板的宽度和长度都不小于前面做的一个,则做现在这个木板不用花时间,输入很多木板的长与宽,求做这些木板所花的最短时间,否则需要一分钟贪心法#include usingnamespacestd; typedefstructstick { intlength; intweight; boolflag; }Stick; boolcompare(constStick&a,con
microsoftwin32
·
2012-06-14 17:00
struct
js中调用flash
tid=
1051
复制一份,做备份 http://www.webstudio.com.cn/tutorial/tuts/flash8_javascript/external1.html "
wangxr_it
·
2012-06-05 12:00
JavaScript
Flash
swf
js中调用flash
tid=
1051
复制一份,做备份http://www.webstudio.com.cn/tutorial/tuts/flash8_javascript/external1.html"""在过去的一年里,
wangxr_it
·
2012-06-05 12:00
javascript
flash
swf
js中调用flash
tid=
1051
复制一份,做备份http://www.webstudio.com.cn/tutorial/tuts/flash8_javascript/external1.html"""在过去的一年里,
wangxr_it
·
2012-06-05 12:00
javascript
flash
swf
sicily--
1051
. Biker's Trip Odomete
继续是水题,只要你会小学知识,会计算周长、距离、速度就可以了;#include #include usingnamespacestd; #definePI3.1415927//圆周率 intmain() { //printf("%f",PI);//%f默认是输出6位小数 floatdiameter; intrevolutions; floattime; for(in
chenhq1991
·
2012-06-02 11:00
360
float
distance
hdu
1051
/*分析: 简单贪心。将所有的排序,然后一遍一遍筛选就行了。 2012-05-24*/#include"stdio.h" #include"stdlib.h" structA { intl; intw; intk;//1未曾使用 }E[5011]; intcmp(conststructA*a,conststructA*b) { if(a->l!=b->l)re
Ice_Crazy
·
2012-05-24 09:00
优化
struct
ini
POJ
1051
P,MTHBGWB
1.C++中string类的练习,使用的数据结构慢慢地开始有心得了;2.string类中的+=操作符和append()函数的使用;3.这道题很简单,开始出错是因为string类型的变量没有初始化。stringstr="";//初始化为空字符串;4.推荐一个c++的网站(cplusplus.com-TheC++ResourcesNetwork)。#include #include #include
dollarzhaole
·
2012-03-26 22:00
数据结构
c
String
NetWork
resources
hdu
1051
Wooden Sticks 贪心
#include #include structnode { intx; inty; }p[5100]; intda[5100]; intcmp(constvoid*z,constvoid*y) { structnode*as=(structnode*)z; structnode*ad=(structnode*)y; if(as->x!=ad->x)returnas->x-ad->x;//之前没有
qq172108805
·
2012-03-17 19:00
Ural
1051
. Simple Game on a Grid解题报告
这个题很有意思。尝试了好几种情况都没有找到规律,后来又尝试DP失败,只能去看解题报告了。看到一位大牛的解题过程,很强大,完全不需要我多说什么。上链接:http://hi.baidu.com/yhc0/blog/item/073f13d915629c2510df9bce.html#include#includeusing namespace std;int main(){ int m,n;
C小加
·
2012-03-01 09:00
Mysql 错误
1051
的解决办法
www.liangkun.net/archives/391.html 利用”drop database message”删除mysql数据库中存在的”message”数据库,结果却提示“ERROR
1051
&
tjmljw
·
2012-02-29 17:00
mysql
错误1051的解决办法
VC调用C#写的DLL
From: http://hi.baidu.com/ocnc/blog/item/2c7fc45c1d1f
1051
fbf2c0ea.htmlVC中调用C#写的DLL时,对C#这边的DLL有要求,即要在.
JoeBlackzqq
·
2011-12-28 15:00
.net
C#
user
null
dll
Interop
回乡年轻人因无法适应“拼关系” 逃回北上广C
2011年10月27日04:28 人民日报 我要评论(
1051
) 字号: T| T [导读]在大城市,房子贵、交通难、生活烦,票子却不够花,成为逃离“北上广”的理由。
webcode
·
2011-10-27 15:00
关系
zoj poj 题目分类
ZOJ题目分类初学者题:1001 1037 1048 1049
1051
1067 1115 1151 1201 1205 1216 1240 1241 1242 1251 1292 1331 1334
·
2011-09-22 20:00
poj
全世界近三万(29351)名经济学家,中国经济学家进入前5%的只有11人:凄惨!
张俊生:第
1051
名。林毅夫:第1153名。文一:第1
恒甫学社 admin
·
2011-09-18 13:00
经济学教育
上一页
12
13
14
15
16
17
18
19
下一页
按字母分类:
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
其他