- 博客(4)
- 收藏
- 关注
原创 Linux c语言TCP多线程聊天组程序
c语言TCP多线程聊天组程序服务器端客户端 服务器端 const int PORT = 3344; int ssocks[QLEN] ; void recvMsg(int fd); void broadcastMsg(int, char *,int); int errexit(const char *format, ...); int passiveTCP(int port, int qlen)...
2018-11-28 13:16:26 688
原创 深度优先搜索学习
学习深度优先搜索笔记深度搜索基本模型 Void dfs(int step) { 判断边界 尝试每一种可能 for(i=1;i<=n;i++) { 继续下一步 dfs(step+1); } 返回 } 例题 排列1~n个数字#include <iostream> #include <Window
2017-01-13 13:13:16 271
原创 HDU 1003 Max Sum
Problem DescriptionGiven a sequence a[1],a[2],a[3]……a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the max sum in this sequence is 6 + (-1) + 5 + 4 = 14
2017-01-12 23:22:09 295
原创 HDU2031 进制转换
进制转换Description 输入一个十进制数N,将它转换成R进制数输出。Input 输入数据包含多个测试实例,每个测试实例包含两个整数N(32位整数)和R(2<=R<=16)。Output 为每个测试实例输出转换后的数,每个输出占一行。如果R大于10,则对应的数字规则参考16进制(比如,10用A表示,等等)。Sample Input 7 2 23 12 -4 3 Sample Ou
2017-01-07 18:57:24 227
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人