代码改变世界

poj-2503 Babelfish

2012-03-14 02:28 by java环境变量, 331 阅读, 0 推荐, 收藏, 编辑
摘要:BabelfishTime Limit:3000MSMemory Limit:65536KTotal Submissions:22593Accepted:9698DescriptionYou have just moved from Waterloo to a big city. The people here speak an incomprehensible dialect of a foreign language. Fortunately, you have a dictionary to help you understand them.InputInput consists of 阅读全文

poj-3273 Monthly Expense

2012-03-14 02:26 by java环境变量, 218 阅读, 0 推荐, 收藏, 编辑
摘要:Monthly ExpenseTime Limit:2000MSMemory Limit:65536KTotal Submissions:7707Accepted:3180DescriptionFarmer John is an astounding accounting wizard and has realized he might run out of money to run the farm. He has already calculated and recorded the exact amount of money (1 ≤moneyi≤ 10,000) that he wil 阅读全文

poj-3258 River Hopscotch

2012-03-14 02:23 by java环境变量, 234 阅读, 0 推荐, 收藏, 编辑
摘要:River HopscotchTime Limit:2000MSMemory Limit:65536KTotal Submissions:3659Accepted:1587DescriptionEvery year the cows hold an event featuring a peculiar version of hopscotch that involves carefully jumping from rock to rock in a river. The excitement takes place on a long, straight river with a rock 阅读全文

poj-1905 Expanding Rods

2012-03-14 02:20 by java环境变量, 248 阅读, 0 推荐, 收藏, 编辑
摘要:DescriptionWhen a thin rod of length L is heated n degrees, it expands to a new length L'=(1+n*C)*L, where C is the coefficient of heat expansion.When a thin rod is mounted on two solid walls and then heated, it expands and takes the shape of a circular segment, the original rod being the chord 阅读全文

POJ-3122 Pie

2012-03-14 02:18 by java环境变量, 142 阅读, 0 推荐, 收藏, 编辑
摘要:J -PieTime Limit:1000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionMy 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 friends are coming to my party and each 阅读全文

poj 3122 Pie--- 二分

2012-03-13 17:21 by java环境变量, 207 阅读, 0 推荐, 收藏, 编辑
摘要:PieTime Limit:1000MSMemory Limit:65536KTotal Submissions:6264Accepted:2353Special JudgeDescriptionMy 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 friends are coming to my party and each o 阅读全文

poj 1840 Eqs hash表 (vector)

2012-03-13 14:57 by java环境变量, 230 阅读, 0 推荐, 收藏, 编辑
摘要:EqsTime Limit:5000MSMemory Limit:65536KTotal Submissions:7593Accepted:3711DescriptionConsider equations having the following form:a1x13+ a2x23+ a3x33+ a4x43+ a5x53=0The coefficients are given integers from the interval [-50,50].It is consider a solution a system (x1, x2, x3, x4, x5) that verifies th 阅读全文

大一二学期 1-2 周 笔记 _____专题 搜索

2012-03-11 22:14 by java环境变量, 229 阅读, 0 推荐, 收藏, 编辑
摘要:大一二学期 1-2 周 笔记 这两周ACM专题是搜索。还是有点收获的,理解了队列和栈,对于DFS和BFS也理解了些。 一共14道题,完成了10道。 小张 全部做完了 ,确实还是很厉害的。以后一个队伍,不能给队伍拖后腿,下个专题 hash 和 二分查找,计划花多一点时间和精力到这上面。 彪哥说其实区域赛拿个奖也不是很难,从现在开始 坚持到大二,或者大三。既然下定了决心 ,就必须出成绩! 因为ACM将花掉我大学两到三年的绝大部分空闲时间,投入是很大的. 这两周有一个问题,就是玩游戏的时间过多, 那样很浪费时间。 公共课程不能落下了。 现在的社会现实就是这样: 一个人的发展潜力还是取决于综合能力。. 阅读全文

hdu 1425 sort ---- hash入门

2012-03-11 17:56 by java环境变量, 216 阅读, 0 推荐, 收藏, 编辑
摘要:sortTime Limit: 6000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 14896Accepted Submission(s): 4274Problem Description给你n个整数,请按从大到小的顺序输出其中前m大的数。Input每组测试数据有两行,第一行有两个数n,m(0<n,m<1000000),第二行包含n个各不相同,且都处于区间[-500000,500000]的整数。Output对每组测试数据按从大到小的顺序输出前m大的数。Samp 阅读全文

poj 3414 Pots ----BFS 最短路和路径

2012-03-10 16:40 by java环境变量, 281 阅读, 0 推荐, 收藏, 编辑
摘要:PotsTime Limit:1000MSMemory Limit:65536KTotal Submissions:6222Accepted:2614Special JudgeDescriptionYou are given two pots, having the volume ofAandBliters respectively. The following operations can be performed:FILL(i) fill the poti(1 ≤i≤ 2) from the tap;DROP(i) empty the potito the drain;POUR(i,j) 阅读全文
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 55 下一页