获取WIFI需要的头文件: #import "GetCurrentIP.h" #import <ifaddrs.h> #import <arpa/inet.h> #import <SystemConfiguration/CaptiveNetwork.h> #include <netdb.h> #in ...
分类:
移动开发 时间:
2017-06-28 23:14:01
阅读次数:
872
socket中用到的头文件 #include <netinet/in.h> #include <sys/socket.h> #include <arpa/inet.h> ??iOS审核要求必须支持ipv6,而ipv6的头文件是<netinet6/in6.h>,在<netinet/in.h>的最后有相 ...
分类:
其他好文 时间:
2017-06-28 17:07:29
阅读次数:
255
Detecting Cloudera Manager Server...Detecting Cloudera Manager Server...BEGIN host -t PTR 192.168.1.198198.1.168.192.in-addr.arpa domain name pointer ...
分类:
其他好文 时间:
2017-06-27 09:57:59
阅读次数:
176
#include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <assert.h> #include <stdio.h> #include <unistd. ...
分类:
其他好文 时间:
2017-06-18 18:59:43
阅读次数:
127
题目链接:Arpa’s letter-marked tree and Mehrdad’s Dokhtar-kosh paths 第一次写\(dsu\ on\ tree\),来记录一下 \(dsu\ on\ tree\)主要维护子树信息,往往可以省掉一个数据结构的启发式合并。大体思路如下: 轻重链路径 ...
分类:
其他好文 时间:
2017-06-16 10:19:43
阅读次数:
150
题意 : 有n个人,每个人都有颜值bi与体重wi。剧场的容量为W。有m条关系,xi与yi表示xi和yi是好朋友,在一个小组。 每个小组要么全部参加舞会,要么参加人数不能超过1人。 问保证总重量不超过W,剧场中的颜值最大能到多少? 分析 : 很显然的分组背包题目, 不过有所不同, 先来回顾一下普通的分 ...
分类:
其他好文 时间:
2017-06-01 00:27:42
阅读次数:
214
Just to remind, girls in Arpa's land are really nice. Mehrdad wants to invite some Hoses to the palace for a dancing party. Each Hos has some weight w ...
分类:
其他好文 时间:
2017-05-23 00:24:49
阅读次数:
293
#import <sys/socket.h> #import <sys/sockio.h> #import <sys/ioctl.h> #import <net/if.h> #import <arpa/inet.h> +(NSString *)getDeviceIPAddresses { int s ...
分类:
微信 时间:
2017-05-11 19:31:35
阅读次数:
2011
题意: 给出上限体重W 然后还给出每个人的体重wi 和 魅力值 bi 互为伙伴的对(xi, yi) 可以凑成group 思路: 并查集找出所有的group 暴力背包 对于每一个group 要选出这一组内选一个人时的最优结果, 如果所有人的体重和小于等于W,还得考虑选所有人的情况 ...
分类:
Web程序 时间:
2017-04-08 19:28:43
阅读次数:
219
导入头文件 #import <ifaddrs.h>#import <arpa/inet.h>#import <SystemConfiguration/CaptiveNetwork.h> ...
分类:
移动开发 时间:
2017-03-27 11:07:49
阅读次数:
251