
简单题
文章平均质量分 84
hpuzsk
这个作者很懒,什么都没留下…
展开
-
leetcode437. 路径总和 III
437. 路径总和 III难度中等1075给定一个二叉树的根节点root,和一个整数targetSum,求该二叉树里节点值之和等于targetSum的路径的数目。路径不需要从根节点开始,也不需要在叶子节点结束,但是路径方向必须是向下的(只能从父节点到子节点)。示例 1:输入:root = [10,5,-3,3,2,null,11,3,-2,null,1], targetSum = 8输出:3解释:和等于 8 的路径有 3 条,如图所示。示例 2:...原创 2021-09-28 17:01:39 · 232 阅读 · 0 评论 -
HPU ACM15级周练
ACM15级周练原创 2015-12-03 20:43:17 · 996 阅读 · 0 评论 -
bzoj1607: [Usaco2008 Dec]Patting Heads 轻拍牛头
1607: [Usaco2008 Dec]Patting Heads 轻拍牛头Time Limit: 3 Sec Memory Limit: 64 MBSubmit: 1391 Solved: 727[Submit][Status][Discuss]Description 今天是贝茜的生日,为了庆祝自己的生日,贝茜邀你来玩一个游戏. 贝茜让N(1≤N≤100原创 2015-12-30 21:04:57 · 503 阅读 · 0 评论 -
杭电4554 叛逆的小明
叛逆的小明Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 939 Accepted Submission(s): 666Problem Description叛逆期的小明什么都喜欢反着做,连看数字也是如原创 2015-12-14 21:29:32 · 669 阅读 · 0 评论 -
杭电5595 GTW likes math
GTW likes mathTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 259 Accepted Submission(s): 129Problem DescriptionAfter atten原创 2015-12-13 14:40:36 · 411 阅读 · 0 评论 -
bz1968 1968: [Ahoi2005]COMMON 约数研究
1968: [Ahoi2005]COMMON 约数研究Time Limit: 1 Sec Memory Limit: 64 MBSubmit: 1412 Solved: 1072[Submit][Status][Discuss]DescriptionInput只有一行一个整数 N(0 Output只有一行输出,为整数M,即f(1)到f(N)的累加原创 2015-12-13 00:20:11 · 507 阅读 · 0 评论 -
杭电2736 Surprising Strings
Surprising StringsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 422 Accepted Submission(s): 290Problem DescriptionThe D-pai原创 2015-11-20 21:17:54 · 350 阅读 · 0 评论 -
杭电2592Counting Sheep dfs+bfs
Counting SheepTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2669 Accepted Submission(s): 1772Problem DescriptionA while ago原创 2015-12-12 19:26:26 · 523 阅读 · 0 评论 -
杭电1304 A Contesting Decision
A Contesting DecisionTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 693 Accepted Submission(s): 501Problem DescriptionJudgin原创 2015-11-26 18:52:34 · 423 阅读 · 0 评论 -
杭电5590 ZYB's Biology
ZYB's BiologyTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 428 Accepted Submission(s): 334Problem DescriptionAfter gettin原创 2015-12-10 19:10:26 · 348 阅读 · 0 评论 -
杭电1229 还是A+B
还是A+BTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 18349 Accepted Submission(s): 8917Problem Description读入两个小于10000的正整数A和B,原创 2015-11-17 20:29:45 · 484 阅读 · 0 评论 -
杭电1391 Number Steps
Number StepsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4684 Accepted Submission(s): 2847Problem DescriptionStarting from原创 2015-12-08 16:22:54 · 366 阅读 · 0 评论 -
bzoj2761 [JLOI2011]不重复数字
2761: [JLOI2011]不重复数字Time Limit: 10 Sec Memory Limit: 128 MBSubmit: 3081 Solved: 1138[Submit][Status][Discuss]Description给出N个数,要求把其中重复的去掉,只保留第一次出现的数。例如,给出的数为1 2 18 3 3 19 2 3 6 5 4,其中2原创 2015-12-27 16:38:02 · 678 阅读 · 0 评论 -
java hdu2011多项式求和
多项式求和Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 65322 Accepted Submission(s): 37524Problem Description多项式的描述如下:1 - 1/2原创 2016-05-14 20:20:00 · 940 阅读 · 0 评论 -
杭电5665 Lucky
LuckyTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 328 Accepted Submission(s): 211Problem Description Chaos August lik原创 2016-04-18 17:27:54 · 450 阅读 · 0 评论 -
杭电5540 Secrete Master Plan
Secrete Master PlanTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others)Total Submission(s): 525 Accepted Submission(s): 299Problem DescriptionMaster M原创 2016-04-07 21:11:59 · 372 阅读 · 0 评论 -
杭电5630 Rikka with Chess
Rikka with ChessTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 521 Accepted Submission(s): 434Problem DescriptionYuta gives原创 2016-03-09 20:44:38 · 379 阅读 · 0 评论 -
杭电5615 Jam's math problem
Jam's math problemTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 821 Accepted Submission(s): 390Problem DescriptionJam has a原创 2016-03-09 20:26:40 · 561 阅读 · 0 评论 -
杭电5620 KK's Steel
KK's SteelTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 510 Accepted Submission(s): 246Problem DescriptionOur lovely KK has原创 2016-03-04 20:33:17 · 398 阅读 · 0 评论 -
杭电5600 N bulbs
N bulbsTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 460 Accepted Submission(s): 251Problem DescriptionN bulbs are in a ro原创 2016-01-15 13:29:10 · 476 阅读 · 0 评论 -
杭电1259ZJUTACM
ZJUTACMTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3281 Accepted Submission(s): 1823Problem Description欢迎参加浙江工业大学第四届程序设计竞原创 2016-01-12 19:21:22 · 501 阅读 · 0 评论 -
杭电1218 Blurred Vision
Blurred VisionTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 529 Accepted Submission(s): 423Problem DescriptionAliasing is t原创 2016-01-11 19:06:46 · 539 阅读 · 0 评论 -
杭电1214 圆桌会议
圆桌会议Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3904 Accepted Submission(s): 2726Problem DescriptionHDU ACM集训队的队员在暑假集训时经常原创 2016-01-11 15:17:01 · 529 阅读 · 0 评论 -
杭电1425 sort
sortTime Limit: 6000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 35860 Accepted Submission(s): 10636Problem Description给你n个整数,请按从大到小的顺序输出其原创 2015-11-23 20:58:39 · 611 阅读 · 0 评论 -
杭电1405 The Last Practice
The Last PracticeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9026 Accepted Submission(s): 1903Problem DescriptionTomorrow原创 2015-11-23 20:41:35 · 354 阅读 · 0 评论 -
杭电1222 Wolf and Rabbit
Wolf and RabbitTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6381 Accepted Submission(s): 3187Problem DescriptionThere is a原创 2015-11-17 20:24:17 · 525 阅读 · 0 评论 -
杭电1872稳定排序
稳定排序Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4245 Accepted Submission(s): 1661Problem Description大家都知道,快速排序是不稳定的排序方法。原创 2015-10-27 22:14:21 · 459 阅读 · 0 评论 -
杭电1036 Average is not Fast Enough!
Average is not Fast Enough!Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5014 Accepted Submission(s): 2033Problem Description原创 2015-11-13 16:42:06 · 401 阅读 · 0 评论 -
杭电1039 Easier Done Than Said?
Easier Done Than Said?Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 10540 Accepted Submission(s): 5090Problem DescriptionPa原创 2015-11-13 15:06:55 · 491 阅读 · 0 评论 -
杭电5533 Dancing Stars on Me
Dancing Stars on MeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 360 Accepted Submission(s): 217Problem DescriptionThe sk原创 2015-11-13 14:16:24 · 351 阅读 · 0 评论 -
杭电1058 Humble Numbers
Humble NumbersTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 21392 Accepted Submission(s): 9352Problem DescriptionA number w原创 2015-11-12 15:48:19 · 361 阅读 · 0 评论 -
杭电1065 I Think I Need a Houseboat
I Think I Need a HouseboatTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 11364 Accepted Submission(s): 3180Problem Description原创 2015-11-13 17:45:17 · 350 阅读 · 0 评论 -
杭电1046
GridlandTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5246 Accepted Submission(s): 2390Problem DescriptionFor years, comput原创 2015-11-13 14:44:15 · 364 阅读 · 0 评论 -
杭电1038 Biker's Trip Odometer
Biker's Trip OdometerTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5112 Accepted Submission(s): 3394Problem DescriptionMost原创 2015-11-13 16:52:46 · 315 阅读 · 0 评论 -
杭电3079 Vowel Counting
Vowel CountingTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1986 Accepted Submission(s): 1460Problem DescriptionThe "Vowel-原创 2015-11-10 20:06:47 · 528 阅读 · 0 评论 -
杭电5138
CET-6 testTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 569 Accepted Submission(s): 415Problem DescriptionSmall W will take原创 2015-11-03 21:37:48 · 402 阅读 · 0 评论 -
杭电4510为什么时光不能倒流
小Q系列故事——为什么时光不能倒流Time Limit: 300/100 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 3386 Accepted Submission(s): 1457Problem Description 我以为我会是原创 2015-09-24 19:12:31 · 476 阅读 · 0 评论 -
杭电4530小Q系列故事——大笨钟
小Q系列故事——大笨钟Time Limit: 600/200 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 1346 Accepted Submission(s): 679Problem Description 饱尝情感苦恼的小Q本打算隐居一原创 2015-09-24 18:05:13 · 652 阅读 · 0 评论 -
2015南阳ccpc L题
Time Limit:1000MS Memory Limit:65535KB 64bit IO Format:%lld & %lluSubmit Status Practice UESTC 1226DescriptionHuatuo was a famous doctor. He use identical bottles to carry原创 2015-11-01 16:42:46 · 866 阅读 · 0 评论 -
杭电2734 Quicksum
QuicksumTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3021 Accepted Submission(s): 2232Problem DescriptionA checksum is an原创 2015-11-17 17:28:03 · 708 阅读 · 0 评论