会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
莫小鹏
博客园
首页
新随笔
联系
订阅
管理
1
2
3
下一页
2016年1月6日
test2
摘要: eeaa
阅读全文
posted @ 2016-01-06 14:33 莫小鹏
阅读(107)
评论(0)
推荐(0)
编辑
test
摘要: test sss
阅读全文
posted @ 2016-01-06 14:33 莫小鹏
阅读(99)
评论(0)
推荐(0)
编辑
2015年12月26日
题目1203:IP地址
摘要: 题目:http://ac.jobdu.com/problem.php?pid=1203时间限制:1 秒内存限制:32 兆特殊判题:否提交:3052解决:1504题目描述: 输入一个ip地址串,判断是否合法。输入: 输入的第一行包括一个整数n(1#include using namespace s...
阅读全文
posted @ 2015-12-26 21:25 莫小鹏
阅读(375)
评论(0)
推荐(0)
编辑
2015年12月6日
题目1035:找出直系亲属
摘要: 题目地址:http://ac.jobdu.com/problem.php?pid=1035题目1035:找出直系亲属时间限制:1 秒 内存限制:32 兆 特殊判题:否 提交:2388 解决:939题目描述: 如果A,B是C的父母亲,则A,B是C的parent,C是A,B的child,如果A,...
阅读全文
posted @ 2015-12-06 22:04 莫小鹏
阅读(473)
评论(0)
推荐(0)
编辑
2015年12月5日
题目1151:位操作练习
摘要: 题目地址:http://ac.jobdu.com/problem.php?pid=1151题目1151:位操作练习时间限制:1 秒内存限制:32 兆特殊判题:否提交:1687解决:927题目描述:给出两个不大于65535的非负整数,判断其中一个的16位二进制表示形式,是否能由另一个的16位二进制表示...
阅读全文
posted @ 2015-12-05 18:04 莫小鹏
阅读(560)
评论(0)
推荐(0)
编辑
2015年11月23日
protobuf简介和使用
摘要: 1.Protocol Buffers简介Protocol Buffers (ProtocolBuffer/ protobuf )是Google公司开发的一种数据描述语言,类似于XML能够将结构化数据序列化,可用于数据存储、通信协议等方面。现阶段支持C++、JAVA、Python等三种编程语言。2.p...
阅读全文
posted @ 2015-11-23 16:24 莫小鹏
阅读(15357)
评论(0)
推荐(0)
编辑
2015年11月16日
字符串哈希函数
摘要: 原文地址:http://www.cnblogs.com/uvsjoh/archive/2012/03/27/2420120.html基本概念所谓完美哈希函数,就是指没有冲突的哈希函数,即对任意的 key1 != key2 有h(key1) != h(key2)。设定义域为X,值域为Y, n=|X|,...
阅读全文
posted @ 2015-11-16 20:14 莫小鹏
阅读(369)
评论(0)
推荐(0)
编辑
2015年11月8日
hash表C语言实现
摘要: 算法参考《算法导论》第11章散列表。采用链地址法解决冲突.#include #include #include #include /*通过链接法解决碰撞*/typedef const char* hash_key_type;typedef int hash_value_type;typedef in...
阅读全文
posted @ 2015-11-08 21:43 莫小鹏
阅读(751)
评论(0)
推荐(1)
编辑
2015年10月26日
C语言实现栈
摘要: #include #include #include typedef struct stack_tag{ int top; int num; int *data;} stack;stack * stack_init(int num){ stack *s = (stack*)m...
阅读全文
posted @ 2015-10-26 21:06 莫小鹏
阅读(196)
评论(0)
推荐(0)
编辑
2015年10月21日
大数加法
摘要: #include #include #include #include void reverse_str(char *pBegin, char *pEnd){ while(pBegin = 0 || j >= 0)); i--, j--, k++){ int a = i >= 0...
阅读全文
posted @ 2015-10-21 13:49 莫小鹏
阅读(219)
评论(0)
推荐(0)
编辑
1
2
3
下一页
公告