我对边表的理解和边表的建立://结构struct node{ int u,v,w; int next;}g[M];int head[N],t = 0;//初始化void init(){ t = 0; memset(head,-1,sizeof(head));}//加边void...
分类:
其他好文 时间:
2014-08-19 20:32:05
阅读次数:
287
1. 查询当前用户可以访问哪些应用
select node.id,node.name from rice_role as role, rice_role_user as user,
rice_access as access, rice_node as node where user.user_id=3 and
user.role_id=role.id and (access.rol...
分类:
Web程序 时间:
2014-08-19 19:10:55
阅读次数:
222
使用HOOK_node_access_records 和 HOOK_node_grants(图形化组合(个人理解没有权威性,仅供参考)) 这两个钩子 代替 HOOK_node_access
1/ 首先介绍下HOOK_node_access 他是用写代码的方式来判断用户有没有权限来访问,编辑,删除一个node的权限,如下:
function modulename_...
分类:
其他好文 时间:
2014-08-19 19:09:25
阅读次数:
386
1、查看系统使用端口并释放端口[root@my_nn_01 WEB-INF]# lsof -w -n -i tcp:80COMMANDPID USERFDTYPE DEVICE SIZE NODE NAMEjava24065 root34uIPv6 269149TCP *:http (LISTEN)...
分类:
其他好文 时间:
2014-08-19 18:19:55
阅读次数:
363
agsXMPP1.删除好友XmppCon.RosterManager.RemoveRosterItem(node.RosterItem.Jid);2.注销用户 void userConn_OnLogin(object sender) { FireSh...
分类:
其他好文 时间:
2014-08-19 16:14:44
阅读次数:
296
#include#include#includeusing namespace std;const int maxn=200005;int val[maxn+1];struct node{ int total; int left; int right; int mark;//...
分类:
其他好文 时间:
2014-08-19 14:08:24
阅读次数:
195
最近介绍了很多ansible的使用案例,这次就回归正轨,介绍如何使用zabbix监控CDN带宽,做到在带宽出现异常的时候及时知晓,访问带宽异常造成的经济损失。这里以蓝汛CDN为例,监控的方法是通过CDN给与的api接口。备注:目前蓝汛api接口只能查看单独频道的带宽,无法查看所有频道..
分类:
其他好文 时间:
2014-08-19 11:06:44
阅读次数:
374
#include
#include
#include
using namespace std;
const int N = 101000;
int a[N];
struct Node
{
int l,r,num;
};
Node tree[4*N];
void build(int l,int r,int o)
{
tree[o].l=l,tree[o].r=r;
t...
分类:
其他好文 时间:
2014-08-19 11:03:14
阅读次数:
222
解题报告
题意:
把所有点连起来,求使用的墨水最少。
思路:
裸最小生成树。
#include
#include
#include
#include
#define inf 0x3f3f3f3f
using namespace std;
struct N {
double x,y;
} node[110];
int vis[110],n;
double mmap[110]...
分类:
其他好文 时间:
2014-08-19 11:02:54
阅读次数:
255
/*
迭代法 :204Ms
*/
#include
#include
#include
#define N 1100
#define eps 1e-10
#define inf 0x3fffffff
struct node {
int u,v,w;
}p[N];
double ma[N][N];
double distance(int i,int j) {
return sqrt(1.0*(...
分类:
其他好文 时间:
2014-08-19 11:01:44
阅读次数:
338