Algorithm
文章平均质量分 65
manio
这个作者很懒,什么都没留下…
展开
-
Dev-C++下载
下载地址:http://sourceforge.net/projects/dev-cpp/Dev-C++ is an full-featured Integrated Development Environment (IDE) for Win32. It uses GCC, Mingw or Cygwin as compiler and libraries set.原创 2005-12-29 09:05:00 · 1369 阅读 · 0 评论 -
acm pku 2533 Longest Ordered Subsequence 动态规划
Longest Ordered Subsequence Time Limit:2000MS Memory Limit:65536KTotal Submit:2685 Accepted:964 DescriptionA numeric sequence of ai is ordered if a1 a2 aN. Let the subsequence of the given numeric原创 2006-09-25 18:18:00 · 1735 阅读 · 0 评论 -
acm hnu 10049 IP Address
IP Address Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB Total submit users: 254原创 2006-10-23 18:11:00 · 1305 阅读 · 0 评论 -
acm hnu 134 Joseph's Puzzle
Josephs Puzzle Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB Total submit use原创 2006-10-23 20:49:00 · 1817 阅读 · 0 评论 -
acm hnu 10038 进制转换
Lowest Bit Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB Total submit users: 257原创 2006-10-23 11:40:00 · 1241 阅读 · 0 评论 -
acm hnu Problem 10067 Sorting by Swapping
Sorting by Swapping Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB Total submi原创 2006-10-24 19:45:00 · 1255 阅读 · 0 评论 -
acm hnu 10136 Palindromes
Palindromes Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB Total submit users:原创 2006-10-24 20:12:00 · 1944 阅读 · 1 评论 -
数值三角形的一个递归解法(超时)
The Triangle Time Limit: 1000ms, Special Time Limit:2000ms, Memory Limit:32768KB Total submit users: 1原创 2006-10-25 10:26:00 · 1128 阅读 · 1 评论 -
acm hnu 10189 Speed Limit (easy)
Speed Limit Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB Total submit users: 16原创 2006-10-25 10:55:00 · 1486 阅读 · 1 评论 -
acm hnu 10182 置换排列
置换排列 Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB Total submit users: 201, Acce原创 2006-10-25 11:22:00 · 1842 阅读 · 0 评论 -
acm hnu 10039 Magician (easy)
Magician Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB Total submit users: 157,原创 2006-10-25 11:55:00 · 2486 阅读 · 1 评论 -
acm hnu 10072 Fibonacci Number
Fibonacci Number Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB Total submit user原创 2006-10-25 12:21:00 · 1647 阅读 · 0 评论 -
acm hnu 10415 分硬币的一种解法(递归遍历二叉树的方法,超时)
分硬币 Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB Total submit users: 61, Accept原创 2006-10-26 08:00:00 · 1983 阅读 · 0 评论 -
hnu acm Problem 10016 Polar Explorer
Polar Explorer Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB Total submit users:原创 2006-11-01 12:38:00 · 1953 阅读 · 0 评论 -
用无序链表实现字典ADT(C++描述)
#include iostream>using namespace std;class empty ...{ };//sngly-linked list nodetemplate class Elem> class Link ...{public: Elem element; //value for this node Link *next; Link(const原创 2006-11-02 17:14:00 · 1481 阅读 · 0 评论 -
分治法输出排列
//this is a program in,p9#include iostream>using namespace std;template class Type>void perm(Type list[],int k,int m){ if( k == m) { for (int i = 0 ; i m ; i++)原创 2006-09-18 10:57:00 · 882 阅读 · 0 评论 -
acm pku 2091 Recaman's Sequence
Recamans Sequence Time Limit:3000MS Memory Limit:60000K Total Submit:2885 Accepted:1071 DescriptionThe Recamans sequence is defined by a0 = 0 ; for m > 0, am = am−1 − m if the rsulting am is posi原创 2006-09-19 17:44:00 · 1411 阅读 · 0 评论 -
pku acm 1450 解题报告
Gridland Time Limit:1000MS Memory Limit:10000KTotal Submit:544 Accepted:360 DescriptionBackground For years, computer scientists have been trying to find efficient solutions to different computing原创 2006-02-21 11:25:00 · 1857 阅读 · 1 评论 -
马牛的acm学习(第二天)-《算法艺术与信息学竞赛》
《算法》(《算法与信息学竞赛》)一书对ACM/ICPC选手阅读此书的建议是:重点阅读部分章节,刚接触到竞赛的先浏览全书,然后阅读理论部分,跳过一些思路巧妙或者难度很大的题;把书中大部分的程序都亲自编写一下,并加入到自己的程序库中。 今天没怎么看书:(原创 2006-01-16 09:50:00 · 1496 阅读 · 0 评论 -
搜索算法全集(pascal)(转载)
『推荐』搜索算法全集(也是特别爽的哦,内部资料!!)搜 索 算 法 搜索算法是利用计算机的高性能来有目的的穷举一个问题的部分或所有的可能情况,从而求出问题的解的一种方法。搜索过程实际上是根据初始条件和扩展规则构造一棵解答树并寻找符合目标状态的节点的过程。所有的搜索算法从其最终的算法实现上来看,都可以划分成两个部分──控制结构和产生系统,而所有的算法的优化和改进主要都是通过修改其控制结构来完成的。原创 2006-01-21 15:16:00 · 2945 阅读 · 0 评论 -
ACM pku 2719 解题报告(都是输入输出惹的祸)
Faulty Odometer Time Limit:1000MS Memory Limit:65536KTotal Submit:619 Accepted:381 DescriptionYou are given a car odometer which displays the miles traveled as an integer. The odometer has a defect原创 2006-01-22 17:40:00 · 1739 阅读 · 0 评论 -
几款windows下的C的编译器
TURBO C在DOS下用,很不方便的,刚从网上搜了一下几款C COMPLIER,与大家分享。试过了,都能下的。lcc-win32http://www.cs.virginia.edu/~lcc-win32/MyTC http://download.zol.com.cn/detail/4/30278.shtmlMiracle C Compilerhttp://www.zdnet.com.原创 2006-01-16 19:49:00 · 11603 阅读 · 0 评论 -
ACM pku 1003 解题报告(练习输入输出)
Hangover Time Limit:1000MS Memory Limit:10000KTotal Submit:12059 Accepted:4808 DescriptionHow far can you make a stack of cards overhang a table? If you have one card, you can create a maximum ov原创 2006-01-19 21:17:00 · 2273 阅读 · 2 评论 -
ACM pku 1005 解题报告
I Think I Need a Houseboat Time Limit:1000MS Memory Limit:10000KTotal Submit:13733 Accepted:4437 DescriptionFred Mapper is considering purchasing some land in Louisiana to build his house on. In原创 2006-01-20 00:24:00 · 1861 阅读 · 0 评论 -
ACM杂记(技巧/注意事项/常用函数)
判断到了字符串的末尾main(){int i=0 ;char s[10];scanf("%s",s); while(s[i]!=){ /*这里可以用,也可以用/0来判断到了字符串的末尾*/ printf("s is not empty/n"); i++; }printf("now is empty");}原创 2006-01-20 15:33:00 · 1613 阅读 · 0 评论 -
PI后面1000000位,吓死人了
Pi to one MILLION decimal places3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679 8214808651328230664709384460955058223172535940812848111原创 2006-01-22 21:39:00 · 8392 阅读 · 3 评论 -
ACM pku 1658 解题报告(另一种输入输出方式)
Evas Problem Time Limit:1000MS Memory Limit:10000KTotal Submit:3235 Accepted:1733 DescriptionEva的家庭作业里有很多数列填空练习。填空练习的要求是:已知数列的前四项,填出第五项。因为已经知道这些数列只可能是等差或等比数列,她决定写一个程序来完成这些练习。Input第一行是数列的数目t(0原创 2006-01-23 04:06:00 · 1441 阅读 · 0 评论 -
ACM pku 1007 解题报告(给像我一样的新手们的忠告)
DNA Sorting Time Limit:1000MS Memory Limit:10000KTotal Submit:6862 Accepted:2809 DescriptionOne measure of ``unsortedness in a sequence is the number of pairs of entries that are out of order wit原创 2006-01-19 18:52:00 · 1969 阅读 · 0 评论 -
ACM pku 1067 解题报告(威佐夫博奕(Wythoff Game))
取石子游戏 Time Limit:1000MS Memory Limit:10000KTotal Submit:2539 Accepted:579 Description有两堆石子,数量任意,可以不同。游戏开始由两个人轮流取石子。游戏规定,每次有两种不同的取法,一是可以在任意的一堆中取走任意多的石子;二是可以在两堆中同时取走相同数量的石子。最后把石子全部取完者为胜者。现在给出初始的两堆石子的原创 2006-01-27 01:43:00 · 2861 阅读 · 2 评论 -
ACM pku 1004 解题报告
Financial Management Time Limit:1000MS Memory Limit:10000KTotal Submit:14420 Accepted:6246 DescriptionLarry graduated this year and finally has a job. Hes making a lot of money, but somehow never原创 2006-01-27 02:37:00 · 2355 阅读 · 1 评论 -
动态规划oi集训队论文全集
动态规划.rar (458 K)原创 2006-01-21 15:21:00 · 2078 阅读 · 2 评论 -
ACM pku 1140 解题报告(Expanding Fractions )
Expanding Fractions Time Limit:1000MS Memory Limit:10000KTotal Submit:555 Accepted:192 DescriptionIn this problem you are to print the decimal expansion of a quotient of two integers. As you well k原创 2006-02-16 14:07:00 · 1997 阅读 · 2 评论 -
我的c/c++类库
//insort function//插入法排序//n是元素个数template class Elem >void insort ( Elem A[], int n ){ for ( int i = 1; i n ; i++ ) for ( int j = i ; ( j > 0) && ( A[j] A[j-1] );j--) swap(A原创 2006-11-02 17:26:00 · 1016 阅读 · 0 评论