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
csu
Timebomb(水题)
TimebombTimeLimit:1000MS MemoryLimit:131072KB 64bitIOFormat:%lld&%lluSubmit Status Practice
CSU
1395DescriptionInputOutputSampleInput
bao_libra
·
2015-05-03 20:00
Planting Trees(水题)
PlantingTreesTimeLimit:1000MS MemoryLimit:131072KB 64bitIOFormat:%lld&%lluSubmit Status Practice
CSU
1390DescriptionInputOutputSampleInput6
bao_libra
·
2015-05-03 20:00
CSU
1601: War(并查集)
DescriptionAMEdecidedtodestroyCH’scountry.InCH’country,ThereareNvillages,whicharenumberedfrom1toN.WesaytwovillageAandBareconnected,ifandonlyifthereisaroadbetweenAandB,orthereexistsavillageCsuchthatthe
libin56842
·
2015-05-03 19:00
并查集
CSU
CSU
1602: Needle Throwing Game(投针问题)
DescriptionTherearemanyparallellinesonthegroundwiththedistanceofDbetweeneachadjacenttwo.Now,throwinganeedlerandomlyontheground,pleasecalculatethepossibilityofthattheneedlecanbeacrossoneofthelines.Inpu
libin56842
·
2015-05-03 19:00
数学
CSU
CSU
1603: Scheduling the final examination(贪心)
DescriptionForthemostoftheuniversitystudents,whattheymostwantisthattheycanobtain60pointsfromthefinalexaminationofeverysubject.Now,finalexaminationiscoming.Asanexcellentprogrammer,youareaskedforhelp.Th
libin56842
·
2015-05-03 19:00
贪心
CSU
CSU
1604: SunnyPig(BFS)
DescriptionSunnyPigisapigwhoismuchclevererthananyotherpigsinthepigpen.Onesunnymorning,SunnyPigwantstogooutofthepigpentodateMrs.Snail,hisbeloved.However,it’sterriblytoughforapigtogooutofthepigpenbecaus
libin56842
·
2015-05-03 19:00
bfs
CSU
CSU
1600:Twenty-four point(DFS)
DescriptionGivenfournumbers,canyougettwenty-fourthroughtheaddition,subtraction,multiplication,anddivision?Eachnumbercanbeusedonlyonce.InputTheinputconsistsofmultipletestcases.Eachtestcasecontains4inte
libin56842
·
2015-05-03 19:00
DFS
CSU
二分图
CSU
1574 Amanda Lounges
题目链接:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=158908题意:给一些点和一些边。边的权值可为0,1,2,分别表示边的两个结点上取0个、1个、2个。存在矛盾的答案,即输出impossible。问合法情况下,最少取多少个点。思路:在输入过程中初始化use数组,-1为不能使用,1为使用。此时有矛盾判断。全部输入完毕后,
beihai2013
·
2015-05-01 08:00
自我训练
KMP
CSU
1581 Clock Pictures
CSU
1581 Clock Pictures题目链接:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?
beihai2013
·
2015-04-29 15:00
csu
1584: Train Passengers
题意:1.最后一站,计算完之后,必须车上无人,没人上车,没人等待2.超出车的容量,必然不行3.如果车没上满,却还有等待的人,那么是不行的,因为车没上满我干嘛不上啊,还等毛线啊#include #include #include usingnamespacestd; intmain() { longlongC,n; longlongx,y,z; intflag; while(scanf("%lld
xky1306102chenhong
·
2015-04-26 22:00
c
CSU
1580: Outing(图论+DP)
DescriptionInputOutputSampleInput44 1234SampleOutput4HINTSourceNCPC2014题意:有n个人,车上有k个座位然后n个输入,a[i],代表i坐车的先决条件是a[i]必须坐车思路:这道题是用的图论的方法,图论是我队友主攻,我主要是提供了一些思路首先,对于成环的情况,这换里面的人都是可以上车的那么我们把环看成一个点,那么就能形成几条链,那么
libin56842
·
2015-04-26 20:00
CSU
CSU
1578: Opening Ceremony
DescriptionInputOutputSampleInput6 218823SampleOutput5HINTSourceNCPC2014题意:又是一道理解了很久的题,英语弱菜没办法,意思就是,每次除掉一列或者一行,要几部可以移完#include #include #include #include #include #include #include #include #include #
libin56842
·
2015-04-26 20:00
CSU
csu
1577: Dice Game
#include #include #include usingnamespacestd; doublesumg,sume; intga1,gb1,ga2,gb2,ea1,eb1,ea2,eb2; intmain() { while(scanf("%d%d%d%d",&ga1,&gb1,&ga2,&gb2)!=EOF) { sumg=(double)(ga1+gb1)/2+(double)(g
xky1306102chenhong
·
2015-04-26 18:00
c
csu
1578: Opening Ceremony(DP)
#include #include #include usingnamespacestd; inta[100005]; intdp[100005]; intmain() { intn; while(scanf("%d",&n)==1) { for(inti=1;i<=n;i++) scanf("%d",&a[i]); sort(a+1,a+1+n); dp[0]=0; for(inti=1;i
xky1306102chenhong
·
2015-04-26 17:00
dp
CSU
1584: Train Passengers
DescriptionInputOutputSampleInput12 011 100SampleOutputpossible 题意:给出火车容量c,站点数n对于每个站点给出上车人数,下车人数和等待人数问最后是否能按要求完成旅途 思路:这道题理解了蛮久,后来得到如下确定1.最后一站,计算完之后,必须车上无人,没人上车,没人等待2.超出车的容量,必然不行3.如果车没上满,却还有等待的人,那么是不
libin56842
·
2015-04-26 17:00
CSU
CSU
1581: Clock Pictures(KMP)
DescriptionInputOutputSampleInput6 123456 765431SampleOutputimpossibleHINTSourceNCPC2014题意:给出时针的角度,看两个时钟是否匹配思路:对于连续数字的匹配问题,明显KMP搞起,next数组的运用#include #include #include #include #include #include #inclu
libin56842
·
2015-04-26 17:00
KMP
CSU
CSU
1577: Dice Game
DescriptionInputOutputSampleInput1414 1616SampleOutputEmmaHINTSourceNCPC2014题意:两个人丢色子,每人有两个色子,给出色子的大小,要求谁的赢面更大思路:本来是打算用期望求的,但是后来觉得直接取中间的和看谁大即可#include #include #include #include #include #include #inc
libin56842
·
2015-04-26 17:00
CSU
CSU
1576: Catalan Square
DescriptionInput Output SampleInput0SampleOutput1HINTSourceNCPC2014题目我没看,直接看公式和输出要求就开始做了,意思就是求公式。。明显大数,java搞起importjava.util.*; importjava.math.*; publicclassMain{ BigInteger[]Cal=newBigInteger[6000]
libin56842
·
2015-04-26 17:00
CSU
CSU
1574: Amanda Lounges
DescriptionInput Output SampleInput44 122 231 341 412SampleOutput3HINTSourceNCPC2014题意:有n个点,每个点最多一个加油站,然后m个条件,输入a,b,c代表a,b两个点有c个加油站,问能满足所有条件的情况下,加油站最少是几个思路:由于有5秒,可以试着搜索#include #include #include #incl
libin56842
·
2015-04-26 17:00
CSU
csu
1328 近似回文词
#include #include #include #include #include #include #include #include #include #include #include #include usingnamespacestd; intmain() { inti,k,j,st,maxx,cnt,p[1024],tot,cas=0,x,m,y,xx,yy; chars[10
xinag578
·
2015-04-21 21:00
CSU
1561-(More) Multiplication
题目链接:http://acm.
csu
.edu.cn/OnlineJudge/problem.php?
David_Jett
·
2015-04-19 19:00
字符串
模拟题
神烦
G - Good subsequence
GoodsubsequenceTimeLimit:2000MS MemoryLimit:262144KB 64bitIOFormat:%lld&%lluSubmit Status Practice
CSU
1553DescriptionGiveyouasequenceofnnumbers
viphong
·
2015-04-19 01:00
Rectangle 0-1背包
RectangleTimeLimit:1000MS MemoryLimit:262144KB 64bitIOFormat:%lld&%lluSubmit Status Practice
CSU
1547DescriptionNow
viphong
·
2015-04-19 00:00
CSU
1513 Kick the ball!
DFS题目的意思为告诉你每个人进球概率的情况下以当前比分结束这场比赛的概率是多少 数据量很小 直接枚举所有情况注意下判断比赛结束时的条件 如果比赛已经结束但是分数未达到要求时 要停止搜索(坑)当比赛已经结束且分数达到要求时 将当前状态的概率加上#include#include#include#include#includeusingnamespacestd;doublea[7],b[7];intx
永仁永仁
·
2015-04-16 23:21
OJ
CSU
1566: The Maze Makers(BFS)
DescriptionTheMazeMakersisapublisherofpuzzlebooks.Oneoftheirmostpopularseriesismazebooks.Theyhaveaprogramthatgeneratesrectangulartwo-dimensionalmazesliketheoneshowninFigure1.Therulesforthesemazesare:(
libin56842
·
2015-04-07 16:00
bfs
CSU
CSU
1565: Word Cloud
DescriptionAwordcloud(ortagcloud)isavisualrepresentationoftextualdatabasedonaweightedmetric.Intheabovecloud(whichisbasedonthisyear'slistofMid-Centralteams),thefontsizeofeachwordisbasedonitsnumberofocc
libin56842
·
2015-04-07 16:00
CSU
CSU
1563:Lexicography(数学)
DescriptionAnanagramofastringisanystringthatcanbeformedusingthesamelettersastheoriginal.(Weconsidertheoriginalstringananagramofitselfaswell.)Forexample,thestringACMhasthefollowing6anagrams,asgiveninal
libin56842
·
2015-04-07 16:00
CSU
CSU
1567:Reverse Rot(DFS)
DescriptionAmericanCarnivalMakersInc.(ACM)hasalonghistoryofdesigningridesandattractions.Oneoftheirmorepopularattractionsisafunhousethatincludesaroomofmirrors.Theirtrademarkistosetuptheroomsothatwhenlo
libin56842
·
2015-04-07 15:00
DFS
CSU
CSU
1116 Kingdoms
DescriptionAkingdomhasncitiesnumbered1ton,andsomebidirectionalroadsconnectingcities.Thecapitalisalwayscity1.Afterawar,alltheroadsofthekingdomaredestroyed.Thekingwantstorebuildsomeoftheroadstoconnectth
jtjy568805874
·
2015-04-07 12:00
最小生成树
状态压缩
GSU
CSU
1115 最短的名字
Description在一个奇怪的村子中,很多人的名字都很长,比如aaaaa,bbbandabababab。名字这么长,叫全名显然起来很不方便。所以村民之间一般只叫名字的前缀。比如叫'aaaaa'的时候可以只叫'aaa',因为没有第二个人名字的前三个字母是'aaa'。不过你不能叫'a',因为有两个人的名字都以'a'开头。村里的人都很聪明,他们总是用最短的称呼叫人。输入保证村里不会有一个人的名字是另
jtjy568805874
·
2015-04-07 12:00
GSU
CSU
1113 Updating a Dictionary
DescriptionInthisproblem,adictionaryiscollectionofkey-valuepairs,wherekeysarelower-caseletters,andvaluesarenon-negativeintegers.Givenanolddictionaryandanewdictionary,findoutwhatwerechanged.Eachdiction
jtjy568805874
·
2015-04-07 12:00
GSU
CSU
1563 Lexicography(全排列第K大)
题意输出字符串全排列第K大的数字。AC代码#include #include #include usingnamespacestd; typedeflonglongll; constintN=100; charstr[N],ans[N]; llfactor[N],cnt[N]; voidget_factor(){//计算阶乘 factor[0]=1; for(inti=1;i<=16;i++) f
HelloWorld10086
·
2015-04-06 19:00
CSU
1563
[ACM] SCU 1555 Inversion Sequence (线段树)
http://acm.
csu
.edu.cn/OnlineJudge/problem.php?
sr19930829
·
2015-04-05 20:00
[ACM]
CSU
1548 Design road (三分)
http://acm.
csu
.edu.cn/OnlineJudge/problem.php?id=1548第一次接触三分,题意和代码参考的网上的。
sr19930829
·
2015-04-05 20:00
[ACM]
CSU
1553 Good subsequence(尺取法)
题目地址:http://acm.
csu
.edu.cn/OnlineJudge/problem.php?
sr19930829
·
2015-04-05 19:00
湖南多校对抗赛---Jerry's trouble
题目网址:http://acm.
csu
.edu.cn/OnlineJudge/problem.php?
u014665013
·
2015-03-29 08:00
湖南多校对抗赛---Good subsequence
题目网址:http://acm.
csu
.edu.cn/OnlineJudge/problem.php?
u014665013
·
2015-03-29 08:00
湖南多校对抗赛---Rectangle(01背包)
题目网址:http://acm.
csu
.edu.cn/OnlineJudge/problem.php?
u014665013
·
2015-03-29 08:00
Contest2071 - 湖南多校对抗赛(2015.03.28)
Contest2071-湖南多校对抗赛(2015.03.28) 本次比赛试题由湖南大学ACM校队原创 http://acm.
csu
.edu.cn/OnlineJudge/contest.php?
u010579068
·
2015-03-28 23:00
String
simple
sequence
-
design
rectangle
Road
Inversion
湖南多校对抗
Contest2071
CSU
1553 Good subsequence(暴力求解)
题意求一个子序列满足最大值-最小值=(a[11]-k)的数字这时候子串长度=11-j的位置变成了min=a[j],max=a[11]不要被数据范围给吓到了,n虽然有10万,但是最小值和最大是满足单调递增的,所以不会算很慢。AC代码#include #include #include #include #include usingnamespacestd; typedeflonglongll; co
HelloWorld10086
·
2015-03-28 22:00
CSU
1553
CSU
1547 Rectangle(01背包)
题意给你一个n个1*x和2*x的矩形,这些矩阵不能翻转,只能横着摆放。现在要你用这些矩形拼成2*m的矩形,问m最短是多少。解析很显然2*x的矩阵的长度可以直接加在一起,关键看1*x的矩形,1*x的矩形最优的是选择两段和差距最小的,那么这就可以转换为求到sum/2最多可以组成多少的01背包问题。AC代码#include #include #include usingnamespacestd; con
HelloWorld10086
·
2015-03-28 22:00
CSU
1547
CSU
1532 JuQueen 线段树 lazy 区间最值
题目链接:点击打开链接题意:第一行给出C,n,Q开始有一个编号[0,C)的全0序列。下面Q行操作statusid(询问下标为id的值)groupchange[l,r]val 把区间[l,r]每次+1(或-1)val次,当区间中某一个点达到0或n时则操作停止,输出实际+1(或-1)的值changeidval同上,只是单点操作。思路:裸线段树,维护区间最值和加个lazy标记就可以了#include #
qq574857122
·
2015-03-28 09:00
CSU
1531 Jewelry Exhibition 二分匹配(裸
题目链接:点击打开链接题意:给定[0,n]*[0,m]的二维矩阵矩阵内有k个绿点下面k行给出绿点坐标,(保证给出的坐标都不是整数且0 #include #include #include #include #include #include #include #include #include template inlineboolrd(T&ret){ charc;intsgn; if(c=ge
qq574857122
·
2015-03-28 09:00
CSU
1527 Bounty Hunter dp 双调旅行商
题目链接:点击打开链接裸的双调旅行商问题啦#include #include #include #include #include #include #include #include usingnamespacestd; #definellint #defineN550 #defineinf1152921504606846976 structnode{ doublex,y; booloperat
qq574857122
·
2015-03-28 09:00
CSU
1526 Beam me out! 强连通
题目链接:点击打开链接题意:给定n个点的有向图(1为起点,n为终点)下面每两行给出一个点的出度和所连接的下一个点。第n个点是没有出度的图是这样的:1->2,1->3,2->3第一问:若存在一种方案使得这个人进入一个点后再也不能到达终点则输出PRISON,否则输出PARDON第二问:若这个人可以在图里走无穷步则输出UNLIMITED,否则输出LIMITED#include #include #inc
qq574857122
·
2015-03-28 09:00
地址汇总
---------- http://my.oschina.net/liangbo/blog/224891 mybatis使用心得介绍1,还有2; http://blog.csdn.net/qs_
csu
xgia7
·
2015-03-20 17:00
CSU
1529 Equator DP
队列优化DPEquatorTimeLimit: 5000MS MemoryLimit: 131072KB 64bitIOFormat: %lld&%lluSubmit StatusDescriptionInputOutputSampleInput3 3123 845-1-11-1-15 2-1-1SampleOutput6 14 0/********************************
u012797220
·
2015-03-17 21:00
查看当前系统的glibc版本
原来在libc的代码中有一点小手脚:Makerules:586:LDFLAGS-c.so+=-e__libc_main
csu
/version.c:71:__libc_main(void) void
xiaoxinyu316
·
2014-12-24 11:00
iOS 自动打包发布的资料收集
/blog.csdn.net/wuzehai02/article/details/8287787 IOS工程自动打包并发布脚本实现 http://blog.csdn.net/qs_
csu
zhengjj_2009
·
2014-12-22 23:00
ios
iOS 自动打包发布的资料收集
/blog.csdn.net/wuzehai02/article/details/8287787 IOS工程自动打包并发布脚本实现 http://blog.csdn.net/qs_
csu
zhengjj_2009
·
2014-12-22 23:00
ios
上一页
13
14
15
16
17
18
19
20
下一页
按字母分类:
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
其他