码迷,mamicode.com
首页 >  
搜索关键字:arpa    ( 165个结果
测试sigaction重启动标识
#include <stdio.h>#include <unistd.h>#include <signal.h>#include <string.h>#include <arpa/inet.h>#include <netinet/in.h>#include <sys/types.h>#include ...
分类:其他好文   时间:2017-08-24 22:36:31    阅读次数:171
TCP/IP协议
1.什么是TCP/IP协议 TCP/IP模型也被称作DoD模型(Department of Defense Model)。TCP/IP字面上代表了两个协议:TCP(传输控制协议)和IP(网际协议)。1983年1月1日,在因特网的前身(ARPA网)中,TCP/IP协议取代了旧的网络控制协议(NCP,N ...
分类:其他好文   时间:2017-08-24 13:38:08    阅读次数:181
关于htonl()
htons #include <arpa/inet.h> uint16_t htons(uint16_t hostshort); htons的功能: 将一个无符号短整型数值转换为网络字节序,即大端模式(big-endian) 参数u_short hostshort: 16位无符号整数 返回值: TC ...
分类:其他好文   时间:2017-08-09 21:15:48    阅读次数:451
Arpa’s obvious problem and Mehrdad’s terrible solution 思维
There are some beautiful girls in Arpa’s land as mentioned before. Once Arpa came up with an obvious problem: Given an array and a number x, count the ...
分类:其他好文   时间:2017-07-22 16:42:32    阅读次数:179
Codeforces 741B-Arpa's weak amphitheater and Mehrdad's valuable Hoses
题意:给你一些人,然后每个人都有美貌值和重量,这些人有的是一组的,有的不是一组,舞台有一个最大的重量限制,让你求出最大的美貌值是多少。 思路:可以一组选一个,也可以直接选一组人。当时训练的时候感觉是一到dp,但是不知道怎么转移。听学长讲题以后,才知道是分组背包的个提醒,然后看了《背包九讲》里关于分组 ...
分类:其他好文   时间:2017-07-22 14:39:33    阅读次数:211
CodeForces - 742B Arpa’s obvious problem and Mehrdad’s terrible solution
假期训练的一道题,用了一些异或的一些性质1^2=3,3^1=2,3^2=1 就是相当于反向异或运算然后查找个数。 提供一组样例 5 0 1 1 1 1 1 这就是用long long的原因 下面是代码 ...
分类:其他好文   时间:2017-07-19 14:41:42    阅读次数:146
linux中select网络通信
//ser.cpp #include <iostream> #include <fcntl.h> #include <sys/socket.h> #include <sys/select.h> #include <unistd.h> #include <arpa/inet.h> #include < ...
分类:系统相关   时间:2017-07-17 17:17:39    阅读次数:148
Codeforces 741B Arpa's weak amphitheater and Mehrdad's valuable Hoses
【题目链接】 http://codeforces.com/problemset/problem/741/B 【题目大意】 给出一张图,所有连通块构成分组,每个点有价值和代价, 要么选择整个连通块,要么只能在连通块中选择一个,或者不选,为最大价值 【题解】 首先我们用并查集求出连通块,然后对连通块进行 ...
分类:其他好文   时间:2017-07-15 11:27:32    阅读次数:216
BIND9反向区域解析
反向区域区域名称:网络地址反写.in-addr.arpa.1、定义区域zone"ZONE_NAME"IN{type{master|slave|forward};file"网络地址.zone"};2、区域解析库文件,需要SOA需要NS,不需要MX和A记录以及AAAA记录,以PTR为主主从复制:1、应该为一台独立的名称服务器;2、主服务器的区域解析..
分类:其他好文   时间:2017-07-12 23:23:18    阅读次数:322
linux+udp+server+client
一、客户端 #include<sys/types.h> #include<sys/socket.h> #include<netinet/in.h> #include<arpa/inet.h> #include<unistd.h> #include<stdio.h> #include<errno.h> ...
分类:系统相关   时间:2017-07-04 13:15:33    阅读次数:205
165条   上一页 1 ... 6 7 8 9 10 ... 17 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!