MOVIE STORE OPENCART 自适应主题模板 ABC-0249 Features: Coding:?HTML5, CSS3, Semantic Code, jQuery,?Responsive Gallery Script: Accordion, Carousel, Slider Modules: Account, Affiliate, Banner, Bes...
分类:
其他好文 时间:
2015-04-20 22:48:59
阅读次数:
193
response.setDateHeader("Expires",-1); ? //IE response.setHeader("Cache-Control",?"no-cache");?? response.setHeader("Pragma",?"no-cache");??...
分类:
其他好文 时间:
2015-04-20 22:50:38
阅读次数:
171
##velocity 数字格式化处理 #macro(numSplit $num $digits) #set($nums = "$!{num}.0") #set($arr = $nums.split("\.")) #set($int = $arr[0]) #set($digit = $arr[1]) #set($pad = $digits - $digit.length()) ...
分类:
其他好文 时间:
2015-04-20 22:50:09
阅读次数:
150
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
Integers in each row are sorted from left to right.The first integer of each...
分类:
其他好文 时间:
2015-04-20 22:48:52
阅读次数:
157
下面通过undo的一致性读分析undo:
[oracle@localhost ~]$ lsb_release -a
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: EnterpriseEnterpriseServer
Descriptio...
分类:
其他好文 时间:
2015-04-20 22:46:30
阅读次数:
199
Amazon CTO Werner Vogels表示,混合型IT堪称通往云时代的一条捷径,但却远算不上发展的终点,亚马逊已经建立起一整套服务集合,允许大家以无缝化方式将服务同时运行在内部环境与云环境之下。...
分类:
其他好文 时间:
2015-04-20 22:47:09
阅读次数:
140
题意:
给出一个n;
求出有几组s1,s2 使s1/s2=n;
升序排列;
思路:
暴力枚举除数;
#include
#include
#include
#include
#include
#define ll long long
using namespace std;
ll n;
ll s1,s2;
priority_queue, greater > q;
bo...
分类:
其他好文 时间:
2015-04-20 22:46:37
阅读次数:
155
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
Do not allocate extra space for another array, you must do this in place with...
分类:
其他好文 时间:
2015-04-20 22:45:16
阅读次数:
132
最新的论文在Expert Systems with Applications 2015 42卷13期上发表。
这篇论文采用等价类提升的策略,极大地提升了挖掘的速度,并且节省了内存消耗。所形成的PrePost+算法在时间和空间的性能度要明显优于PrePost和FIN算法。
PrePost+算法的下载地址为:http://www.cis.pku.edu.cn/faculty/system/deng...
分类:
其他好文 时间:
2015-04-20 22:45:35
阅读次数:
175
题目地址:HDU 2121
这题没有给定根。最容易想到的当然是暴力,枚举所有的根,但是TLE是显然的。。为了处理不定根的情况,可以虚拟一个根,然后用这个根去跟所有的点连边,权值为其他所有权值的和+1,目的是防止成为最小树形图的一条边。然后跑出最小树形图后,那么这个虚拟根肯定跟一个实际根相连,这时候根就找到了,然后再在最终的总花费中减去虚拟的那条边的权值就可以了。
代码如下:#include <i...
分类:
其他好文 时间:
2015-04-20 22:44:34
阅读次数:
156
试卷中有这么一道题目:
1
2
int
a = 4;
(++a) += i;
求a的数值,正确答案是10。
如果你认为这道题重点只是考察运算符优先级,可能很容易得到正确的答案。
但是,考虑过为什么下面的代码无法编译么?
自己在笔试时,考虑到了关于表达式作为赋值运算符左值的问题,但是自己确实又对重载“++”操作符的...
分类:
其他好文 时间:
2015-04-20 22:47:02
阅读次数:
288
本次介绍OPSF外部路由技术,课程内容包括AS-External-LSA和ASBR-Summary-LSA的解释,外部路由类型,外部路由的Forwarding Address属性,配置外部路由引入和汇聚,配置OSPF多进程等内容。学习目标:
1. 理解外部路由使用的LSA
2. 理解外部路由类型
3. 理解Forwarding Address属性
4. 掌握外部路由引入的配置
5. 掌握O...
分类:
其他好文 时间:
2015-04-20 22:44:53
阅读次数:
185
public interface Executor {
/**
* @param command the runnable task
* @throws RejectedExecutionException if this task cannot be
* accepted for execution
* @throws NullPoint...
分类:
其他好文 时间:
2015-04-20 22:44:41
阅读次数:
104
今天公司安排个任务,要求将控制器上生成的16进制数据文本文件,导入到软件用图形显示,自动分布X轴Y轴坐标,同时还要求可以鼠标拖动及缩放,首先想到就是用qcustomplot,最近刚好将qcustomplot都看了遍,所以基本上没有什么难度,唯一的要求就是文本文件中的数据是16进制的数据,用空格隔开,每两个16进制数据转换为一个short数据,同时还有负数,一开始用strHex.toShort(&o...
分类:
其他好文 时间:
2015-04-20 22:43:20
阅读次数:
150
Grey Area
Time Limit: 2000ms
Memory Limit: 65536KB
64-bit integer IO format: %lld Java class name:
Main
Special Judge
Submit
Status
PID: 1083
Dr. Grey is a data analyst, wh...
分类:
其他好文 时间:
2015-04-20 22:45:37
阅读次数:
148
坚持阅读经典代码,以下是《The C programming language》中的经典例子,每次读来都觉经典,遂摘录下来。
1 折半查找
/* binsearch: find x in v[0] <= v[1] <= ... <= v[n-1] */
int binsearch(int x, int v[], int n)
{
int low, high,...
分类:
其他好文 时间:
2015-04-20 22:43:23
阅读次数:
147
分析:y^2=n+x^2=>y^2-x^2=n。
(y-x)(y+x)=n。
令k1=y-x;k2=y+x。
则有:y=(k1+k2)/2,x=y-k1。
枚举n的所有因数k1,k2使得y为整数。则最小的x即为所求。
注意:x不能为0。
#include
#include
using namespace std;
void Solve(int n)
{
int i,x,y,...
分类:
其他好文 时间:
2015-04-20 22:43:05
阅读次数:
185