- 博客(33)
- 资源 (1)
- 收藏
- 关注
原创 hdu 1231 最大连续子序列
Sample Input6-2 11 -4 13 -5 -210-10 1 2 3 4 -5 -23 3 7 -2165 -8 3 2 5 01103-1 -5 -23-1 0 -20 Sample Output20 11 1310 1 410 3 510 10 100 -1 -20 0 0HintHint Huge inpu
2014-04-29 19:37:03 452
原创 Google Code Jam 2014 预赛 Problem B. Cookie Clicker Alpha
Problem B. Cookie Clicker AlphaThis contest is open for practice. You can try every problem as many times as you like, though we won't keep track of which problems you solve. Read the Quick-St
2014-04-28 14:08:02 598
原创 Coder-Strike 2014 - Finals (Div. 2) A. Pasha and Hamsters
超简单的贪心题,就不用多说了吧...
2014-04-28 14:05:03 664
原创 poj 1145 Tree Summing
Tree SummingTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 7811 Accepted: 1786DescriptionLISP was one of the earliest high-level programming languages
2014-04-28 14:04:50 469
原创 hdu 2571 命运
感觉是一道很适合入门的DP题,给定一个位置(非边缘)可由三种方式得到其DP值很容易想到状态方程是:dp[i][j] = max(dp[i-1][j], dp[i][j-1], max(dp[i][k]))(其中k能够被j整除)过样例还是很容易的,但是题目真正的难点在于dp的初始化一个比较特殊的样例1 2-99 10如果初始化dp均为0,且不作处理,用max时会发
2014-04-28 14:04:45 400
原创 Coder-Strike 2014 - Finals ( Div. 2) B. Start Up
判断字符串是否镜像,需要注意的是不仅要判断每个字符是否为镜像,
2014-04-28 14:04:31 527
原创 hdu 1171 Big Event in HDU --- 多重背包
Big Event in HDUTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 21625 Accepted Submission(s): 7581Problem DescriptionNowadays, w
2014-04-28 14:04:07 459
原创 UVa 465 - Overflow
Overflow Write a program that reads an expression consisting of two non-negative integer and an operator. Determine if either integer or the result of the expression is too large to be rep
2014-04-21 13:24:24 574
原创 Codeforces #24 C. Sequence of points
C. Sequence of pointstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given the following points with integer
2014-04-19 21:48:55 714
原创 UVa 11520 - Fill the Square
Problem AFill the SquareInput: Standard InputOutput: Standard Output In this problem, you have to draw a square using uppercase English Alphabets.To be more precise, you will be given a sq
2014-04-19 17:28:21 453
原创 Google Code Jam 2014 预赛 Problem A. Magic Trick
Problem A. Magic TrickThis contest is open for practice. You can try every problem as many times as you like, though we won't keep track of which problems you solve. Read the Quick-Start Gui
2014-04-14 10:20:58 650
原创 hdu 1064 Financial Management
Financial ManagementTime Limit: 400/200 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 8609 Accepted Submission(s): 5371Problem DescriptionLar
2014-04-12 17:15:01 535
原创 hdu 1071 The area
The areaTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7093 Accepted Submission(s): 4980Problem DescriptionIgnatius bought a lan
2014-04-12 10:40:33 486
原创 hdu 1070 Milk
MilkTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 12697 Accepted Submission(s): 3076Problem DescriptionIgnatius drinks milk eve
2014-04-12 10:35:01 498
原创 hdu 1060 Leftmost Digit
为保证安全,携程编程大赛期间4月11日18:00~21:00将关闭比赛外的其他模块,带来不便,敬请谅解。Leftmost DigitTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 12283 Accep
2014-04-12 10:31:33 538
原创 hdu 携程 2014 预赛第二场 题目C
位图像素的颜色Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1299 Accepted Submission(s): 597Problem Description有一个在位图上画出矩形程序,一开始位图都被
2014-04-12 10:23:21 1633 2
原创 UVa 12097 - Pie
Problem C - PieTime limit: 1 second My birthday is coming up and traditionally I'm serving pie. Not just one pie, no, I have a number N of them, of various tastes and of various sizes. F of my f
2014-04-10 22:53:46 675 4
原创 hdu 1024 Max Sum Plus Plus
Max Sum Plus PlusTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 15444 Accepted Submission(s): 5022Problem DescriptionNow I think
2014-04-10 10:20:22 542
原创 hdu 1018 Big Number
Big NumberTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 24081 Accepted Submission(s): 10926Problem DescriptionIn many applicati
2014-04-09 21:55:22 507
原创 POJ 1068 Parencodings
ParencodingsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 18818 Accepted: 11341DescriptionLet S = s1 s2...s2n be a well-formed string of parentheses. S
2014-04-07 22:25:57 450
原创 hdu 1421 搬寝室
搬寝室Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 15033 Accepted Submission(s): 5063Problem Description搬寝室是很累的,xhd深有体会.时间追述2006年
2014-04-03 14:10:23 488
原创 初学Java -- 几何画板
之前老师刚把Java语法基础讲完就让我们小组动手做一个Java几何画板。。。然后我就动手做了,期间借鉴了不少人的代码,所以我把我的代码贴在这里希望对后来人有所帮助^_^//------------------------------------------------------------------------------------------------------------
2014-04-03 10:25:09 2321
原创 hdu 1257 最少拦截系统
最少拦截系统Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 15747 Accepted Submission(s): 6238Problem Description某国为了防御敌国的导弹袭击,发展出一种导弹拦
2014-04-03 10:20:31 402
原创 hdu 2084 数塔
数塔Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 19407 Accepted Submission(s): 11610Problem Description在讲述DP算法的时候,一个经典的例子就是数塔问题,
2014-04-02 12:48:24 461
原创 hdu 1176 免费馅饼
免费馅饼Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 22914 Accepted Submission(s): 7715Problem Description都说天上不会掉馅饼,但有一天gameboy正走在
2014-04-01 22:53:07 475
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人