- 博客(43)
- 收藏
- 关注
原创 练习四1001
Problem ATime Limit : 2000/1000ms (Java/Other) Memory Limit :65536/32768K (Java/Other) Problem DescriptionThere are Nvillages, which are numbered from 1 to N, and you should build some roads
2016-06-11 19:02:23 403
原创 专题三总结
动态规划总结动态规划一直是ACM竞赛中的重点,同时又是难点,因为该算法时间效率高,代码量少,多元性强,主要考察思维能力、建模抽象能力、灵活度。 动态规划(英语:Dynamicprogramming,DP)是一种在数学、计算机科学和经济学中使用的,通过把原问题分解为相对简单的子问题的方式求解复杂问题的方法。动态规划常常适用于有重叠子问题和最优子结构性质的问题,动态规划方法所
2016-05-31 08:09:50 346
原创 练习三1024
Problem XTime Limit : 2000/1000ms (Java/Other) Memory Limit :131072/65536K (Java/Other)Total Submission(s) : 16 Accepted Submission(s) : 10Problem DescriptionRecently, iSeawent to an ancie
2016-05-09 23:40:47 369
原创 习题三1017
Problem QTime Limit : 2000/1000ms (Java/Other) Memory Limit :32768/32768K (Java/Other)Problem DescriptionMany years ago ,in Teddy’s hometown there was a man who was called “Bone Collector”
2016-05-07 23:10:12 655
原创 练习三1016
Problem PTime Limit : 3000/1000ms (Java/Other) Memory Limit :32768/32768K (Java/Other) Problem Description在一无限大的二维平面中,我们做如下假设:1、每次只能移动一格;2、不能向后走(假设你的目的地是“向上”,那么你可以向左走,可以向右走,也可以向上走,但是不可以向下走);
2016-05-07 00:49:57 566
原创 习题三1004
Problem DTimeLimit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K(Java/Other) Problem DescriptionAnumber whose only prime factors are 2,3,5 or 7 is called a humble number. Thesequenc
2016-05-06 17:58:06 942
原创 练习三1015
Problem OTime Limit : 1000/1000ms (Java/Other) Memory Limit :32768/32768K (Java/Other)Problem DescriptionGive you a numberon base ten,you should output it on base two.(0 < n < 1000)
2016-05-05 09:31:54 285
原创 练习三1014
Problem NTime Limit : 2000/1000ms (Java/Other) Memory Limit :65536/32768K (Java/Other)Total Submission(s) : 33 Accepted Submission(s) : 25Problem Description我们看到过很多直线分割平面的题目,今天的这个题目稍微有些变化,
2016-05-05 09:25:16 288
原创 练习三1013
Problem MTime Limit : 2000/1000ms (Java/Other) Memory Limit :65536/32768K (Java/Other)Total Submission(s) : 44 Accepted Submission(s) : 28Problem Description有一头母牛,它每年年初生一头小母牛。每头小母牛从第四个年头开始
2016-05-03 21:58:39 338
原创 习题三1010
Problem JTime Limit : 2000/1000ms (Java/Other) Memory Limit :65536/32768K (Java/Other)Total Submission(s) : 36 Accepted Submission(s) : 26Problem Description有一楼梯共M级,刚开始时你在第一级,若每次只能跨上一级或二级,
2016-05-03 21:49:12 419
原创 习题三1008
Problem HTime Limit : 2000/1000ms (Java/Other) Memory Limit :32768/32768K (Java/Other) Problem Description 穿过幽谷意味着离大魔王lemon已经无限接近了!可谁能想到,yifenfei在斩杀了一些虾兵蟹将后,却再次面临命运大迷宫的考验,这是魔王lemon设下的又一个机
2016-04-28 23:10:33 445
原创 习题三1011
Problem KTime Limit : 2000/1000ms (Java/Other) Memory Limit :65536/32768K (Java/Other)Problem Description有一只经过训练的蜜蜂只能爬向右侧相邻的蜂房,不能反向爬行。请编程计算蜜蜂从蜂房a爬到蜂房b的可能路线数。其中,蜂房的结构如下所示。 Input输
2016-04-27 22:43:24 356
原创 练习三1012
Problem LTime Limit : 2000/1000ms (Java/Other) Memory Limit :65536/32768K (Java/Other)Problem Description 在2×n的一个长方形方格中,用一个1× 2的骨牌铺满方格,输入n ,输出铺放方案的总数.例如n=3时,为2× 3方格,骨牌的铺放方案有三种,如下图:
2016-04-26 22:54:15 343
原创 练习三1005
Problem ETime Limit : 2000/1000ms (Java/Other) Memory Limit :65536/32768K (Java/Other) Problem DescriptionA group ofresearchers are designing an experiment to test the IQ of a monkey. They w
2016-04-24 23:20:26 338
原创 练习三1019
Problem STime Limit : 10000/5000ms (Java/Other) Memory Limit :65536/32768K (Java/Other)Problem DescriptionNowadays, we allknow that Computer College is the biggest department in HDU. But, mayb
2016-04-24 23:06:47 285
原创 习题三1007
Problem GTime Limit : 2000/1000ms (Java/Other) Memory Limit :65536/32768K (Java/Other)Total Submission(s) : 21 Accepted Submission(s) : 4Problem Description都说天上不会掉馅饼,但有一天gameboy正走在回家的小径上,忽
2016-04-23 23:19:55 357
原创 练习三1003
Problem CTime Limit : 2000/1000ms (Java/Other) Memory Limit :65536/32768K (Java/Other)Total Submission(s) : 17 Accepted Submission(s) : 3Problem DescriptionNowadays, a kindof chess game ca
2016-04-23 23:07:59 470
原创 练习三1002
Problem BTime Limit : 2000/1000ms (Java/Other) Memory Limit :65536/32768K (Java/Other)Total Submission(s) : 4 Accepted Submission(s) : 4Problem DescriptionA subsequence of a givensequenc
2016-04-21 12:27:45 397
原创 专题二总结
在做题过程中我记下了如下的注意事项。1. 对于在限制条件下的最优化问题,时间上优化的突破口也在限制条件。eg 给n条边,从中选3条拼成一个三角形,要求周长最大的三角形搜索时各种剪枝策略 2. 为了设计算法,灵活的想象力(!!!)算法的基础知识也是必不可少的。 3. 对于标准库已经实现了的函数,尽量调用库函数,不要自己手写。但是,自己一定要清楚如果要自己
2016-04-19 09:15:07 288
原创 练习二1017
非常可乐Time Limit : 2000/1000ms (Java/Other) Memory Limit :32768/32768K (Java/Other)Total Submission(s) : 54 Accepted Submission(s) : 23Problem Description大家一定觉的运动以后喝可乐是一件很惬意的事情,但是seeyou却不这么认
2016-04-18 18:04:49 347
原创 练习二1013
A strange lift Time Limit : 2000/1000ms(Java/Other) Memory Limit : 65536/32768K (Java/Other)Total Submission(s) :133 Accepted Submission(s) : 25ProblemDescriptionThereis a strange lift.The
2016-04-18 17:55:06 278
原创 练习二1012
RescueTime Limit: 2000/1000 MS(Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 14138 AcceptedSubmission(s): 5135Problem DescriptionAngel was caughtby the
2016-04-18 17:52:22 247
原创 练习二1011
Oil DepositsTime Limit : 2000/1000ms(Java/Other) Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 60 AcceptedSubmission(s) : 24ProblemDescriptionThe GeoSurvComp geologicsurv
2016-04-16 17:18:44 240
原创 练习二1010
Catch him Time Limit : 5000/1000ms (Java/Other) Memory Limit :32768/32768K (Java/Other)Total Submission(s) : 40 Accepted Submission(s) : 7Problem Description在美式足球中,四分卫负责指挥整只球队的进攻战术和跑位,以及给接
2016-04-16 09:13:26 356
原创 练习二1010
Catch him Time Limit : 5000/1000ms (Java/Other) Memory Limit :32768/32768K (Java/Other)Total Submission(s) : 40 Accepted Submission(s) : 7Problem Description在美式足球中,四分卫负责指挥整只球队的进攻战术和跑位,以及给接
2016-04-16 09:12:05 311
原创 练习二1009
连连看Time Limit:20000/10000 MS (Java/Others) Memory Limit: 65536/32768 K(Java/Others)Total Submission(s):16578 Accepted Submission(s): 4281Problem Description“连连看”相信很多人都玩过。没玩过也没关系,下面
2016-04-15 21:15:01 288
原创 练习二1008
猜数字Time Limit : 3000/1000ms (Java/Other) Memory Limit :32768/32768K (Java/Other)Total Submission(s) : 58 Accepted Submission(s) : 39Problem DescriptionA有1数m,B来猜.B每猜一次,A就说"太大",&qu
2016-04-15 21:11:49 277
原创 练习二1007
Cable master Time Limit : 2000/1000ms (Java/Other) Memory Limit :65536/32768K (Java/Other)Total Submission(s) : 28 Accepted Submission(s) : 12Problem DescriptionInhabitants of the Wonderla
2016-04-15 21:11:03 201
原创 练习二1006
Line beltTime Limit : 2000/1000ms (Java/Other) Memory Limit :32768/32768K (Java/Other)Total Submission(s) : 40 Accepted Submission(s) : 10Problem DescriptionIn atwo-dimensional plane there
2016-04-14 08:41:08 294
原创 练习二1005
Turn the cornerTime Limit : 3000/1000ms (Java/Other) Memory Limit :32768/32768K (Java/Other)Total Submission(s) : 45 Accepted Submission(s) : 23Problem DescriptionMr. West bought anew car!
2016-04-14 08:29:57 421
原创 练习二1004
Toxophily Time Limit: 3000/1000MS(Java/Others) Memory Limit: 32768/32768 K(Java/Others) TotalSubmission(s):1440 Accepted Submission(s): 749Problem DescriptionTh
2016-04-13 12:03:32 319
原创 习题二1003
PieTime Limit: 5000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem DescriptionMy birthday is coming up and traditionally I'm serving pie. Not just one pie, no, I
2016-04-13 10:46:16 324
原创 练习二1002
Strange fuctionTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2662 Accepted Submission(s): 1984Problem DescriptionNow, her
2016-04-12 22:10:36 363
原创 练习二1001
Can you solve this equation? Time Limit : 2000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 75 Accepted Submission(s) : 25Problem DescriptionNow,given
2016-04-12 21:49:24 334
原创 Problem N
对于每一个月来说,不是盈利,就是亏损,如果是盈利则盈利S,如果亏空则亏d。每五个月进行一次统计,共统计八次(1-5月一次,2-6月一次.......8-12月一次)统计的结果是这八次都是亏空。问题:判断全年是否能盈利,如果能则求出最大的盈利。如果不能盈利则输出Deficit每五个连续的月一定亏损,也就是不能出现连续5个月盈利,我们可以设每五个月亏损月数最少为x,这种情况下,如果
2016-03-26 18:32:58 270
原创 Problem M
给出一个正整数n>=1和一个正整数p>=1你写一个程序确定p1/n,正数n来源于p,p将总是等于kn(这个k就是你要找的)。输入:输入包含一组整数n和p每个整数占一行,对于所有的组,1,1101。存在一个整数k,使得kn=p,1101。输出:对于每一组n和p的值p1/n应该输出i.e.,k 后发现给定的p值并没有超过double能表示的范围 #include #
2016-03-25 12:14:17 296
原创 Problem Q
FJ is surveying his herd to find the most average cow. He wants to know how much milk this 'median' cow gives: half of the cows give as much or more than the median; half give as much or less. Giv
2016-03-24 20:51:25 280
原创 Problem P
FJ is surveying his herd to find the most average cow. He wants to know how much milk this 'median' cow gives: half of the cows give as much or more than the median; half give as much or less. Giv
2016-03-24 20:39:30 244
原创 Problem G
The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specified order. It costs 6 sec
2016-03-23 11:05:19 259
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人