上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页
摘要: Twilightgod CUST http://blog.csdn.net/twilightgodAekdycoin FZU http://hi.baidu.com/aekdycoinForeverlin HNU http://hi.baidu.com/forverlin1204/blogMatrix67 PKU http://www.matrix67.com/blog/watashi ZJU http://watashi.ws/blog/tag/zoj/Sha崽 HDU http://www.notonlysuccess.comChenyajun... 阅读全文
posted @ 2013-10-09 13:15 Geekers 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 1.Oline JudgeCII题库https://icpcarchive.ecs.baylor.edu/杭电 http://acm.hdu.edu.cn/杭电题目分类:http://acm.hdu.edu.cn/typeclass.phpNOYJ http://acm.nyist.net/JudgeOnline/problemset.phpPOJ http://poj.org/九度 http://ac.jobdu.com/ZOJ http://acm.zju.edu.cn/ZOJ News http://acm.zju.edu.cn/onlinejudge/ZOJ题目分类 http://.. 阅读全文
posted @ 2013-10-09 13:13 Geekers 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 1 //自己写的! 2 3 #include 4 5 using namespace std; 6 7 8 typedef struct _DATA_ 9 { 10 11 char szName[20]; 12 int iAge; 13 }Data,*pData; 14 15 typedef struct _NODE_ 16 { 17 Data DataTemp; 18 _NODE_* pNext; 19 }Node,*pNode; 20 21 22 class CList 23 { 24 public: 25 CLi... 阅读全文
posted @ 2013-10-06 21:26 Geekers 阅读(779) 评论(0) 推荐(0) 编辑
摘要: 通常文件打开后,读写位置按先后顺序.但有时你想变动读写位置,例如重新从某处起,再读一次.int fseek(FILE *stream, long offset, int fromwhere);fseek 用于二进制方式打开的文件,移动文件读写指针位置.fseek(in,-1L,1); -- 文件流in, 零点为当前指针位置,SEEK_CUR 就是 1, -1L -- 文件指针回退1个字节int fseek( FILE *stream, long offset, int origin ); 第一个参数stream为文件指针 第二个参数offset为偏移量,整数表示正向偏移,负数表示负向... 阅读全文
posted @ 2013-10-06 20:59 Geekers 阅读(1898) 评论(0) 推荐(0) 编辑
摘要: 题目:62进制(非大数除法实现) '0'-'9'-----0-9 A-Z-------10-35 a-z--------36-62具体说明可以参考此博客http://www.cppblog.com/kuangbin/archive/2011/08/25/154299.html?opt=admin在此简短说一下: 例如 10进制的18 转换为2进制 被除数 除数 商 余数 1 8 / 2---------09 0 ---------- 1轮结束9/2 -------- 4 1 --------- 2轮结束 4 / 2-------- 2 0 ---------3轮 阅读全文
posted @ 2013-09-23 22:23 Geekers 阅读(1300) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 4 5 using namespace std; 6 7 8 #define MAX 3 9 10 11 typedef struct _DATA_ 12 { 13 int iAge; 14 char szName[20]; 15 16 17 }Data,*pData; 18 19 20 typedef struct _LINETABLE_ 21 { 22 23 pData pDataTemp; 24 25 int iMax; 26 int iSize; 27 ... 阅读全文
posted @ 2013-09-23 22:20 Geekers 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 3 4 using namespace std; 5 6 typedef struct _NODE_ 7 { 8 int a; 9 _NODE_* pNext; 10 11 }Node,*pNode; 12 13 14 class CList 15 { 16 17 private: 18 pNode m_pHead; 19 pNode m_pTail; 20 int iNodeCount; 21 22 public: 23 CList() 24 { 25 m_p... 阅读全文
posted @ 2013-09-01 10:04 Geekers 阅读(210) 评论(0) 推荐(0) 编辑
摘要: Eddy's digital RootsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3561 Accepted Submission(s): 2013Problem DescriptionThe digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a sin... 阅读全文
posted @ 2013-08-14 15:57 Geekers 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 第六章 线性方程与最大公因数书上有一段是这样写的:本章就是要研究与方程 ax + by = gcd(a,b) 有关的性质和结论。解法,用欧几里德算法,也就是5.1介绍的算法。数论,都是研究整数范围之内的东西,既然是讨论整数解的问题,那么就会先考虑在何种情况下有解,在何种情况下无解。所以这里也是一样,研究的是线性方程和整数解的关系。ax + by = gcd(a,b)这个其实是特殊的形式,解法用的是欧几里德算法。对于一般形式如果对于一般形式:ax+by=c,我们可以在左边提出公因式gcd(a,b),那么得到也就是说,左边能保证是一个整数,因为x和y是我们要求的整数解,而显然有gcd(a,b)|a 阅读全文
posted @ 2013-08-12 16:52 Geekers 阅读(405) 评论(0) 推荐(0) 编辑
摘要: 这章讲的是 整除性与最大公因数,这里讲到了求解两个数的最大公因数,是的,就是“欧几里德算法” 其实也就是高中时候学过的 “辗转相除法”。gcd A=BxQ +R;gcd(a, b) 的性质:定理:如果a,b是不全为0的任意整数,则gcd(a, b)是a与b的线性组合{ax+by:x,y∈Z}中的最小正元素。推论1:对于任意整数a,b,如果d|a并且d|b,则d|gcd(a, b)。推论2:对于所有整数a和b以及任意非负整数n,gcd(an, bn)=n*gcd(a,b)。推论3:对所有正整数n,a和b,如果n|ab并且gcd(a, n)=1,则n|b。互质数:如果两个整数a与b只有公因数1,即 阅读全文
posted @ 2013-08-12 13:30 Geekers 阅读(662) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页