摘要:
题意:给你N个数,M个操作,操作分两类。(1)"QAB“,查询区间[A,B]内的最大值。(2)"UAB",将第A个数的值改成B。线段树-单点更新。// Time 843ms; Memory 6448K#include#include#define maxn 10;i--) { a[i].l=a[2*i].l; a[i].r=a[2*i+1].r; a[i].n=-inf; }}void insert(int i,int x,int m){ if(x>=a[i].l && xmid) insert(2*i+1,x,m); else insert 阅读全文
posted @ 2013-07-26 18:13
jlins
阅读(201)
评论(0)
推荐(0)
摘要:
题目1209:最小邮票数时间限制:1 秒内存限制:32 兆特殊判题:否提交:1176解决:358题目描述: 有若干张邮票,要求从中选取最少的邮票张数凑成一个给定的总值。 如,有1分,3分,3分,3分,4分五张邮票,要求凑成10分,则使用3张邮票:3分、3分、4分即可。 输入: 有多组数据,对于每组数据,首先是要求凑成的邮票总值M,M=num[i];j--){ //must from m to num[i] dp[j] = std::min(dp[j],dp[j-num[i]]+1); }表示在第i个邮票加入后,从m值到num[i]值的最小邮票数... 阅读全文
posted @ 2013-07-26 18:11
jlins
阅读(313)
评论(0)
推荐(0)
摘要:
依赖jar :apache-ant-1.9.2-bin.zipimport java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.FilenameFilter;import java.io.IOException;import java.io.InputStream;import java.io.OutputStream;import java.util.ArrayList;import jav 阅读全文
posted @ 2013-07-26 18:10
jlins
阅读(372)
评论(0)
推荐(0)
摘要:
最近在整理一些这方面的资料,闲话少说,咱还是直奔主题吧 :) 一、基于xmpp实现的openfire的配置安装1、 下载最新的openfire安装文件 官方下载站点:http://www.igniterealtime.org/downloads/index.jsp#openfire下载地址:Exe:http://www.igniterealtime.org/downloads/download-landing.jsp?file=openfire/openfire_3_7_1.exeZIP: http://www.igniterealtime.org/downloads/download-la. 阅读全文
posted @ 2013-07-26 18:08
jlins
阅读(7354)
评论(2)
推荐(0)
摘要:
Reward Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2647Accepted Submission(s): 768 Problem Description Dandelion's uncle is a boss of a factory. As the spring festival is coming , he wants to distribute rewards to his workers. Now he h... 阅读全文
posted @ 2013-07-26 18:06
jlins
阅读(370)
评论(0)
推荐(0)
摘要:
使用ant打包,如果脚本都是我们自己一步一步来写的话,是一个比较麻烦的东西。关于ant,我们详细看下:ant支持 ant debug,ant release等命令,我们需要签名混淆,那么就需要ant release这个命令。首先:ant环境搭建,这我就不多说了,很多博客都有介绍,包括一些环境配置然后:ant环境可以之后,我们需要一个 build.xml文件,这个是ant编译去找的一个东西 Android Ant Build Fo... 阅读全文
posted @ 2013-07-26 18:04
jlins
阅读(1767)
评论(0)
推荐(0)
摘要:
cursor: pin SOTN 解释如下: cursor: pin SA session waits on this event when it wants to update a shared mutex pin and another session is currently in the process of updating a shared mutex pin for the same cursor object. This wait event should rarely be seen because a shared mutex pin update is very fas. 阅读全文
posted @ 2013-07-26 18:02
jlins
阅读(760)
评论(0)
推荐(0)
摘要:
TDE可以为我们的数据库提供加密保护,但是,不是任何情况下都可以随意开启TDE的,同时开启TDE后,我们的数据库维护管理工作也需要进行一些调整。 下面我们就先看看开启TDE需要的条件吧!无法正常开启TDE的情况只有一种,那就是数据库中有只读文件组。一般,我们查询sys.dm_database_encryption_keys可以得到DEK的状态,encryption_state为1、2、3、4、5分别表示没有加密、加密中、已加密、密钥改变中、解密中的状态。正常情况下,当我们设置正确并开启TDE后,encryption_state=3,表示表示TDE开启,数据库已加密。但是当数据库中有只读文件组的 阅读全文
posted @ 2013-07-26 18:00
jlins
阅读(255)
评论(0)
推荐(0)
摘要:
一 什么是传输介质通信系统中发送设备与接收设备之间的物理线路; 通信系统以电磁能形式的信号传输数据; 电磁能通过传输介质传播,实现了数据的传送; 二 有向介质双绞线:屏蔽双绞线和非屏蔽双绞线;同轴电缆;光缆 三 无向介质无线电波,微波,红外波 阅读全文
posted @ 2013-07-26 17:58
jlins
阅读(405)
评论(0)
推荐(0)
摘要:
//I declare...private String aBC="abc";Then I Alt+Shift+R and S(Generate Getter/Setter) so smoothly...andEclipseGenerate like this public String getaBC() { return aBC; } public void setaBC(String aBC) { this.aBC = aBC; }Check this out in jsp ++nothing...damn... So I edit Getter/Setter like 阅读全文
posted @ 2013-07-26 17:56
jlins
阅读(174)
评论(0)
推荐(0)

浙公网安备 33010602011771号