#include #include using namespace std;#define LL long longLL gcd(LL a, LL b){ return b ? gcd(b, a % b) : a;}LL polya(LL n){ LL ret = 0; for(L...
分类:
其他好文 时间:
2014-09-25 21:29:07
阅读次数:
219
1,进入yum的repo文件夹cd /etc/yum.repos.d2,mysql主页已经提供了centos等系统需要的rpm文件,直接去主页下载。我用的centos6.5,选择Red Hat Enterprise Linux 6 / Oracle Linux 6 (Architecture Ind...
分类:
数据库 时间:
2014-09-25 21:23:17
阅读次数:
253
9月25日,国外曝出一个“毁灭级”的Bash漏洞,黑客可利用此漏洞远程执行任意命令,完全控制目标系统!该漏洞编号为CVE-2014-6271,主要存在于bash 1.14 - 4.3版本中,受影响的系统包括:Red Hat企业Linux (versions 4-7) 、Fedora distribu...
分类:
系统相关 时间:
2014-09-25 15:40:49
阅读次数:
213
HDU 1247 Hat's words(Trie)
ACM
题目地址:
HDU 1247 Hat's words
题意:
给些单词,问每个单词是否能用另外两个单词拼出。
分析:
直接保存到trie里面,然后暴力切割查询即可。
代码:
/*
* Author: illuz
* File: 1247.cpp
* Crea...
分类:
其他好文 时间:
2014-09-24 16:12:47
阅读次数:
167
deb是debian linus的安装格式,跟red hat的rpm很类似,最主要的安装命令是:dpkg -i file.deb dpkg 是Debian Package的简写,是为Debian 专门开发的套件管理系统,方便软件的安装、更新及移除。全部源自Debian的Linux发行版都使用dpkg...
分类:
其他好文 时间:
2014-09-24 01:33:55
阅读次数:
196
Red Hat Enterprise Linux Server release 7.0双系统安装 1.RedHat 公司的企业版7.0已经发布了。下面介绍一下在7.0下装双系统的步骤。 安装前系统:WIN7 要安装的第二个系统:RedHat Enterprise 7.0 @请注意:WIN...
分类:
系统相关 时间:
2014-09-23 23:40:15
阅读次数:
349
CALL 指令在实现转移之前, 要将返回地址存入堆栈的, 以便子程可以通过 ret 指令返回到 CALL 指令下面的指令接着运行; jmp 就没用这些事儿, 直接过去就过去了, 以后的执行流程全由那里的说了算. 当然了, 一些特殊的执行流程控制技巧除外.call == ...
分类:
其他好文 时间:
2014-09-23 14:22:54
阅读次数:
126
1 bool IsChineseChr(char ch)2 {3 var reg = new Regex("^[\u4E00-\u9FA5]{0,}$");4 if (reg.IsMatch(ch.ToString()))5 return true;6 ret...
分类:
其他好文 时间:
2014-09-22 23:35:53
阅读次数:
195
directShow 属性页的制作,为CBall filter加了一个属性页具体为分以下步骤: 1.在要显示属性的类中继承现ISpecifyPropertyPages类,并实现此类的GetPages()函数。如下所示:HRESULT STDMETHODCALLTYPE CBouncingBall::GetPages(CAUUID *pPages){ if (pPages == NULL) ret...
分类:
其他好文 时间:
2014-09-22 19:43:53
阅读次数:
229
题目不难,关键是边界条件要想清楚。先写一个时间复杂度为O(K)的解法。#include<iostream>
usingnamespacestd;
//a[]increase
//b[]decrease
//useret_valuetoreturntheresult
//functionretreprsenttheerrorifnot0
intfind_k(inta[],intb[],intm,intn,intk,int&ret..
分类:
其他好文 时间:
2014-09-20 19:54:10
阅读次数:
250