上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 22 下一页
  2014年4月30日
摘要: 思路:据说是单调队列,我用线段树过的。。。#include#include#define MAX 1000005using namespace std;typedef struct{ int left, right, mid, min, max;}NodeTree;NodeTree node[... 阅读全文
posted @ 2014-04-30 18:37 wangzhili 阅读(81) 评论(0) 推荐(0)
摘要: #include#include#includeusing namespace std;struct cmp{ bool operator()(int x, int y) { return x > y; }};priority_queue, cmp>q;int mai... 阅读全文
posted @ 2014-04-30 18:37 wangzhili 阅读(95) 评论(0) 推荐(0)
摘要: #include#include#includeusing namespace std; #define N 200005 long long int ans, cow[N], lose[N]; int main(int argc, char const *argv[]) { int n; ... 阅读全文
posted @ 2014-04-30 18:37 wangzhili 阅读(83) 评论(0) 推荐(0)
摘要: 思路:最大流算法,基于FF方法:1.Dinic:/************************************************************************* > File Name: Dith.cpp > Author: ... 阅读全文
posted @ 2014-04-30 18:37 wangzhili 阅读(75) 评论(0) 推荐(0)
摘要: 统计难题Time Limit: 4000/2000 MS (Java/Others)Memory Limit: 131070/65535 K (Java/Others)Total Submission(s): 15031Accepted Submission(s): 6436Problem Desc... 阅读全文
posted @ 2014-04-30 18:36 wangzhili 阅读(122) 评论(0) 推荐(0)
摘要: //*************************************************************************//// Author: wangzhili// Mail: wangstdio.h@gmail.com// Filename... 阅读全文
posted @ 2014-04-30 18:36 wangzhili 阅读(131) 评论(0) 推荐(0)
摘要: 很久没做图论了,基本的数据结构都有点忘了,现在复习下,继续图论/******************************************************************/ Author:wangzhili title:test.c time: 2013年... 阅读全文
posted @ 2014-04-30 18:36 wangzhili 阅读(132) 评论(0) 推荐(0)
摘要: 一 安装必要软件安装hostapd : sudo apt-get install hostapd安装DHCP: sudo apt-get install dhcp3-server二 配置HOSTAPD新建hostapd.conf 文件,将其存放到:/etc/hostapd/hostapd.con... 阅读全文
posted @ 2014-04-30 18:36 wangzhili 阅读(501) 评论(0) 推荐(0)
摘要: Sublime Text 2 的安装 :在官方网站下载Linux版本 Or 执行 # wget http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.1.tar.bz2得到一个“.tar.bz2”格式的压缩文件进行解压,并把解压包放到:#mv... 阅读全文
posted @ 2014-04-30 18:36 wangzhili 阅读(124) 评论(0) 推荐(0)
摘要: 思路:线段树,每个节点记录是否当前区间只被一种颜色覆盖,如果是就将此颜色记录下来,如果不是,说明不是单色区间,那么就继续寻找其子区间,直到找到单色区间为止。其实很简单,因为整个区间必定是由一个个单色区间组成的!!!一开始这题提交的时候超时了,很费解,后来我把全局变量mid改成局部变量居然过了,不知道... 阅读全文
posted @ 2014-04-30 18:36 wangzhili 阅读(86) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 22 下一页