比赛的时候想了一个自认为对的方法,WA到死,然后还一直敲下去,一直到晚上才想到反例找是否存在解比较好找,这种左右括号序列,把(当成1,把)当成-1,然后从前往后扫,+1或者-1 遇到?就当初(,然后如果扫到最后 中间没有出现负数说明左括号没问题然后同样的方法从后往前扫,判断右括号那里是不是有问题即可...
分类:
其他好文 时间:
2014-08-10 18:07:40
阅读次数:
205
http://zhanghong.iteye.com/blog/8659371. 首先创建数据库表SQL> create table customer(2 id number(8) not null primary key,3 name varchar2(20),4 age number(3),5 ...
分类:
数据库 时间:
2014-08-10 18:01:30
阅读次数:
251
题解见X姐的论文 矩阵乘法递推的优化,只是mark一下。。
{CSDN:CODE:447036}...
分类:
其他好文 时间:
2014-08-10 15:48:30
阅读次数:
197
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4, 200, 1, 3, 2],The longest ...
分类:
其他好文 时间:
2014-08-10 15:33:50
阅读次数:
166
GoldenGate软件是一种基于日志的结构化数据复制软件,它通过解析源数据库在线日志或归档日志获得数据的增量变化,再将这些变化应用到目标 数据库,从而实现源数据库与目标数据库同步。GoldenGate 可以在异构的IT基础结构(包括几乎所有常用操作系统平台和数据库平台)之间实现大量数据亚秒一级的实...
分类:
数据库 时间:
2014-08-10 12:47:20
阅读次数:
241
http://www.oracle.com/technetwork/middleware/goldengate/downloads/index.htmlOracle GoldenGate软件基于数据库日志结构变化,通过解析源端在线日志或归档日志获得数据增量,再将这些变化应用到目标数据库,从而实现源库...
分类:
数据库 时间:
2014-08-10 12:43:00
阅读次数:
316
CO-PRIME时间限制:1000ms | 内存限制:65535KB难度:3描述This problem is so easy! Can you solve it?You are given a sequence which contains n integers a1,a2……an, your t...
分类:
其他好文 时间:
2014-08-10 10:18:40
阅读次数:
250
Problem Description
PM Room defines a sequence A = {A1, A2,..., AN}, each of which is either 0 or 1. In order
to beat him, programmer Moor has to construct another sequence B = {B1, B2,... , BN} of...
分类:
其他好文 时间:
2014-08-09 21:34:09
阅读次数:
365
Problem Description
The inversion number of a given number sequence a1, a2, ..., an is the number of pairs (ai, aj) that satisfy i aj. For a given sequence of numbers a1, a2, ..., an, if we move t...
分类:
其他好文 时间:
2014-08-09 18:48:38
阅读次数:
241
CO-PRIME
时间限制:1000 ms | 内存限制:65535 KB
难度:3
描述
This problem is so easy! Can you solve it?
You are given a sequence which contains n integers a1,a2……an, your task is to find how man...
分类:
其他好文 时间:
2014-08-09 18:46:38
阅读次数:
244