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
水题……
Find Peak Element(
水题
)
1.ProblemDescriptionApeakelementisanelementthatisgreaterthanitsneighbors. Givenaninputarraywherenum[i]≠num[i+1],findapeakelementandreturnitsindex. Thearraymaycontainmultiplepeaks,inthatcasereturnthein
Chrome_matrix_68
·
2016-08-06 11:00
LeetCode
2016多校第六场,HDU5793,5794,5795,5798,5800,5802,5803
这场状态不对劲,打的很差,该出的题都没看(莫名卡
水题
),sb博弈的表也能打错。A题打表也用太久时间,自己的板子都是错的(全世界找板子),还被题目吓住(钦定看不懂就是神题)。队内合作方式有点问题。
CQU_HYX
·
2016-08-05 20:24
杂题
hdu
水题
2041超级楼梯
超级楼梯斐波那契数列TimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):48435 AcceptedSubmission(s):24774ProblemDescription有一楼梯共M级,刚开始时你在第一级,若每次只能跨上一级或二级,要走上第M级,共有多少种走法?
cao2219600
·
2016-08-04 20:00
poj3172 Scales DFS深度优先搜索+剪枝
这道题目我WA了好久,后来才发现忘记加longlong了,一道dfs
水题
,剪枝也比较容易想到。主要是加一个预处理,可以减少很多时间,然后就没有然后了。
cnyali_ljf
·
2016-08-04 10:29
dfs
poj
网易招聘面试题
样例:BUTTERFLOURHONEYFLOUREGG输出:4
水题
代码:/****************************************************************
chudongfang2015
·
2016-08-02 21:55
算法
hdu 5773 字符串
水题
统计字符串出现次数点击打开链接#include#include#include#include#includeusingnamespacestd;constintM=110;structNode{chars[M];intwin;}node[40];voidpre(){inti=0;node[i].win=1;strcpy(node[i++].s,"ClevelandCavaliers");node
Masamiiiii
·
2016-08-02 17:22
水题~~
【hdu1004】献上
水题
一道
这里写代码片hdu1004:对于刚入门ACM的新手来说,或者说就算是仅仅会编程语言的人来说,都是一道很简单的题目,虽然很简单,也算我入了门了;题目很简单,即:输入一个n,然后输入n行颜色(n=0时,结束程序);要求统计每次测试中出现次数最多的颜色,并输出;菜菜菜鸟(以后我自称小小菜吧囧rz)的思路是:用一个二维字符数组arr存每次输入的颜色,同时按对应下标,用一维整型num数组对颜色计数,最后统计
蘑菇味桃子的个人主页
·
2016-07-31 21:31
【成长历程】大神勿喷
HDU 5762 Teacher Bo (
水题
)
题目链接:HDU5762题面:TeacherBoTimeLimit:4000/2000MS(Java/Others)MemoryLimit:131072/131072K(Java/Others)TotalSubmission(s):644AcceptedSubmission(s):353ProblemDescriptionTeacherBoBoisageographyteacherinthesch
David_Jett
·
2016-07-27 13:35
编程题——模拟
多校题集
UVA 11059(
水题
)
【题目大意】给定一个序列S,最多18个元素,每个元素的范围都是-10到10,对于这个序列S的所有连续子序列,求这些连续子序列中最大的正积。如果最大的积是负数,答案视为0。【解法】两重循环,枚举S所有的子序列【坑点】如果是18个10相乘得到10^18,会超出int的范围,所以要用longlong类型【AC代码】#include#include#include#include#includeusing
Code_J_xer
·
2016-07-26 10:36
UVA
UVA 11059(
水题
)
【题目大意】给定一个序列S,最多18个元素,每个元素的范围都是-10到10,对于这个序列S的所有连续子序列,求这些连续子序列中最大的正积。如果最大的积是负数,答案视为0。【解法】两重循环,枚举S所有的子序列【坑点】如果是18个10相乘得到10^18,会超出int的范围,所以要用longlong类型【AC代码】#include#include#include#include#includeusing
Code_J_xer
·
2016-07-26 10:36
UVA
线段树(区间更新与区间查询)——Just a Hook ( HDU 1698 )
pid=1698分析&题解:不多说,这类
水题
都放模板1.线段树标准预处理:#definelc(d>1)//l,r表示整个区间范围2.建树:#defineMax100005inta[Max];structTr
FeBr2
·
2016-07-23 14:27
ACM算法(题解):
数据结构
——线段树
暑期十测 round1
volume1day1:组合数:
水题
。。。直接上杨辉三角。构造回文字符串:区间dp、最长公共子序列两种写法。对dp又有了进一步的认识。最长回文:manachar模板题(此模板真好背)。
ACTY
·
2016-07-23 10:52
contest
2016暑期集训---周赛(
水题
)
今天被这个题前前后后折磨了好几次。其实最开始就想到可能需要用数组来存数。但是做题过程中却偏偏只是一步一步地放大储存容量。我感觉这可能是程序员的一个小小职业病。由于计算机的存储空间以及计算性能是有限的,所以一直精打细算时间跟空间,一种“不浪费时间和空间的思想”让我在这题上栽倒了好几次。第一次,用int存数。显然,要挂。其实这次WA是不意外的。第二次,于是把所有的数都换成了longlong。结果。还是
Code_J_xer
·
2016-07-21 20:40
2016暑期集训
水题
2016暑期集训---周赛(
水题
)
今天被这个题前前后后折磨了好几次。其实最开始就想到可能需要用数组来存数。但是做题过程中却偏偏只是一步一步地放大储存容量。我感觉这可能是程序员的一个小小职业病。由于计算机的存储空间以及计算性能是有限的,所以一直精打细算时间跟空间,一种“不浪费时间和空间的思想”让我在这题上栽倒了好几次。第一次,用int存数。显然,要挂。其实这次WA是不意外的。第二次,于是把所有的数都换成了longlong。结果。还是
Code_J_xer
·
2016-07-21 00:00
2016暑期集训
水题
[JZSC2016] 【NOIP2016提高A组模拟7.15】总结
四道大
水题
。T1不就是暴力嘛T2不就是最小生成树嘛T3不就是递推高精度嘛T4不就是30棵线段树嘛然后就没有了~~有点值得提的,比赛时T4全体爆0,后来发现原来题目说的是L和R之间的区间这说明了什么?
BAJim_H
·
2016-07-15 16:26
总结
游泳池 纪中 1439 数学+二分
分析
水题
就要水
A_loud_name
·
2016-07-15 15:39
数学
二分
NOIP2010关押罪犯
并查集
水题
++#includeusingnamespacestd;intn,m,f[40001],x,y;structnode{inta,b,c;}w[100001];intcmp(nodea,nodeb
hh_cnyali
·
2016-07-15 10:24
题解
noip
【APIO2016】字符串匹配
DescriptionSolution刚看到这题,最有想法,这不是一道
水题
吗!然后脑抽打了个后缀数组加KMP(其实只用KMP就好了),然后打的又臭又长,最后还爆零了。我的KMP尽然从1开始搜!!!!!
Facico
·
2016-07-14 08:41
字符串
kmp
后缀数组
[JZSC2016]【NOIP2016A组模拟7.13】总结
再看T3,就是一道kmp
水题
,就先码T2先打了一个水dp搞到10:00,好像没问题了,码T3T3本来以为还要用矩乘搞一波的,仔细看了看不是成倍增长的,直接乘就好了(好水~~~)。
BAJim_H
·
2016-07-13 14:05
总结
数论快速入门(同余、扩展欧几里德、中国剩余定理、大素数测定和整数分解、素数三种筛法、欧拉函数以及各种模板)
直接上入门
水题
:ReducedIDNu
tomorrowtodie
·
2016-07-09 13:00
算法
数论
模板
BZOJ 2761: [JLOI2011]不重复数字
水题
2761:[JLOI2011]不重复数字题目连接:http://www.lydsy.com/JudgeOnline/problem.php?id=2761Description给出N个数,要求把其中重复的去掉,只保留第一次出现的数。例如,给出的数为1218331923654,其中2和3有重复,去除后的结果为1218319654。Input输入第一行为正整数T,表示有T组数据。接下来每组数据包括两行
qscqesze
·
2016-07-08 16:00
1149. 【克罗地亚】LAGNO
T2:A了,一道
水题
,就是翻转棋,只要往每一个点八个方向找就ok。
Yongqian-Peng
·
2016-07-07 16:11
TJ
Mike and Cellphone
水题
A.MikeandCellphone题目连接:http://www.codeforces.com/contest/689/problem/ADescriptionWhileswimmingatthebeach,Mikehasaccidentallydroppedhiscellphoneintothewater.Therewasnoworryasheboughtacheapreplacementph
qscqesze
·
2016-07-07 15:00
indeed2017校招在线编程题(网测)二
A-改行/LineBreak解题思路
水题
importjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){Scannercin
YYlxid
·
2016-07-06 00:21
笔试题
hdu 5680 zxa and set(
水题
)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5680zxaandsetTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/65536K(Java/Others)TotalSubmission(s):411 AcceptedSubmission(s):310ProblemDescrip
qiqi_skystar
·
2016-07-02 20:00
【SDOI2011】染色
Solution第一眼的
水题
这种树上的修改与询问,不是一眼的树链剖分吗!为了练习动态树,强制性打成了lct。维护方式
Facico
·
2016-07-02 19:27
树链剖分
省选
LCT
动态树
【SDOI2011】染色
Solution第一眼的
水题
这种树上的修改与询问,不是一眼的树链剖分吗!为了练习动态树,强制性打成了lct。维护方式
doyouseeman
·
2016-07-02 19:00
动态树
树链剖分
染色
LCT
SDOI
hdu 5702 Solving Order(结构体排序
水题
)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5702SolvingOrderTimeLimit:2000/1000MS(Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):184 AcceptedSubmission(s):135ProblemDesc
qiqi_skystar
·
2016-07-01 11:00
NP-Hard Problem
水题
C.NP-HardProblem题目连接:http://www.codeforces.com/contest/688/problem/CDescriptionRecently,PariandAryadidsomeresearchaboutNP-Hardproblemsandtheyfoundtheminimumvertexcoverproblemveryinteresting.Supposethe
qscqesze
·
2016-06-30 20:00
Lovely Palindromes
水题
B.LovelyPalindromes题目连接:http://www.codeforces.com/contest/688/problem/BDescriptionParihasafriendwholovespalindromenumbers.Apalindromenumberisanumberthatreadsthesameforwardorbackward.Forexample12321,10
qscqesze
·
2016-06-30 20:00
Opponents
水题
A.Opponents题目连接:http://www.codeforces.com/contest/688/problem/ADescriptionAryahasnopponentsintheschool.Eachdayhewillfightwithallopponentswhoarepresentthisday.Hisopponentshavesomefightingplanthatguaran
qscqesze
·
2016-06-30 19:00
SDUTACM首字母变大写
示例输入ilikeacmiwanttogetanaccepted示例输出ILikeAcmIWantToGetAnAccepted提示纯属
水题
:#include#includevoidmain(){chara
Key_MQL
·
2016-06-26 20:32
Little Robber Girl's Zoo
水题
B.LittleRobberGirl'sZoo题目连接:http://www.codeforces.com/contest/686/problem/BDescriptionLittleRobberGirllikestoscareanimalsinherzooforfun.Shedecidedtoarrangetheanimalsinarowintheorderofnon-decreasinghei
qscqesze
·
2016-06-25 09:00
Free Ice Cream
水题
A.FreeIceCream题目连接:http://www.codeforces.com/contest/686/problem/ADescriptionAftertheiradventurewiththemagicmirrorKayandGerdahavereturnedhomeandsometimesgivefreeicecreamtokidsinthesummer.Atthestartoft
qscqesze
·
2016-06-25 09:00
2021 贪心算法 (最优转载问题)
水题
发工资咯:)TimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):50222AcceptedSubmission(s):27412ProblemDescription作为杭电的老师,最盼望的日子就是每月的8号了,因为这一天是发工资的日子,养家糊口就靠它了,呵呵但是对于学校财
ZJU_warren
·
2016-06-23 21:30
HDUOJ
HDU 1075字典树(
水题
)
传送门:http://acm.hdu.edu.cn/showproblem.php?pid=1075就是先给你一些单词的翻译,之后再给你一句话然你翻译一下。字典树可以做,map也可以做。#include#include#include#include#includeusingnamespacestd;typedefstructTrie_node{structTrie_node*nexts[26];
My_stage
·
2016-06-21 13:54
字符串
Alyona and the Tree
水题
C.AlyonaandtheTree题目连接:http://www.codeforces.com/contest/682/problem/CDescriptionAlyonadecidedtogoonadietandwenttotheforesttogetsomeapples.Theresheunexpectedlyfoundamagicrootedtreewithrootinthevertex1
qscqesze
·
2016-06-18 09:00
Alyona and Mex
水题
B.AlyonaandMex题目连接:http://www.codeforces.com/contest/682/problem/BDescriptionSomeonegaveAlyonaanarraycontainingnpositiveintegersa1, a2, ..., an.Inoneoperation,Alyonacanchooseanyelementofthearrayanddec
qscqesze
·
2016-06-18 09:00
Alyona and Numbers
水题
A.AlyonaandNumbers题目连接:http://www.codeforces.com/contest/682/problem/ADescriptionAfterfinishingeatingherbun,Alyonacameupwithtwointegersnandm.Shedecidedtowritedowntwocolumnsofintegers—thefirstcolumncon
qscqesze
·
2016-06-18 09:00
HDU 3474 单调队列
点击打开链接题意:给个成环的字符串,现在要从一个地方断开这个环,然后可以向左或向右走,在走的过程中C的数量要始终保持大于J的数量,问共有多少个这样的端点思路:没有思路,参考了大神的思路,大神说这是
水题
,
Dan__ge
·
2016-06-15 20:15
数据结构
线段树
HDU 3474 单调队列
点击打开链接题意:给个成环的字符串,现在要从一个地方断开这个环,然后可以向左或向右走,在走的过程中C的数量要始终保持大于J的数量,问共有多少个这样的端点思路:没有思路,参考了大神的思路,大神说这是
水题
,
Dan__ge
·
2016-06-15 20:00
数据结构
ACM
HDU
单调队列
Gifts by the List
水题
D.GiftsbytheList题目连接:http://www.codeforces.com/contest/681/problem/DDescriptionSashalivesinabighappyfamily.AttheMan'sDayallthemenofthefamilygathertocelebrateitfollowingtheirowntraditions.Therearenmeni
qscqesze
·
2016-06-15 08:00
Economy Game
水题
B.EconomyGame题目连接:http://www.codeforces.com/contest/681/problem/BDescriptionKolyaisdevelopinganeconomysimulatorgame.Hismostfavouritepartofthedevelopmentprocessisin-gametesting.Oncehewasentertainedbyth
qscqesze
·
2016-06-15 08:00
A Good Contest
水题
A.AGoodContest题目连接:http://www.codeforces.com/contest/681/problem/ADescriptionCodeforcesuser'handlecolordependsonhisrating—itisredifhisratingisgreaterorequalto2400;itisorangeifhisratingislessthan2400bu
qscqesze
·
2016-06-15 08:00
Iterated Linear Function
水题
D.IteratedLinearFunction题目连接:http://www.codeforces.com/contest/678/problem/DDescriptionConsideralinearfunctionf(x) = Ax + B.Let'sdefineg(0)(x) = xandg(n)(x) = f(g(n - 1)(x))forn > 0.Forthegiveninteger
qscqesze
·
2016-06-14 08:00
Joty and Chocolate
水题
C.JotyandChocolate题目连接:http://www.codeforces.com/contest/678/problem/CDescriptionLittleJotyhasgotatasktodo.Shehasalineofntilesindexedfrom1ton.Shehastopainttheminastrangepattern.Anunpaintedtileshouldbe
qscqesze
·
2016-06-14 08:00
BZOJ4610——[Wf2016]Ceiling Functi
水题
一道,不是很懂为啥没人做。。。1、题意:纠正一下。。bzoj的题意不是很对。。。注意不是堆,是不平衡的二叉树,就是非旋转的treap, 另外。。。插入的时候,小于插在左边。。
qzh_1430586275
·
2016-06-09 10:00
ceiling
乱搞
bzoj
functi
4610
Wf2016
Spring Boot 实践折腾记(二):切入点,Spring MVC集成Mybatis的经典例子
——萧秋
水题
记这章的主题是切入点,找到一个点我们慢慢展开,逐渐深入,没有一上来就讲新的东西的原因是:过去的使用经验同样重要,正是因为有了过去的经验,才会有更新更好的思路出现,新思路帮助我们改进
mickjoust
·
2016-06-08 23:00
spring
spring
mvc
mybatis
docker
springboot
Vanya and Fence (
水题
)
A.VanyaandFencetimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputVanyaandhisfriendsarewalkingalongthefenceofheight h andtheydonotwanttheguardtonoticethem.Inord
liangzhaoyang1
·
2016-06-02 19:00
round
codeforces
2
and
fence
A.
Vanya
Div.
#355
HDOJ/HDU 1328 IBM Minus One(
水题
一个,试试手)
ProblemDescriptionYoumayhaveheardofthebook‘2001-ASpaceOdyssey’byArthurC.Clarke,orthefilmofthesamenamebyStanleyKubrick.InitaspaceshipissentfromEarthtoSaturn.Thecrewisputintostasisforthelongflight,onlyt
qq_26525215
·
2016-06-01 16:00
java
ACM
上一页
57
58
59
60
61
62
63
64
下一页
按字母分类:
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
其他