首页 > 其他
【hdu2815-Mod Tree】高次同余方程-拓展BadyStepGaintStep
http://acm.hdu.edu.cn/showproblem.php?pid=2815 题意:裸题。。。 题解:又有一个坑,就是N>=P的时候输出无解。 1 #include<cstdio> 2 #include<cstdlib> 3 #include<cstring> 4 #include<
分类:其他   时间:2016-02-04 08:55:36    收藏:0  评论:0  赞:0  阅读:299
策略模式
策略模式:定义了算法族,分别封装起来,让它们之间可以相互替换。此模式让算法的变化独立于使用算法的客户。 总体思路:将可能变算法封装成统一的接口。类只包含接口而不包含实现。算法的实现由实现接口的类来完成。通过调用不同的方法类来调用不同的算法。 Duck类中包含fly和quack的接口而不包含实现。Du...
分类:其他   时间:2016-02-04 08:55:22    收藏:0  评论:0  赞:0  阅读:158
tomcat修改端口
1、 ...\apache-tomcat-7.0.61-windows-x86\conf\server.xml 2、 找到 “ <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="844
分类:其他   时间:2016-02-04 08:55:08    收藏:0  评论:0  赞:0  阅读:209
关于vs2005 __RPC__out __RPC__in 没有定义编译错误
1. 下载WDK http://www.microsoft.com/en-us/download/details.aspx?id=11800 2. 安装WDK 3. vs2005 设置:工具-->选项-->项目和解决方式-->vc++文件夹 将WinDDK\7600.16385.1\inc\api加
分类:其他   时间:2016-02-04 08:54:47    收藏:0  评论:0  赞:0  阅读:375
Cmake常用指令
1. cmake_minimum_required(VERSION 2.8) 检查cmake的版本,至少为2.8 2. project(helloworld) 工程名为helloworld 3. aux_source_directory(. SRC_LIST) 查找当前目录下所有的源文件并保存到SR
分类:其他   时间:2016-02-04 08:10:34    收藏:0  评论:0  赞:0  阅读:216
云安全
这几天在《云头条》上看到两篇关于安全的文章: 《云计算会革安全的命?》《Gartner认为安全性将取代成本和敏捷性成为政府部门采用云服务的首要原因》 对两篇文章的观点基本赞同: 云计算对网络厂商的冲击非常明显,思科最近一两年日子过的就很艰难,许多传统的安全产品,最终预计也会消失。 政府及传统行业,不
分类:其他   时间:2016-02-04 08:10:27    收藏:0  评论:0  赞:0  阅读:180
*Gray Code
The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total num
分类:其他   时间:2016-02-04 06:42:49    收藏:0  评论:0  赞:0  阅读:235
Maximum Product of Word
Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. You may assum
分类:其他   时间:2016-02-04 06:42:43    收藏:0  评论:0  赞:0  阅读:183
Repeated DNA Sequences
All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: "ACGAATTCCG". When studying DNA, it is sometimes useful to
分类:其他   时间:2016-02-04 06:42:00    收藏:0  评论:0  赞:0  阅读:165
Groupon面经Prepare: Max Cycle Length
题目是遇到偶数/2,遇到奇数 *3 + 1的题目,然后找一个range内所有数字的max cycle length。对于一个数字,比如说44,按照题目的公式不停计算,过程是 44, 22, 11, 8, 9 ,1(瞎起的),从44到1的这个sequence的长度,叫做cycle length。然后题
分类:其他   时间:2016-02-04 06:41:54    收藏:0  评论:0  赞:0  阅读:209
Subsets
Given a set of distinct integers, nums, return all possible subsets. Note: Elements in a subset must be in non-descending order. The solution set must
分类:其他   时间:2016-02-04 06:41:46    收藏:0  评论:0  赞:0  阅读:204
第 3 天 set集合 字典 队列 函数
1、set 无序不重复集合 1.1创建一个名为s1的set集合对象 1 >>> s1 = set() 1.2向集合中添加元素add()方法: 1 >>> s1 = set() 2 >>> s1.add('alex') 3 >>> s1 4 {'alex'} 5 >>> set的应用场景:访问过,就把
分类:其他   时间:2016-02-04 06:41:31    收藏:0  评论:0  赞:0  阅读:249
CentOS PPTP配置FreeRADIUS+DaloRADIUS实现高级用户控制+流量控制
前提条件 阅读本文前,您需要搭建好PPTP,如果仍未搭建,可以参考:http://www.xj123.info/2301.html 如果您需要配置DaloRADIUS,那么您还需要安装LAMP,可以参考:http://www.xj123.info/2223.html PPP:Point-to-Poi
分类:其他   时间:2016-02-04 06:41:12    收藏:0  评论:0  赞:0  阅读:326
mongoose 文档(二)Models
Models是从 Schema 定义编译的构造函数。这些 model 的实例代表能从数据库存储和检索的 documents。数据库中所有document的创建和检索都是这些model处理的。 1、编译第一个model var schema = new mongoose.Schema({ name:
分类:其他   时间:2016-02-04 06:41:04    收藏:0  评论:0  赞:0  阅读:236
HDU 1005 Number Sequence
Number Sequence Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 141781 Accepted Submission(s): 3
分类:其他   时间:2016-02-04 06:40:43    收藏:0  评论:0  赞:0  阅读:258
Match:Oulipo(POJ 3461)
Oulipo 题目大意:给你一个字符串,要你找到字符串包含指定子串的个数 只要你知道了KMP,这一题简直不要太简单,注意STL的string是会超时的,还是乖乖用char吧 1 #include <iostream> 2 #include <algorithm> 3 #include <functi
分类:其他   时间:2016-02-04 06:40:30    收藏:0  评论:0  赞:0  阅读:211
FineReport2016年1月份产品更新一览
1、条件属性可使用页码参数插件 由于报表计算逻辑关系,条件属性中取不到页码公式。但是有些场景下又是需要在条件属性中取到页码的,比如标题只要偶数页显示,比如奇数页标题标红等等。 插件安装完成后,条件属性里$$page_number$$totalPage_number也可以参与计算了,目前条件属性里可以设置边框、字体、新值、背景、颜色等样式。 注:目前只有样式可用,新值无法自动调整行高列 ...
分类:其他   时间:2016-02-04 02:12:07    收藏:0  评论:0  赞:0  阅读:397
Nginx+tomcat实现域名绑定、反向代理、负载均衡
闲话少说,直奔主题~ ? 要解决的问题: 通过浏览器输入一个域名,服务器端Nginx接收到请求,将请求转发给tomcat(非80端口); tomcat中的某个项目? ...
分类:其他   时间:2016-02-04 02:11:41    收藏:0  评论:0  赞:0  阅读:138
hexo搭建博客
目前功能有: ? ? ? 1:dockre方式运行 ? ? ? 2.外挂存档md形式的文章 ? ? ? 3.后台功能 ? ? ? 4.分享是百度的 ? ? ? 5.评论是多说的 ? ? ? 6.连接到github
分类:其他   时间:2016-02-04 02:07:32    收藏:0  评论:0  赞:0  阅读:172
LeetCode 137. Single Number II
再来一道,刷简单题。 ? 137. Single Number II ? Given an array of integers, every element appears?three?times except for one. Find that single one. Note:Your algorithm should have a linear runtime complexi ...
分类:其他   时间:2016-02-04 02:06:41    收藏:0  评论:0  赞:0  阅读:184
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!