用树状数组把HDU1166再写了一次 感觉树状数组简洁 1 #include 2 #include 3 #include 4 using namespace std; 5 int c[50002],lv[50002],n; 6 int lowbit(int x){return x&(-x);}...
分类:
其他好文 时间:
2014-08-07 12:35:39
阅读次数:
191
第一题树状数组 模板题#include #include using namespace std;int c[32002],lv[15002],n;int lowbit(int x){return x&(-x);}int sum(int b){ int sum=0; while(b>0)...
分类:
其他好文 时间:
2014-08-07 00:35:37
阅读次数:
192
一、LVM逻辑卷管理1.定义将多个物理分区/磁盘从逻辑上组合成一个更大的整体,从其中划分出不同的逻辑分区,逻辑分区的大小可以根据需求扩大和缩减2.LVM概念PV:物理卷VG:卷组(可以包含65534个PE)LV:逻辑卷,真正存储数据的PV物理卷--->VG卷组--->LV逻辑卷--->格式化..
分类:
其他好文 时间:
2014-08-05 03:11:39
阅读次数:
298
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ ...
分类:
其他好文 时间:
2014-08-05 00:37:38
阅读次数:
233
Tomcat 导入eclipse
本例采用
apache-ant-1.9.2(版本不一样的注意配置路径)
tomcat 6.0.26
下载ant
http://mirror.bit.edu.cn/apache//ant/binaries/apache-ant-1.9.4-bin.zip
由于只找到1.9.4的下载包以下的配置需要注意路径
解压到E盘根目录,注意解压之后的结构应该是如下...
分类:
系统相关 时间:
2014-08-04 18:04:27
阅读次数:
367
windows上安装php+IIS设置 1、安装PHP5 下载: http://cn2.php.net/get/php-5.2.0-Win32.zip/from/cn.php.net/mirror 安装: 对php-5.2.0-Win32.zip解压缩到d:\php(可以是其他目录,根据您的具体情况...
LVM逻辑卷机制 PV(Physical Volume 物理卷) - 物理分区或整个物理磁盘 - 由PE(Physical Extent,基本单元)租场 VG(Volume Group 卷组) - 一个或多个物理卷组成的逻辑整体 LV(logical Volume 逻辑卷) ...
分类:
系统相关 时间:
2014-08-03 12:28:25
阅读次数:
346
LightOJ 1205 - Palindromic Numbers (数位dp)
ACM
题目地址:SPOJ MYQ10 Mirror Number
题意:
求[a,b]中回文的个数。
分析:
是SPOJ MYQ01的简单版...其实有非递归方法的。
代码:
/*
* Author: illuz
* Blog: http:...
分类:
其他好文 时间:
2014-08-02 20:56:24
阅读次数:
218
SPOJ MYQ10 10649. Mirror Number (数位dp)
ACM
题目地址:SPOJ MYQ10 Mirror Number
题意:
求[a,b]中镜像回文的个数。
0
分析:
看到题目和数据范围就知道是数位dp了。
很明显镜像回文只有0,1,8,跟回文的一题一样,在dfs的时候得开个辅助数组记录前面已经选择的数字。
注意还得去掉前...
分类:
其他好文 时间:
2014-08-02 18:27:13
阅读次数:
242
1、需要扩展安装yum -y install make bison gcc-c++ cmake ncurses ncurses-devel2、下载Mysql5.6.19wget ftp://mirror.switch.ch/mirror/mysql/Downloads/MySQL-5.6/mysq....
分类:
数据库 时间:
2014-08-02 18:09:03
阅读次数:
389