FreeMaker 在遍历map ,当Map的key 定义了Integer时,会报Expected number, sequence, or string. i.imageUrl evaluated instead to freemarker.template.SimpleHash 异常,因为FreeMaker不支持遍历key为Integer...
分类:
其他好文 时间:
2015-04-15 19:47:31
阅读次数:
367
背景:前段时间,需要从异地一个测试数据库中将测试数据(一张表)导入本地库,表数据量大约500万,字段160多个,开始用了exp/imp方式,速度奇慢,不能忍,于是转而使用expdp/impdp方式。expdp/impd介绍:从10g开始,除了传统的exp/imp导入导出工具外,Oracle提供了expdp/impdp的数据泵导入导出工具。从官方文档上看(http://docs.oracle.com...
分类:
其他好文 时间:
2015-04-15 11:27:38
阅读次数:
159
算是一道模板题了,可惜弱的一B的我并不会划分树,花了点时间学了下,回头A了这道题
3s的限时跑了2.8s也是醉了。。。
Description
In this problem you are given a number sequence P consisting of N integer and Pi is the ith element in the sequence. Now ...
分类:
其他好文 时间:
2015-04-15 11:19:51
阅读次数:
151
Description
The counter-terrorists found a time bomb in the dust. But this time the terrorists improve on the time bomb. The number sequence of the time bomb counts from 1 to N. If the current numb...
分类:
其他好文 时间:
2015-04-15 09:45:42
阅读次数:
162
Problem Description
There is a sequence of integers. Your task is to find the longest subsequence that satisfies the following condition: the difference between the maximum element and the minimum el...
分类:
其他好文 时间:
2015-04-14 21:37:54
阅读次数:
175
Problem Description
Given a circle sequence A[1],A[2],A[3]......A[n]. Circle sequence means the left neighbour of A[1] is A[n] , and the right neighbour of A[n] is A[1].
Now your job is to calculate...
分类:
其他好文 时间:
2015-04-14 19:49:36
阅读次数:
133
SSIS包的Container组件共有三个,分别是Sequence Container,For Loop Container 和 Foreach Loop Container。其中Sequence Container是最简单的,作用是归类,组织task的UI,便于查看,但是它的作用并不局限于此。打开...
分类:
其他好文 时间:
2015-04-14 19:17:30
阅读次数:
178
Problem Description
You are given a sequence of n numbers a0,..., an-1. A cyclic shift by k positions (0k ak+1,..., an-1, a0, a1,...,
ak-1. How many of the n cyclic shifts satisfy the condition tha...
分类:
其他好文 时间:
2015-04-14 18:03:29
阅读次数:
149
题意:
给定一个数列,第一项比其他任何项都要大,要求分成三份,不能为空,分成三份后,再翻转,求最小的序列。
思路:
首先是把串map,然后反转一下。
接着求一下sa,很明显第一次切的地方一定是sa[i]>1的第一个最小的位置。
接着就是第二刀了。
很明显不能直接再找sa[i]第二小的。
因为第一刀之所以能那样切是因为数列的第一个数一定比其他都大。
那么我们需要把剩下的串复制一份...
分类:
编程语言 时间:
2015-04-14 12:57:36
阅读次数:
160
Description
For this problem, you will write a program that reads in a sequence of 32-bit signed integers. After each odd-indexed value is read, output the median (middle value) of the elements receiv...
分类:
编程语言 时间:
2015-04-14 12:55:57
阅读次数:
167