- 博客(16)
- 收藏
- 关注
原创 hdu4572_Bottles Arrangement_(思维+找规律)
Problem Description Hunan cuisine is really wonderful! But if you don’t like spicy food, you will feel terrible since it can be hard for you to find any food without hot pepper here. Big Fan is a s
2017-05-30 09:07:52 422
原创 html里制作简单导航栏
今天简单的做了一下网页里的导航栏。效果如下:代码: 实验3 ul{/*设置导航栏的框框*/ margin: 30px auto;/*框框整体的位置,30px是指离网页的顶部和下部的距离,auto控制的是左右距离为自动调节*/ width: 600px;/*框框的宽度*/ height: 350px;/*框框的长度*/ pad
2017-05-28 17:55:27 142600 8
原创 2017东北四省赛G题
题意:大概记得题意是说,给你一个a,b,再给你一个串,将这个串里字符下标mod a==b的字符重新组成一个新串,求新串的最大回文串是多长。解:就是整理下新串,用马拉车解决掉,但这样会超时,亲测有效,需要将计算过的a,b及对应的长度记下来,以缩短时间。(记忆化马拉车?)比赛的时候硬是没想出来,最后知道记忆化存储就能解决真想撞死南墙= =。代码:#include #inclu
2017-05-24 19:36:21 862 1
原创 cdoj_758_P酱的冒险旅途
P酱是个可爱的男孩子,有一天他在野外冒险,不知不觉中走入了一块神奇的地方。他在0 0时刻进入这个地方,每一时刻他都只能向某一特定的方向移动长度为1的距离,当然他也可以选择不移动。移动需要花费1 1的时间。各个时刻他允许移动的方向由一个字符串给出,字符串只包含U、D、L、R四种字符,其中U表示向上(y y轴正方向)移动,D表示向下(y y轴负方向)移动,L表示向左(x x轴负方向)移动,R表示向
2017-05-24 18:57:37 366
原创 CodeForces808a_水(求整数长度)
A. Lucky Yeartime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputApart from having lots of holidays throughout
2017-05-21 17:49:10 313
原创 CodeForces807c_二分+思维
C. Success Ratetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are an experienced Codeforces user. Tod
2017-05-21 17:33:05 308
原创 Gym_100971G_Repair
Alex is repairing his country house. He has a rectangular metal sheet of size a × b. He has to cut two rectangular sheets of sizes a1 × b1 and a2 × b2 from it. All cuts must be parallel to the sides
2017-05-19 10:38:18 394
原创 Gym_100971k_Palindromization (回文串)
Mihahim has a string s. He wants to delete exactly one character from it so that the resulting string would be a palindrome. Determine if he can do it, and if he can, what character should be deleted.
2017-05-19 10:29:46 322
原创 Gym_100971_Triangles
There is a set of n segments with the lengths li. Find a segment with an integer length so that it could form a non-degenerate triangle with any two segments from the set, or tell that such segment
2017-05-19 10:24:20 358
原创 CDOJ_1591_An easy problem A(线段树水题)
An easy problem A EditTime Limit: 1000/1000MS (Java/Others) Memory Limit: 65535/65535KB (Java/Others)SubmitStatus N个数排成一列,Q个询问,每次询问一段区间内的数的极差是多少。Input第一行两个整数N(1≤N≤500
2017-05-16 17:17:10 731
原创 CDOJ_1605_京电的刘老师(水)
京电的刘老师 EditTime Limit: 3000/1000MS (Java/Others) Memory Limit: 1000/1000KB (Java/Others)SubmitStatus N Input第一行一个正整数N(n≤10 6 ) N(n≤106),第二行N−1 N−1个整数表示仍存在的药丸Output
2017-05-16 16:23:05 263
原创 CDOJ24_8球胜负
8球胜负(eight) EditTime Limit: 3000/1000MS (Java/Others) Memory Limit: 65535/65535KB (Java/Others)SubmitStatus 8 8球是一种台球竞赛的规则。台面上有7 7个红球、7 7个黄球以及一个黑球,当然还有一个白球。对于本题,我们使用如下的简化规则:红
2017-05-15 21:56:30 132
原创 poj3438_Look and Say_暴力水
Look and Say The look and say sequence is defined as follows. Start with any string of digits as the first element in the sequence. Each subsequent element is defined from the previous one by "v
2017-05-15 17:37:28 219
原创 hdu1029_大水题(思维)
解:(额,省赛的热身赛上的水题,1分钟a掉)排序,输出中间的那个数。代码:#include #include #include using namespace std;const int maxn=999999;int a[maxn];int main(){ int t; while(scanf("%d",&t)!=-1) { fo
2017-05-15 12:11:55 218
转载 Java HashMap的详解和迭代器问题
重点介绍HashMap。首先介绍一下什么是Map。在数组中我们是通过数组下标来对其内容索引的,而在Map中我们通过对象来对对象进行索引,用来索引的对象叫做key,其对应的对象叫做value。在下文中会有例子具体说明。 再来看看HashMap和TreeMap有什么区别。HashMap通过hashcode对其内容进行快速查找,而TreeMap中所有的元素都保持着某种固定的顺序,如果你需要得到
2017-05-10 17:18:15 1358
原创 HDU Automatic Judge
Automatic JudgeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 0 Accepted Submission(s): 0Problem DescriptionWelcome to HDU to
2017-05-07 18:05:37 287
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人