Algorithm
文章平均质量分 74
skyofdreams
这个作者很懒,什么都没留下…
展开
-
弱弱的全排列算法
是个无法保存状态的算法主要的想法是置换,对应于同济acm的1002题。按顺序打出所给字串的全排列。(输入串长度不大于10)/*-------------------- full permutation. sods 2005/10/31 44 k 3 ms ---------------------*/#include #include #include原创 2005-11-17 09:12:00 · 576 阅读 · 0 评论 -
Pi的计算程序
一直对PI的计算程序感到好奇,到网上找了找相关文章。照抄写了一个程序。用了第三个式子。ARRAYSIZE代表位数。:)#include #include #include #define ARRAYSIZE 1000int main() { char x[ARRAYSIZE], z[ARRAYSIZE]; int a=1, b=3, d, Cnt=0, Run = 1; me原创 2006-08-15 12:18:00 · 1998 阅读 · 0 评论