离散化离散化离散化:对于一组数:1 2 3 6 15 … 999如果我们要用 bool[] 型数组去标记他们,如下1 1 1 0 0 1 0 0 0 0 0 0 0 0 1 ……..1如果我们定义个结构体struct node { int v; int sub;};struct node p[500...
分类:
其他好文 时间:
2015-04-01 21:40:59
阅读次数:
119
1 延迟执行函数[self performSelector:@selector( nextQuestion) withObject:nil afterDelay:0.5];2 应用名称国际化(1)项目-》Proje...
分类:
其他好文 时间:
2015-04-01 21:40:31
阅读次数:
131
原题地址终于做到线段树的题了,因为建树、更新、查询都是递归操作,所以其实挺好写的。用数组存的树,记得MAX_NODE开成两倍叶节点数大小,否则RE啊。。不要问我是怎么知道的。代码: 1 #include 2 #include 3 using namespace std; 4 5 #d...
分类:
其他好文 时间:
2015-04-01 21:40:48
阅读次数:
136
OpenCV之颜色空间:颜色空间RGB(Red 红色,Green 绿色,Blue 蓝色)R的取值范围:0-255G的取值范围:0-255B的取值范围:0-255颜色空间HSV (Hue 色相,Saturation 饱和度,intensity 亮度)H的取值范围:0-179S的取值范围:0-255V的...
分类:
其他好文 时间:
2015-04-01 21:40:16
阅读次数:
211
前面我们基本了解了垃圾回收和托管堆得情况了,包含垃圾回收期如何回收对象的内存,幸运的是,大多数类型只要内存就可以正常工作,但是,另外有一些类型除了使用内存,还要使用本地资源。例如:System.IO.FileStream类型需要打开一个文件(本地资源)并保存文件的句柄。然后,该类型的Read和Wri...
分类:
其他好文 时间:
2015-04-01 21:40:27
阅读次数:
727
1:如何给表格单元列增加选择时的背影效果if (cell == nil) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIdentifier...
分类:
移动开发 时间:
2015-04-01 21:40:06
阅读次数:
216
4189: 逻辑运算Time Limit: 1 SecMemory Limit: 128 MB Submit: 274Solved: 42Description还记得大学里学过的模电么,今天就让我们将与或非变成一道题吧。给你一个与或非的表达式,求出这个表达式的值,表达式总共有八种字符。三种逻辑运算符...
分类:
其他好文 时间:
2015-04-01 21:39:38
阅读次数:
121
ITopologicalOperator.ConvexHull MethodConstructs the convex hull of this geometry.[C#]public IGeometry ConvexHull ();Product AvailabilityAvailable wit...
分类:
其他好文 时间:
2015-04-01 21:38:55
阅读次数:
927
DBA_EXTENTS describes the extents comprising the segments in all tablespaces in the database.Note that if a datafile (or entire tablespace) is offline...
分类:
数据库 时间:
2015-04-01 21:36:55
阅读次数:
202
栈的模拟应用: #include
#include
#include
#include
#include
#include
#include
using namespace std; string getPostfixExp(string s)
{ stack sta;// d n x string...
分类:
其他好文 时间:
2015-04-01 21:38:51
阅读次数:
114
写在前面最近在电脑上安装了VMware虚拟机,在安装系统的使用,总提示错误“无法获得VMCI 驱动程序的版本: 句柄无效。”。最近刚买的电脑,也不会是系统的问题吧,为了装个虚机,总不能重装系统吧,没办法,遇到问题,解决不了,还是搜一下吧。查找了一下解决办法,觉得还是挺实用的,记录在此。问题关闭虚拟机...
分类:
其他好文 时间:
2015-04-01 21:36:12
阅读次数:
168
求素数,这是一个“古老”的问题,每个学过编程的人都应该碰到过,这里是求第M+1到第N个素数,这么经典的问题,当然得给它写上一笔,下面是题设要求及代码实现 1 /* 2 Name: 3 Copyright: 4 Author: 5 Date: 01/04/15 1...
分类:
其他好文 时间:
2015-04-01 21:38:09
阅读次数:
159
#admin_abc去掉下划线 =>>变成 array('admin','abc') $table_Name=explode('_', $table_Name);
分类:
编程语言 时间:
2015-04-01 21:36:30
阅读次数:
136
相似与27进制的转换 #include
#include
#include
#include
#include
#include
#include
using namespace std; int main(){ int t; string s; cin>>t; while(t--) { cin>>...
分类:
其他好文 时间:
2015-04-01 21:36:09
阅读次数:
124
java.util.regex Pattern的应用 1 public static void main(String[] args) { 2 //简单的正则匹配。从给定的字符串中匹配正则表达式 3 //匹配到返回true 匹配不到返回false 4 ...
分类:
编程语言 时间:
2015-04-01 21:37:30
阅读次数:
181
分久必合合久必分分治如何分:(2分,m分)logm(N)归约如何归:(2路,m路)logm(N)
分类:
其他好文 时间:
2015-04-01 21:36:30
阅读次数:
111
#include
#include
#include
#include
#include
using namespace std;
#define INF 0x7fffffff
#define INPUT freopen("d:\\in.txt", "r", stdin);
#define OUTP...
分类:
其他好文 时间:
2015-04-01 21:36:26
阅读次数:
184