首页 > 其他
整数区间及区间集合(C#实现)
1 /// 2 /// 整数区间类 3 /// 4 private class Interval 5 { 6 private int _start = 0, _end = 0; 7 public int Start 8 { 9 get { return Math.Min(this._start, t...
分类:其他   时间:2014-02-17 04:34:51    收藏:0  评论:0  赞:0  阅读:814
SPOJ LCS 后缀自动机
用后缀自动机求两个长串的最长公共子串,效果拔群。多样例的时候memset要去掉。解题思路就是跟CLJ的一模一样啦。#pragma warning(disable:4996)#include#include#include#include#include#include#define maxn 250...
分类:其他   时间:2014-02-17 04:22:33    收藏:0  评论:0  赞:0  阅读:527
简单选择排序
1 #include "stdafx.h" 2 #include 3 #include 4 using namespace std; 5 6 /*排序用到的结构*/ 7 const int maxSize = 10; 8 typedef struct 9 {10 int r[maxSize+1];1...
分类:其他   时间:2014-02-17 04:20:30    收藏:0  评论:0  赞:0  阅读:356
set JAVA_HOME in RHEL/CentOS
3.3.Install OpenJDK on Red Hat Enterprise LinuxIntroductionOpenJDK is one of many Java Development Kits (JDKs) supported in Red Hat Enterprise Linux f...
分类:其他   时间:2014-02-17 05:09:42    收藏:0  评论:0  赞:0  阅读:423
系统蓝屏stop:ox000007B错误解决方案
解决方法:开机进入bios:BIOS->Advanced->SATA Mode:[AHCI改为ATA或Compatibility],然后F10保存退出。ATA是指硬盘使用IDE兼容模式,AHCI是SATA模式,速度快,但需安装驱动才能使用,否则蓝屏。顺序安装Intel芯片组驱动,Ricoh芯片组驱动...
分类:其他   时间:2014-02-17 04:10:15    收藏:0  评论:0  赞:0  阅读:1782
Instantaneous Transference(强连通分量及其缩点)
http://poj.org/problem?id=3592题意:给出一个n*m的矩阵,左上角代表起始点,每个格子都有一定价值的金矿,其中‘#’代表岩石不可达,‘*’代表时空门可以到达指定格子,求出可以获得的最大价值。思路:时空门的存在可能会使得图中出现环,所以先对强连通分量进行缩点,然后对于缩点后...
分类:其他   时间:2014-02-17 04:04:06    收藏:0  评论:0  赞:0  阅读:399
面试题(C#基础)
1>构造器Constructor不能被继承,因此不能重写Overriding,但可以被重载Overloading。 2>string[] ss=Enum.GetNames(typeof(Color));byte[] bb=Enum.GetValues(typeof(Color));3>asp.net...
分类:其他   时间:2014-02-17 03:57:57    收藏:0  评论:0  赞:0  阅读:403
【原】linux下tar解压缩问题:time stamp in the future
在A机器上用tar压缩的文件,在B机器上进行解包的时候,如果两个机器的时间不一致,如B机器的时间落后A机器的时间,这时就会出现time stamp in the future的问题。解决方法:(1)一是检查B机器的时间,如果确有问题请修改B机器的时间(sudo date -s “YYYY-MM-DD...
分类:其他   时间:2014-02-17 03:55:54    收藏:0  评论:0  赞:0  阅读:411
GraphViz特性笔记(一)
默认纵向,使用“rankdir="LR";”可使视图横向排列;定义节点可以单独列出,“0;”方便自动生成;“edge[fontname="微软雅黑"];”设置边标签字体,以支持中文;文件需保存为Unicode或者UTF8格式,否则中文字符可能乱码;当有多个出度最好先定义节点的各项特性,然后用“0->...
分类:其他   时间:2014-02-17 03:51:48    收藏:0  评论:0  赞:0  阅读:484
【转】linux系统时间修改及同步
时间修改date 月日时分年.秒date -s可以直接设置系统时间比如将系统时间设定成1996年6月10日的命令如下。#date -s 06/10/96将系统时间设定成下午1点12分0秒的命令如下。#date -s 13:12:00时间同步1.首先需了解linux内一任务计划工具crontabcro...
分类:其他   时间:2014-02-17 03:49:45    收藏:0  评论:0  赞:0  阅读:367
Ubuntu 中启用 root 帐号
参考:http://linuxtoy.org/archives/howto_enable_ubuntu_root_account.html如果你实在需要在 Ubuntu 中启用 root 帐号的话,那么不妨执行下面的操作:sudo passwd root此命令将会重新设置 root 的密码,按照提示...
分类:其他   时间:2014-02-17 03:45:39    收藏:0  评论:0  赞:0  阅读:451
用栈的思想处理字符串倒置问题更清晰
如杭电acm题目The input contains several test cases. The first line of the input is a single integer T which is the number of test cases. T test cases follo...
分类:其他   时间:2014-02-17 03:35:23    收藏:0  评论:0  赞:0  阅读:402
/etc/resolv.conf overwritten. Redhat/Centos
Prevent /etc/resolv.conf from being blown away by RHEL/CentOS after customizingIf you are using RHEL 6.X it may be a surprise that editing the /etc/re...
分类:其他   时间:2014-02-17 03:29:14    收藏:0  评论:0  赞:0  阅读:470
冒泡排序
1 #include "stdafx.h" 2 #include 3 #include 4 using namespace std; 5 6 /*排序用到的结构*/ 7 const int maxSize = 10; 8 typedef struct 9 {10 int r[maxSize+1];1...
分类:其他   时间:2014-02-17 03:27:11    收藏:0  评论:0  赞:0  阅读:338
ios之NSNumber
NSNumberJava代码+(NSNumber*)numberWithInt:(int)value;+(NSNumber*)numberWithDouble:(double)value;-(int)intValue;-(double)doubleValue;NSNumber可以将基本数据类型包装起...
分类:其他   时间:2014-02-17 03:25:09    收藏:0  评论:0  赞:0  阅读:444
让Flash背景透明兼容Firefox、IE 6和IE 7的代码
添加代码:到 之间意思是设置Flash背景透明。添加代码: wmode="transparent" 到 …之间,意思是使Flash背景在Firefox下透明…
分类:其他   时间:2014-02-17 03:14:53    收藏:0  评论:0  赞:0  阅读:395
面试题(C#算法编程题)
1>用C#写一段选择排序算法,要求用自己的编程风格。答:private int min; public void xuanZhe(int[] list)//选择排序 { for (int i = 0; i 一列数的规则如下: 1、1、2、3、5、8、13、21、34...... 求第30位数是多少,...
分类:其他   时间:2014-02-17 03:02:35    收藏:0  评论:0  赞:0  阅读:463
inline内联函数
0x1 内联函数在c++和java中的不同在c++中通常在内的外面定义方法,若果在内内部定义,这个方法将自动地成为内联方法。在java中所有的方法都必须定义在类的内部,但是否是内联方法主要靠java虚拟机来确定,也就说java中定义在类内部方法不一定是内联的。0x2 内联方法的特点在经过编译后,调用...
分类:其他   时间:2014-02-17 03:00:32    收藏:0  评论:0  赞:0  阅读:450
ios之alloc和init
复制代码SomeObject *obj = [[SomeObject alloc] initWithCenter:centerPoint radius:radius];和复制代码SomeObject *obj =[SomeObject alloc];[obj initWithCenter:cente...
分类:其他   时间:2014-02-17 02:58:29    收藏:0  评论:0  赞:0  阅读:322
单调队列
思想核心是如何维护一个单调队列,合理应用单调队列简化问题下面是摘抄:单调队列及其应用原创是我可敬的师傅,搜索到的上面那个应该就是原文. 单调队列及其应用 单调队列,望文生义,就是指队列中的元素是单调的。如:{a1,a2,a3,a4……an}满足a1mid do dec(j); 21 if ij; 3...
分类:其他   时间:2014-02-17 02:52:21    收藏:0  评论:0  赞:0  阅读:447
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!