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
1085
【NOIP2003TG/codevs
1085
】 数字游戏 解题报告
数字游戏 NOIP2003TG/codevs
1085
黄金Gold题目描述 Description丁丁最近沉迷于一个数字游戏之中。
Clove_unique
·
2015-08-24 13:00
dp
hdu
1085
Holding Bin-Laden Captive!
母函数水题。#include #include #include #include #include #include #include #include usingnamespacestd; #definelllonglong intc[8010]; intmain(){ intnum_1,num_2,num_5; while(cin>>num_1>>num_2>>num_5){
squee_spoon
·
2015-08-16 22:00
1085
. Perfect Sequence (25)
题目地址:http://www.patest.cn/contests/pat-a-practise/
1085
Givenasequenceofpositiveintegersandanotherpositiveintegerp.Thesequenceissaidtobea
qq_26437925
·
2015-08-15 17:00
二分查找
1085
. Perfect Sequence (25) -二分查找
题目如下:Givenasequenceofpositiveintegersandanotherpositiveintegerp.Thesequenceissaidtobea"perfectsequence"ifM #include #include #include usingnamespacestd; intmain() { intn,p; scanf("%d%d",&n,&p); vecto
xyt8023y
·
2015-08-11 14:00
算法
二分查找
pat
南邮 OJ
1085
A + B Problem (2)
A+BProblem(2)时间限制(普通/Java) : 1000MS/ 3000MS 运行内存限制:65536KByte总提交:3110 测试通过:1614 比赛描述Calculatea+b.输入Theinputwillconsistofaseriesofpairsofintegersaandb,separatedbyaspace,onepairofintegersperl
changshu1
·
2015-08-04 10:00
ACM
+
problem
2
B
a
南邮OJ
hdoj
1085
Holding Bin-Laden Captive!【基础母函数】
HoldingBin-LadenCaptive!TimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):17382 AcceptedSubmission(s):7797ProblemDescriptionWeallknowthatBin-Ladenisanoto
chenzhenyu123456
·
2015-08-03 21:00
1085
【母函数】
HoldingBin-LadenCaptive!TimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):17379 AcceptedSubmission(s):7795ProblemDescriptionWeallknowthatBin-Ladenisanoto
ydd97
·
2015-08-03 20:00
【HDOJ
1085
】数学问题,母函数
Holding Bin-Laden Captive! Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 17327 Accepted Submission
·
2015-07-26 14:00
函数
Android日历行程
Android日历行程android下的日历日程,可以显示当前日期,农历,支持手势滑动切换日期下载地址:http://www.devstore.cn/code/info/
1085
.html运行截图:
zz2043191420
·
2015-07-24 14:00
HDU
1085
Holding Bin-Laden Captive!
题目地址:点击打开链接思路:挺不错的一题,总共写了六种代码,运行时间一次比一次少,最次的代码思路正确,只不过写废了就不贴了,最次的代码的思想的把单个硬币能表示出来的敲出来,接着再组合,而且每次循环到8001,很容易超时,母函数为(1+x^1+x^2+..x^n)(1+x^2+x^4+..+x^2n)(1+x^5+x^10+..+x^5n)其中n为每个种类硬币的数量,剩下的5种代码简介如下AC代码1
qq_25605637
·
2015-07-17 15:00
[ACM]辽宁省赛2010 (HZNU 1081-1089)
虽然退役了,但偶尔水几题醒醒脑还是不错的=_=
1085
Intermediary 暂时还没做1081:Dinner时间限制: 1Sec 内存限制: 32MB提交: 5 解决: 3[提交][状态][讨论版
ycity
·
2015-06-14 18:27
ACM
辽宁省赛2010
hdu
1085
Holding Bin-Laden Captive!(母函数)
代码:#include #include usingnamespacestd; longlongc1[8005],c2[8005]; intmain() { inta[4]; a[1]=1; a[2]=2; a[3]=5; intn[4]; while(scanf("%d%d%d",&n[1],&n[2],&n[3])&&(n[1]||n[2]||n[3])) { memset(c1,0,si
xky1306102chenhong
·
2015-06-06 15:00
母函数
jdbc与mysql的连接错误解决——“Connect failed: Access denied for user 'root'@'localhost' (using password: YES)”
然后第一步用了http://outofmemory.cn/code-snippet/
1085
/java-usage-JDBC-connection-MYSQL-database这个网址上的一个方法,下载
ly969434341
·
2015-05-15 18:47
JavaWeb
jdbc与mysql的连接错误解决——“Connect failed: Access denied for user 'root'@'localhost' (using password: YES)”
然后第一步用了http://outofmemory.cn/code-snippet/
1085
/java-usage-JDBC-connection-MYSQL-database这个网址上的一个方法,下载
ly969434341
·
2015-05-15 18:00
mysql
数据库
jdbc
database
hdu
1085
(Holding Bin-Laden Captive!)
hdu
1085
思路:这个与前面的稍微有点区别,就是它的重复的个数是给定的,所以在做多项式相乘是注意控制别超了个数就行了。
u011479875
·
2015-04-08 17:00
hdu
1085
Holding Bin-Laden Captive!(母函数)
题目大意:给出1、2、5分硬币数目,问不能构成的面值的最小值是多少。生成函数:(1+x+x^2+x^3……x^k1)*(1+x^2+x^4……x^2*k2)*(1+x^5+x^10……x^5*k3)#include #include #include #include #include usingnamespacestd; intc[8005],c0[8005],v[4]={0,1,2,5},a[
u014679804
·
2015-04-05 16:00
1085
. Perfect Sequence (25)
又一个线性扫描数组的例子#include #include #include usingnamespacestd; intmain(){ longlongn,p;cin>>n>>p; vectorv(n); for(auto&x:v)cin>>x; sort(v.begin(),v.end()); longlongpos=0,maxlen=0; for(longlongi=0;i=v[pos])+
u013827143
·
2015-03-18 10:00
HDU
1085
简单母函数
HoldingBin-LadenCaptive!TimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):16123 AcceptedSubmission(s):7236ProblemDescriptionWeallknowthatBin-Ladenisanoto
wust_ZJX
·
2015-03-14 15:00
母函数相关题目
题目:hdu
1085
、hdu1171、hdu1398、hdu2079、hdu2082、hdu2110、hdu215
wust_ZJX
·
2015-03-13 22:00
hdu
1085
Holding Bin-Laden Captive! 母函数的基本运用,,还是不难的
HoldingBin-LadenCaptive!TimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):16063 AcceptedSubmission(s):7206ProblemDescriptionWeallknowthatBin-Ladenisanoto
Lionel_D
·
2015-03-02 20:00
ca
holding
母函数
hdu1085
Bin-Laden
1085
. Perfect Sequence (25)
题目:Givenasequenceofpositiveintegersandanotherpositiveintegerp.Thesequenceissaidtobea"perfectsequence"ifM #include #include usingnamespacestd; intmain() { intn,p; scanf("%d%d",&n,&p); vectorseq; seq.r
Yangsongtao1991
·
2015-03-02 19:00
考试
pat
浙江大学
【BZOJ
1085
】 [SCOI2005]骑士精神
1085
:[SCOI2005]骑士精神TimeLimit: 10Sec MemoryLimit: 162MBSubmit: 953 Solved: 500[Submit][Status]Description
Regina8023
·
2015-02-25 10:00
OI
启发式搜索
bzoj
【DP】 POJ
1085
Triangle War
状态用二进制压缩存储,然后记忆化搜索就可以了。。。#include #include #include #include #include #include #include #include #include #include #include #include #include #definemaxn300005 #definemaxm400005 #defineeps1e-7 #define
blankcqk
·
2015-02-09 11:00
dp
poj
Moto手机再次回归国内 全网通双4G一个都不少
Moto粉丝们这次要开心了,在此之前Moto两款产品已经通过国家质量认证中心3C认证,就在今天工信部无线电管理局最新更新的无线电发射设备型号表中,摩托罗拉XT1079、XT
1085
位列其中,这两款产品很可能就是新一代的
penylo
·
2014-12-18 00:00
手机
moto
回归
[BZOJ
1085
][SCOI 2005]骑士精神(IDA*搜索)
id=
1085
考虑到深度不超过15,IDA*搜索可做。估价函数h()=当前不在目标位置的棋子个数。然后其他细节就和普通的迭代加深一样了。
qpswwww
·
2014-12-05 21:00
HDU
1085
Holding Bin-Laden Captive!(母函数)
pid=
1085
解题思路:一道母函数的题目,至于有关母函数详细的讲解,请看这个人的博客:http://www.wutianqi.com/?
piaocoder
·
2014-12-04 09:00
母函数
HDU
1085
Holding Bin-Laden Captive! 【母函数】
HoldingBin-LadenCaptive!TimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):15590 AcceptedSubmission(s):6977ProblemDescriptionWeallknowthatBin-Ladenisanoto
u013806814
·
2014-11-29 22:00
HDU
组合数
SCOI 2005 骑士精神 && FZU 骑士 搜索+剪枝
lydsy
1085
题目链接:点击打开链接#include #include #include #include #include #include usingnamespacestd; constintdx
qq574857122
·
2014-11-16 16:00
通过 thread dump 分析找到高CPU耗用与内存溢出的Java代码
原文链接:http://www.cnblogs.com/svennee/p/4075633.htmlhttp://heylinux.com/archives/
1085
.html通过threaddump分析找到高
weixin_30596023
·
2014-11-05 10:00
BZOJ
1085
SCOI 2005 骑士精神 IDA*
题目大意:有一张5*5的棋盘,上面有12和黑棋还有12个白棋。问最少多步可以到达目标状态。思路:搜索+剪枝。至于剪枝我就用ID+A*的组合了,因为都不难想,估价函数就是当前图和目标图有多少个方块不一样。如果当前步数+估价大于当前迭代加深的层数就退出。CODE:#include #include #include #include usingnamespacestd; constintdx[]={0
jiangyuze831
·
2014-10-29 15:00
搜索
剪枝
IDA
bzoj
SCOI2005
pat
1085
. Perfect Sequence (25)
pat
1085
.PerfectSequence(25)时间限制300ms内存限制32000kB代码长度限制16000B判题程序Standard作者CAO,PengGivenasequenceofpositiveintegersandanotherpositiveintegerp.Thesequenceissaidtobea"perfectsequence"ifM
laoyi19861011
·
2014-09-13 03:00
PAT
1085
. Perfect Sequence (25)
1085
.PerfectSequence(25)时间限制300ms内存限制32000kB代码长度限制16000B判题程序Standard作者CAO,PengGivenasequenceofpositiveintegersandanotherpositiveintegerp.Thesequenceissaidtobea"perfectsequence"ifM
solin205
·
2014-09-09 16:00
PAT
1085
. Perfect Sequence
1.将数组vt排序。O(nlogn)2.之后遍历数组。取数组的第i个元素作为最小值,m*p可得最大值target.在vt[i,n)中寻找满足vt[index] #include #include usingnamespacestd; intn,maxx=0; longlongp,tmp; vectorvt; voidinit() { cin>>n>>p; for(inti=0;i>tmp;
u014674776
·
2014-09-09 16:00
C++
pat
PAT
1085
Perfect Sequence
PAT
1085
PerfectSequence题目:Givenasequenceofpositiveintegersandanotherpositiveintegerp.Thesequenceissaidtobea"perfectsequence"ifM
Boostable
·
2014-09-07 10:00
pat
1085
. Perfect Sequence (25)
pat
1085
.PerfectSequence(25)时间限制300ms内存限制32000kB代码长度限制16000B判题程序Standard作者CAO,PengGivenasequenceofpositiveintegersandanotherpositiveintegerp.Thesequenceissaidtobea"perfectsequence"ifM
nan327347465
·
2014-09-06 21:00
Algorithm
二分查找
HDU1220 Cube
Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):1372 AcceptedSubmission(s):
1085
ProblemDescriptionCowlisgoodatsolvingmathproblems.Onedayafriendasked
u012846486
·
2014-08-28 09:00
HDU1220
Spring Quartz定时器
Spring Quartz定时器 分类: Java 2011-07-12 14:49
1085
人阅读 评论(0) 收藏 举报 quartzspringencodingbean任务调度cron
细雨纷纷欲断魂
·
2014-08-18 18:00
spring
hdu
1085
!【数学】
ProblemDescriptionGivensomeChineseCoins(硬币)(threekinds--1,2,5),andtheirnumberisnum_1,num_2andnum_5respectively,pleaseoutputtheminimumvaluethatyoucannotpaywithgivencoinsInputInputcontainsmultipletestca
u014641529
·
2014-08-07 16:00
c
hdu
1085
Holding Bin-Laden Captive!(母函数)
pid=
1085
题意:1元,2元,5元的硬币分别有num[1],num[2],num[3]个。问用这些硬币不能组合成的最小钱数。继续母函数。
u013081425
·
2014-07-27 19:00
母函数
HDU
1085
Holding Bin-Laden Captive! 【母函数】
HoldingBin-LadenCaptive!TimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):14543 AcceptedSubmission(s):6514ProblemDescriptionWeallknowthatBin-Ladenisanoto
u012846486
·
2014-07-25 23:00
hdu1085
整数拆分
hdu
1085
HoldingBin-LadenCaptive!hdu1398SquareCoins入门级基础题hdu4651Partition这该算是数论中的经典题了。
solotzg
·
2014-07-14 15:00
生成函数
五边形数
1085
a+b
求和题目要求,两虚输入多行数据,然后打印每行的和; 如输入: 4 5 8 12 44 7 输出: 9 20 51 答案: #include int main(void) { int ashu[10] = {0}; int bshu[10] = {0}; int cshu[10] = {0}; int qjia, hjia, i, j;
首席撸起水泡
·
2014-07-08 22:00
poj
1085
Triangle War (状压+记忆化搜索)
TriangleWarTimeLimit: 1000MS MemoryLimit: 65536KTotalSubmissions: 2685 Accepted: 1061DescriptionTriangleWarisatwo-playergameplayedonthefollowingtriangulargrid: Twoplayers,AandB,taketurnsfillinginanydo
u010228612
·
2014-06-26 23:00
Pat(Advanced Level)Practice--
1085
(Perfect Sequence)
Pat
1085
代码题目描述:Givenasequenceofpositiveintegersandanotherpositiveintegerp.Thesequenceissaidtobea"perfectsequence"ifM
u012736084
·
2014-05-23 21:00
pat
advance
NOJ [
1085
] kiki's game
问题描述Recentlykikihasnothingtodo.Whilesheisbored,anideaappearsinhismind,shejustplayesthecheckerboardgame.Thesizeofthechesserboardisn*m.Firstofall,acoinisplacedinthetoprightcorner(1,m).Eachtimeonepeoplec
u014389688
·
2014-05-13 17:00
HDU
1085
Ignatius and the Princess III (母函数-整数拆分)
IgnatiusandthePrincessIIITimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):11780 AcceptedSubmission(s):8340ProblemDescription"Well,itseemsthefirstproblem
IAccepted
·
2014-04-25 14:00
HDU
1028
HDU
1085
Holding Bin-Laden Captive! (母函数)
HoldingBin-LadenCaptive!TimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):13861 AcceptedSubmission(s):6230ProblemDescriptionWeallknowthatBin-Ladenisanoto
IAccepted
·
2014-04-24 23:00
HDU
组合数
母函数
[ACM] hdu
1085
Holding Bin-Laden Captive! (母函数变形)
HoldingBin-LadenCaptive!TimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):13505 AcceptedSubmission(s):6094ProblemDescription WeallknowthatBin-Ladenisanot
sr19930829
·
2014-03-26 20:00
ACM
母函数
HDU
1085
题意:给你1,2,5类型的硬币的数量;求最小不能组成的数额。。。。。母函数:G(x)=(1+x+x^2+...+x^a[1])(1+x^2+x^4+...+x^2*a[2])(1+x5+x10+x15...+x^5*a[3]).......#include #include #include #include //#include #include #include #include #inclu
u012861385
·
2014-02-21 23:00
HDU
1085
Holding Bin-Laden Captive!
ProblemDescriptionWeallknowthatBin-Ladenisanotoriousterrorist,andhehasdisappearedforalongtime.Butrecently,itisreportedthathehidesinHangZhouofChina! “Oh,God!Howterrible!”Don’tbesoafraid,guys.Althoughhe
starcuan
·
2014-02-15 18:00
HDU
上一页
7
8
9
10
11
12
13
14
下一页
按字母分类:
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
其他