- 博客(62)
- 问答 (1)
- 收藏
- 关注
原创 时间与日期
UNIX时间戳的开始时间为GMT1970年1月1日的零点整,单位为秒。修改时区:data_default_timezone_set(“RPC”),北京时间。string data(string format ,[时间戳整数]) <?php date_default_timezone_set("PRC");$tt =time();echo "目前时间为:&l...
2018-03-02 16:19:44
267
原创 ccf
//t4#include<iostream>using namespace std;struct Po{ int f,t;}po[10005];int id[1005];int sz[1005];int find(int p){ while(p!=id[p]) { p=id[p]; } return p;}void u(i
2017-09-17 17:26:07
751
原创 HDU2133 What day is it
2133What day is itTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 5952 Accepted Submission(s): 1811Problem Description Today is Saturday, 17
2017-08-17 17:20:27
392
原创 HDU2132
2132An easy problemTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 14069 Accepted Submission(s): 3892Problem DescriptionWe once did a lot of
2017-08-17 16:38:58
498
3
原创 <cctype>
#include <cctype>//判断变量类型的头文件islower(char c);//小写isupper(char c);//大写isalpha(char c);//字母if(islower(c)||isupper(c))isalnum(char c);//字母或数字
2017-08-15 14:16:01
367
原创 HDU2053 Switch Game
2053Switch GameTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 18846 Accepted Submission(s): 11551Problem DescriptionThere are many lamps in
2017-08-15 13:39:02
351
原创 HDU2034 人见人爱A-B
2034人见人爱A-BTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 84247 Accepted Submission(s): 23603Problem Description参加过上个月月赛的同学一定还记得其中的一个最简单的题目
2017-08-14 17:43:59
330
原创 HDU2032 杨辉三角
2032杨辉三角Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 69874 Accepted Submission(s): 28939Problem Description还记得中学时候学过的杨辉三角吗?具体的定义这里不再描述,你可
2017-08-14 17:08:20
277
转载 九余数定理扩展
出自原文九余数定理(同余定理) 我们都知道对于十进制数,只要这个数能除尽3/9则他个位数字之和也能除尽3/9,以前只知道用没有证明过,下面来简单证明一下。 对于十进制数,举个简单的例子,这个数是abcd,他表示的大小就是 x=1000*a+100*b+10*c+d , 我们对他进行转化 x=999*a+99*b+9*c+(a+b+c+d)
2017-08-14 00:08:57
305
原创 HDU2011 多项式求和
2011多项式求和Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 80384 Accepted Submission(s): 46094Problem Description多项式的描述如下: 1 - 1/2 + 1/3 - 1/
2017-08-11 17:38:55
274
原创 HDU1799
1799循环多少次?Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 5188 Accepted Submission(s): 2014Problem Description我们知道,在编程中,我们时常需要考虑到时间复杂度,特别是对于
2017-08-11 13:58:47
224
原创 暂存
#include<cstdio>#include<algorithm>using namespace std;const int INF = 0x3f3f3f3f;int dp[15][1005];void sovel(int k, int p){ for (int b = 1; b < 11; b++) { if (b >= p)
2017-08-06 15:43:09
259
原创 HDU1465 不容易系列之一
1465不容易系列之一Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 21986 Accepted Submission(s): 9543Problem Description大家常常感慨,要做好一件事情真的不容易,确实,失败比成功
2017-08-04 20:24:08
274
原创 HDU 1418
1418抱歉Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 5318 Accepted Submission(s): 2422Problem Description如果平面上有n个点,并且每个点至少有2条曲线段和它相连,就是说,每条
2017-08-04 17:54:13
409
原创 HDU1407 盐水的故事
1408盐水的故事Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 19988 Accepted Submission(s): 5075Problem Description挂盐水的时候,如果滴起来有规律,先是滴一滴,停一下;然后滴二
2017-08-04 17:14:52
298
原创 HDU1405 The Last Practice
1405The Last PracticeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 11018 Accepted Submission(s): 2495Problem DescriptionTomorrow is contes
2017-08-03 17:56:57
257
原创 HDU1393 Weird Clock
1393Weird ClockTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 3889 Accepted Submission(s): 1463Problem DescriptionA weird clock marked from
2017-08-03 15:45:44
296
原创 HDU1391 Number Steps
1391Number StepsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 5538 Accepted Submission(s): 3388Problem DescriptionStarting from point (0,
2017-08-03 14:49:52
226
原创 HDU1330 Deck
1330DeckTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 2025 Accepted Submission(s): 1190Problem DescriptionA single playing card can be pla
2017-07-31 17:58:30
271
原创 HDU1326 Box of Bricks
1326Box of BricksTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 7769 Accepted Submission(s): 3404Problem DescriptionLittle Bob likes playin
2017-07-31 17:20:34
259
原创 HDU1323 Prefection
1323PerfectionTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 2912 Accepted Submission(s): 1785Problem DescriptionFrom the article Number Th
2017-07-31 16:31:14
340
原创 HDU1303 Doubles
1303DoublesTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 5418 Accepted Submission(s): 3710Problem Description As part of an arithmetic com
2017-07-30 14:31:35
361
原创 HDU1302 The Snail
1302The SnailTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 2872 Accepted Submission(s): 2077Problem DescriptionA snail is at the bottom of
2017-07-30 13:56:43
330
原创 HDU1282 最简单的计算机
1283最简单的计算机Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 7813 Accepted Submission(s): 4402Problem Description一个名叫是PigHeadThree的研究组织设计了一台实验
2017-07-30 12:26:09
273
原创 HDU1282 回文数猜想
1282回文数猜想Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 7303 Accepted Submission(s): 4464Problem Description一个正整数,如果从左向右读(称之为正序数)和从右向左读(称之为
2017-07-30 11:34:11
258
原创 HDU1248 寒冰王座
1248寒冰王座Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 17593 Accepted Submission(s): 9109Problem Description不死族的巫妖王发工资拉,死亡骑士拿到一张N元的钞票(记住,只有
2017-07-29 14:03:00
284
原创 HDU1236 排名
1236排名Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 24263 Accepted Submission(s): 8907Problem Description今天的上机考试虽然有实时的Ranklist,但上面的排名只是根据完
2017-07-29 13:40:34
244
原创 HDU1235 统计同成绩学生人数
1235统计同成绩学生人数Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 21508 Accepted Submission(s): 12163Problem Description读入N名学生的成绩,将获得某一给定分数的学生人数输
2017-07-28 19:00:02
218
原创 HDU1234 开门人和关门人
1234开门人和关门人Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 16696 Accepted Submission(s): 8585Problem Description每天第一个到机房的人要把门打开,最后一个离开的人要把门关
2017-07-28 16:09:41
234
原创 HDU1205 吃糖果
1205吃糖果Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others) Total Submission(s): 40460 Accepted Submission(s): 11603Problem DescriptionHOHO,终于从Speakless手上赢走了所有的糖果,是Ga
2017-07-28 14:06:27
324
原创 HDU1202 The calculation of GPA
1202 The calculation of GPA Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 29471 Accepted Submission(s): 6988Problem Description 每学期的期末,
2017-07-28 11:19:10
338
原创 HDU1201 18岁的生日
120118岁生日Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 33292 Accepted Submission(s): 10795Problem DescriptionGardon的18岁生日就要到了,他当然很开心,可是他突然
2017-07-27 11:55:46
215
原创 HDU1197 Specialized Four-Digit Numbers
1197Specialized Four-Digit NumbersTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 7337 Accepted Submission(s): 5397Problem DescriptionFind a
2017-07-26 18:36:31
234
原创 HDU1196 Lowest Bit
1196 Lowest Bit Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 12341 Accepted Submission(s): 9012Problem Description Given an positive i
2017-07-26 17:46:50
235
原创 HDU1164 Eddy's research I
1164Eddy’s research ITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 10194 Accepted Submission(s): 6302Problem DescriptionEddy’s interest is
2017-07-26 15:15:21
192
原创 HDU1163 Eddy's digital Roots
1163 Eddy’s digital Roots Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 6896 Accepted Submission(s): 3776Problem Description The digita
2017-07-26 14:59:31
320
原创 HDU1157 Who's in the Middle
1157Who’s in the MiddleTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 19096 Accepted Submission(s): 8408Problem DescriptionFJ is surveying
2017-07-26 14:20:15
229
原创 HDU1106 排序
1106排序Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 60998 Accepted Submission(s): 18064Problem Description输入一行数字,如果我们把这行数字中的‘5’都看成空格,那么就得到
2017-07-26 13:57:38
191
原创 HDU1098 Ignatius's puzzle
1098Ignatius’s puzzleTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 9936 Accepted Submission(s): 6961Problem DescriptionIgnatius is poor at
2017-07-25 22:09:12
217
原创 HDU1060 Leftmost Digit
1060Leftmost DigitTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 18433 Accepted Submission(s): 7238Problem DescriptionGiven a positive inte
2017-07-25 21:42:26
246
空空如也
如何调试定位nodejs ,web项目中的bug
2019-09-19
TA创建的收藏夹 TA关注的收藏夹
TA关注的人