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
水题……
水题
小技巧
DigitalRoots题一:题目链接:http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1009&cid=29312题意:将一个多位数的各个位上的数字求和,直到这个和是一个个位数。ProblemDescriptionThedigitalrootofapositiveintegerisfoundbysummingthedigitsofthe
a716121
·
2016-05-12 17:00
NOJ——聊天止于呵呵(string流重定向+map,
水题
)
[1645]聊天止于呵呵时间限制:5000ms内存限制:65535K问题描述(现代版)俗话说:流言止于智者,聊天止于呵呵。输入一段聊天记录,你的任务是数一数有多少段对话“止于呵呵”,即对话的最后一句话包含单词 hehe 或者它的变形。具体来说,我们首先提取出对话的最后一句话,把所有非字母的字符替换成空格,把所有字符替换成小写,然后导出一个单词列表(由空格隔开),只要列表中的任何一个单词是 hehe
a88770202
·
2016-05-12 16:00
Different is Good
水题
B.DifferentisGood题目连接:http://www.codeforces.com/contest/672/problem/BDescriptionAwisemantoldKerem"Differentisgood"once,soKeremwantsallthingsinhislifetobedifferent.Keremrecentlygotastringsconsistingofl
qscqesze
·
2016-05-12 16:00
Summer Camp
水题
A.SummerCamp题目连接:http://www.codeforces.com/contest/672/problem/ADescriptionEveryyear,hundredsofpeoplecometosummercamps,theylearnnewalgorithmsandsolvehardproblems.Thisisyourfirstyearatsummercamp,andyou
qscqesze
·
2016-05-12 16:00
HDU 2564 词组缩写
pid=2564
水题
#include #include #include usingnamespacestd; intmain() { charstr[150]; intT; scanf("%d%*c"
azhuge233
·
2016-05-12 11:00
字符串
水题
HDU2564
[BZOJ2819]Nim(树链剖分)
题目描述传送门题解为了学手写栈刷了一道
水题
。
Clove_unique
·
2016-05-12 08:43
题解
树链剖分
[BZOJ2819]Nim(树链剖分)
题目描述传送门题解为了学手写栈刷了一道
水题
。
Clove_unique
·
2016-05-12 08:00
树链剖分
bzoj
手写栈
第五届山东省ACM Factorial
Factorial
水题
,求阶乘#include #include #include #include #include #include #include #include #include #include
u014665013
·
2016-05-11 22:00
第五届山东省ACM angry_birds_again_and_again(积分)
水题
,求积分做就好了,但是开始还错了,回车竟然判成WR而不是PR,第一题就卡,醉了。。。
u014665013
·
2016-05-11 21:00
coderforces 22C 构图
水题
这题实际上跟割点真没啥关系,题意:给n个点,m条边,割点为v的一个图,你试图将它还原,不能输出-1,能就将可行的一组输出即可,还有图为联通图思路:这跟割点没什么关系,直接想想就可以写出来了,先判断能不能组成这样的图,对于一个有一个割点的联通图,如何分配可以使边最多呢,以割点为分界线,左边一部分,右边一部分,可以很直白的知道左边只有一个的时候加的边最多,可以列出个式子,这样右边最多可以为(n-1)*
zcmartin2014214283
·
2016-05-11 20:00
图论
hdu 1084
水题
ProblemDescription“Point,point,lifeofstudent!”Thisisaballad(歌谣)wellknownincolleges,andyoumustcareaboutyourscoreinthisexamtoo.Howmanypointscanyouget?Now,Itoldyoutheruleswhichareusedinthiscourse.Therear
qq_33817680
·
2016-05-11 17:00
HDU 1008 Elevator
pid=1008题意:一电梯,上一层耗时6s,下一层耗时4s,每到达指定的一层停留5s,给出一串楼层数,问按此顺序运行下来的总耗时
水题
,主要注意楼层没变也要+5s#include usingnamespacestd
azhuge233
·
2016-05-11 15:00
水题
hdu1008
HDOJ/HDU 2537 8球胜负(
水题
.简单的判断)
ProblemDescription8球是一种台球竞赛的规则。台面上有7个红球、7个黄球以及一个黑球,当然还有一个白球。对于本题,我们使用如下的简化规则:红、黄两名选手轮流用白球击打各自颜色的球,如果将该颜色的7个球全部打进,则这名选手可以打黑球,如果打进则算他胜。如果在打进自己颜色的所有球之前就把黑球打进,则算输。如果选手不慎打进了对手的球,入球依然有效。现在给出打进的球(白球除外)的顺序,以及
qq_26525215
·
2016-05-11 02:00
[SCU 4496] 01的时间 (数位DP)
,求最小的仅由0和1构成的能被给定数整除的数暴力dfs,从高到低,从小到大枚举当前位,然后一直搜到底最后判断一下余数是否等于0,如果为0,则返回要注意前导0的情况,即排除全为0的解其实就是个数位DP的
水题
u012015746
·
2016-05-10 21:00
dp
DFS
HDU 1004 Let the Balloon Rise【
水题
】
LettheBalloonRiseTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):102886 AcceptedSubmission(s):39491ProblemDescriptionContesttimeagain!Howexciteditistos
qq_24653023
·
2016-05-10 21:00
ACM
HDU
CodeForces 673A Bear and Game
思路:
水题
#include usingnamespacestd; constintmaxn=1e5+6; intvis[100]; intmain() { intn; scanf("%d",&n); for
qq_21057881
·
2016-05-10 19:00
【HDU 3785】【
水题
】寻找大富翁
水题
#include"stdio.h" #include"algorithm" usingnamespacestd; intcmp(inta,intb) { returna>b; } intmain(
x123654p
·
2016-05-10 14:00
c
水题
POI2015 题解
POI2015的题解,也算是目录了还是那句话,POI不能只刷前10道
水题
.....所以硬着头皮刷了下来....结果还是只刷了12道...有两道BZOJ上没有的说...没给题解链接的就是我不会的,Claris
commonc
·
2016-05-10 10:08
BZOJ
POI
目录
POI2015 题解
POI2015的题解,也算是目录了还是那句话,POI不能只刷前10道
水题
.....所以硬着头皮刷了下来....结果还是只刷了12道...有两道BZOJ上没有的说...没给题解链接的就是我不会的,Claris
commonc
·
2016-05-10 10:00
poi
目录
bzoj
POJ 1163 The Triangle 【
水题
】
TheTriangleTimeLimit:2000/1000ms(Java/Other) MemoryLimit:20000/10000K(Java/Other)TotalSubmission(s):1 AcceptedSubmission(s):1ProblemDescription7 38 810 2744 45265 (Figure1)Figure1showsanumbertria
qq_24653023
·
2016-05-09 21:00
ACM
poj
Codeforces Round #299 (Div. 2) C. Tavas and Karafs
其实就是个二分
水题
!
just_sort
·
2016-05-09 21:00
hrbust/哈理工oj 1677 一个函数【栈】【
水题
】
一个函数TimeLimit:1000MSMemoryLimit:32768KTotalSubmit:49(38users)TotalAccepted:39(36users)Rating: SpecialJudge: NoDescription现在用一个函数来处理一个字符串(该字符串只包含x和y)。函数的两个操作如下。1. 在字符串中找到两个连续的字符(可以不相邻),并且第一个字符是’y’,第二个
mengxiang000000
·
2016-05-09 20:00
1677
1677
hrbust
哈理工oj
nyoj100题纪念。。。
虽然这个100题在很多大牛甚至小牛看了只是一个笑话,但我来说很重要就足够了,大一下学期刷了一学期的南阳,大二上学期我迷失了方向,在各大oj上漫无目的的刷题,说白了也就是到处找
水题
做,感觉提升很小,我现在各大
Sxx312
·
2016-05-09 20:00
GDOI总结
真的是天理难容,放过了一道大
水题
。T2:要找最长公共子串,不过串是可以区间修改的。这题我看错了题目,题目中的区间修改是可以随意调换的,但我以为必须是完全相反的反转,结果连暴力都打错,又爆0了。
dudingxun
·
2016-05-09 18:50
GDOI总结
真的是天理难容,放过了一道大
水题
。T2:要找最长公共子串,不过串是可以区间修改的。这题我看错了题目,题目中的区间修改是可以随意调换的,但我以为必须是完全 相反的反转,结果连暴力都打错,又爆0
dudingxun
·
2016-05-09 18:00
HDU 1086 You can Solve a Geometry Problem too(
水题
)
题意:给你几条线段统计有几个交点#include usingnamespacestd; structpoint { doublex,y; }; structline { pointst,en; }l[101]; doublecross(pointa,pointb,pointc)///叉积 { return(b.x-a.x)*(c.y-a.y)-(c.x-a.x)*(b.y-a.y); } int
yangkunpengD
·
2016-05-09 16:00
ACM
几何
HDU解题报告
UVA 541 Error Correction【
水题
】
ErrorCorrectionTimeLimit:2000/1000ms(Java/Other) MemoryLimit:131072/65536K(Java/Other)TotalSubmission(s):1 AcceptedSubmission(s):1ProblemDescriptionAbooleanmatrixhastheparitypropertywheneachrowand
qq_24653023
·
2016-05-09 15:00
ACM
uva
HDU 2896 病毒侵袭(AC自动机)
AC自动机
水题
#include #include #include #include #include usingnamespacestd; structnode{ inttag; node*fail
acraz
·
2016-05-09 10:00
CodeForces 670C Cinema
思路:
水题
#include usingnamespacestd; constintmaxn=2*1e6; structNode { intb,c; }nodes[maxn]; mapa; intmain
qq_21057881
·
2016-05-08 23:00
CodeForces 670B Game of Robots
思路:
水题
#include usingnamespacestd; constintmaxn=1e6; inta[maxn]; intmain() { intn,k; scanf("%d%d",&n,&k
qq_21057881
·
2016-05-08 23:00
CodeForces 670A Holidays(
水题
)
思路:
水题
#include usingnamespacestd; intmain() { intn; scanf("%d",&n); intMax=0; intMin=999999; for(inti
qq_21057881
·
2016-05-08 23:00
HDU2087 剪花布条
题目链接
水题
,给出A字符串和B字符串,求A字符串能分出几个B字符串。
q390898664
·
2016-05-08 22:00
Codeforces Round #351 (VK Cup 2016 Round 3, Div. 2 Edition)
分析:
水题
。找到第一个跨度大于15的点即可,注意答案最大90。代码:#include #include #include #include #include #include #includ
Fsss_7
·
2016-05-08 21:00
01背包
水题
HDU 2546饭卡
Description电子科大本部食堂的饭卡有一种很诡异的设计,即在购买之前判断余额。如果购买一个商品之前,卡上的剩余金额大于或等于5元,就一定可以购买成功(即使购买后卡上余额为负),否则无法购买(即使金额足够)。所以大家都希望尽量使卡上的余额最少。 某天,食堂中有n种菜出售,每种菜可购买一次。已知每种菜的价格以及卡上的余额,问最少可使卡上的余额为多少。 Input多组数据。对于每组数据: 第一
Advanced_hwr
·
2016-05-08 20:00
最短路
水题
HDU 1874畅通工程续
Description某省自从实行了很多年的畅通工程计划后,终于修建了很多路。不过路多了也不好,每次要从一个城镇到另一个城镇时,都有许多种道路方案可以选择,而某些方案要比另一些方案行走的距离要短很多。这让行人很困扰。 现在,已知起点和终点,请你计算出要从起点到终点,最短需要行走多少距离。 Input本题目包含多组数据,请处理到文件结束。 每组数据第一行包含两个正整数N和M(0 #include #
Advanced_hwr
·
2016-05-08 20:00
poj1068Parencodings
水题
一道,分两种情况考虑,当右括号前面是左括号直接就是1,否则就加入栈然后往前找#include #include #include usingnamespacestd; inta[105],b[105
zcmartin2014214283
·
2016-05-08 14:00
poj
水题
poj2159Ancient Cipher
水题
一道,然而废了不少功夫,频率一样就行,排个序就OK了,不过刚开始以为只能加1,其实可以加很多,题意理解错了#include #include #include usingnamespacestd;
zcmartin2014214283
·
2016-05-08 13:00
poj
水题
专题三 Problem O
四、感想 简单,
水题
。
ML_ACM
·
2016-05-08 12:00
并查集初学(3)无间道之并查集 && POJ2542 && POJ1611
1、hihocoder上面讲的一道题无间道之并查集
水题
,精髓在于使用map容器进行打标签#include #include #include #include #include #include usingnamespacestd
qq_32036091
·
2016-05-08 09:00
并查集初学3无间道之并查集
POJ25
Courses(二分图
水题
)
CoursesTimeLimit:10000MS MemoryLimit:32768KB 64bitIOFormat:%I64d&%I64uSubmit Status Practice HDU1083DescriptionConsideragroupofNstudentsandPcourses.Eachstudentvisitszero,oneormorethanonecourse
u014665013
·
2016-05-08 08:00
Problems for Round
水题
B.ProblemsforRound题目连接:http://www.codeforces.com/contest/673/problem/BDescriptionTherearenproblemspreparedforthenextCodeforcesround.Theyarearrangedinascendingorderbytheirdifficulty,andnotwoproblemshav
qscqesze
·
2016-05-08 08:00
Bear and Game
水题
A.BearandGame题目连接:http://www.codeforces.com/contest/673/problem/ADescriptionBearLimaklikeswatchingsportsonTV.Heisgoingtowatchagametoday.Thegamelasts90minutesandtherearenobreaks.Eachminutecanbeeitherin
qscqesze
·
2016-05-08 08:00
HDU 1157 Who's in the Middle【
水题
】
Who'sintheMiddleTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):14625 AcceptedSubmission(s):6564ProblemDescriptionFJissurveyinghisherdtofindthemostaver
qq_24653023
·
2016-05-08 00:00
ACM
HDU
HDU 1032 The 3n + 1 problem 【
水题
】
The3n+1problemTimeLimit:2000/1000ms(Java/Other) MemoryLimit:65536/32768K(Java/Other)TotalSubmission(s):5 AcceptedSubmission(s):2ProblemDescriptionProblemsinComputerScienceareoftenclassifiedasbelon
qq_24653023
·
2016-05-07 22:00
ACM
HDU
最小生成树【Kruskal】POJ2377,POJ1258,poj2358,hdu1233
最小生成树
水题
……全部用kruskal模板编写。
sinat_19628145
·
2016-05-07 22:00
HDU 5122 K.Bro Sorting
思路:
水题
#include usingnamespacestd; #defineLLlonglong constintmaxn=1e6+5; inta[maxn]; intmain() { intT,cas
qq_21057881
·
2016-05-07 22:00
HDU 5115 Dire Wolf(区间DP)
思路:区间DP
水题
#include #include #include #include #include #include #include #include #include #include #include
qq_21057881
·
2016-05-07 22:00
HDU 5112 A Curious Matt
思路:
水题
#include usingnamespacestd; typedeflonglongLL; constintN=10010; constintINF=0x3f3f3f3f; intcas=1
qq_21057881
·
2016-05-07 21:00
HDU 4167 User Names (字符串
水题
)
UserNamesTimeLimit:8000/4000MS(Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):894 AcceptedSubmission(s):298ProblemDescriptionAuniversity'scomputersystemassignsusernamesacco
aozil_yang
·
2016-05-07 19:00
C语言
cqm解题报考01
就是个
水题
,只要枚举找出第几层删除了,然后for一遍找出最大的距离。
cquzhengdayday
·
2016-05-07 19:00
月赛题解
上一页
59
60
61
62
63
64
65
66
下一页
按字母分类:
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
其他