静态字典树。 1 #include 2 #include 3 #include 4 5 #define MAXN 10005 6 7 typedef struct Trie { 8 bool v; 9 Trie *next[10];10 Trie() {11 ...
分类:
其他好文 时间:
2014-06-28 09:39:33
阅读次数:
171
本篇文章记录字符设备的驱动框架:1.定义cdev接口体和class结构体#define HELLO_CNT 2static int major = 0;//主设备号为0,需要让系统自动生成主设备号static struct cdev hello_cdev;static struct class *c...
分类:
系统相关 时间:
2014-06-27 22:36:58
阅读次数:
423
DFS+字典树。 1 #include 2 #include 3 #include 4 5 typedef struct Trie { 6 int v; 7 Trie *next[26]; 8 } Trie; 9 10 Trie root; 11 int ...
分类:
其他好文 时间:
2014-06-27 14:32:44
阅读次数:
183
通过读取系统网络接口信息,获取当前iphone设备的流量相关信息,统计的是上次开机至今的流量信息.?1. [代码][C/C++]代码 -(void)checkNetworkflow{ struct ifaddrs *ifa_list = 0, *ifa; if (getifaddrs(&ifa...
分类:
其他好文 时间:
2014-06-27 11:46:05
阅读次数:
223
字典树简单题。 1 #include 2 #include 3 #include 4 5 typedef struct Trie { 6 Trie *next[26]; 7 char str[15]; 8 } Trie; 9 10 Trie root;11 12 void c...
分类:
其他好文 时间:
2014-06-27 11:32:27
阅读次数:
172
#include #include using namespace std;class Student{public: Student (char *name); ~Student();public: char name[30]; Student *next; stat...
分类:
编程语言 时间:
2014-06-27 11:03:00
阅读次数:
199
统计每种垃圾的总和,若将K种垃圾倒入第F个垃圾桶,那么花费就是K-F(k) (自己已经有的垃圾不用倒)。
然后就是简单的二分图建图。
#include
#include
#include
#include
using namespace std;
#define MAXN 1000
#define MAXM 1000000
#define INF 0x3f3f3f3f
struct ...
分类:
其他好文 时间:
2014-06-27 07:47:46
阅读次数:
205
题意:N,T,S,E:给你T条边,每条边两端都有编号和权值,问从S走到E允许走N条边,求最短路。
foyld加矩阵快速幂思想。
注意要把边离散
#include
#include
#include
#include
using namespace std;
#define M 303
#define inf 0x3fffffff
struct node
{
...
分类:
其他好文 时间:
2014-06-27 07:39:23
阅读次数:
178
今天收到一个客户请求,客户在查数据字典时,发现下面的现象。SQL>selecttable_namefromdba_tab_modificationswheretable_name=‘STAT_TABLE‘;norowsselectedSQL>selecttable_namefromdba_tab_modificationswheretable_namelike‘%STAT_TABLE‘;TABLE_NAME-----------------..
分类:
数据库 时间:
2014-06-27 06:57:16
阅读次数:
319
@@@第三天第二段@@stat命令:查看文件的元数据信心!InodestatFILE...bash文本编辑器编辑器:进行文本内容修改的程序行编辑器:sed全屏编辑器:nano,vi,vim@@nanoFILE...用户和权限管理:1、用户是什么?2、没有用户计算机也可以正常运行用户:用户就是计算机系统按需对操作人员..
分类:
其他好文 时间:
2014-06-27 06:30:06
阅读次数:
366