题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3397题意:给定n个数,由0,1构成。共有5种操作。每个操作输入3个数,op,a,b。
op == 0,将区间[a,b]赋值为0;
op == 1,将区间[a,b]赋值为1;
op == 2,将区间[a,b]内的01反转;
op == 3,查询区间[a,b]中1的个数;
op == 4,查询区间[a,b]...
分类:
其他好文 时间:
2015-08-12 23:35:42
阅读次数:
175
DescriptionWe give the following inductive definition of a “regular brackets” sequence:the empty sequence is a regular brackets sequence,ifsis a regul...
分类:
其他好文 时间:
2015-08-12 23:22:43
阅读次数:
155
Hrdv is interested in a string,especially the palindrome string.So he wants some palindrome string.A sequence of characters is a palindrome if it is t...
分类:
其他好文 时间:
2015-08-12 23:19:35
阅读次数:
111
DescriptionWe give the following inductive definition of a “regular brackets” sequence:the empty sequence is a regular brackets sequence,ifsis a regul...
分类:
其他好文 时间:
2015-08-12 21:36:29
阅读次数:
102
Undoubtedly you know of the Fibonacci numbers. Starting with
F1 = 1 and F2 = 1, every next number is the sum of the two
previous ones. This results in the sequence 1, 1, 2, 3, 5, 8, 13, . . ..
Now...
分类:
其他好文 时间:
2015-08-12 19:30:18
阅读次数:
93
oracle中使用impdp数据泵导入数据时,如果导入之前已经创建了用户,会提示错误:“ORA-31684:对象类型已经存在”,如:其实这个问题并不严重,可以先不创建用户,导入时指定一个超级用户导入:impdp system/123456@ORCL DIRECTORY=DUMP_EXP DUMPFILE=EXPDATA.DMP remap_schema=SOURCE_USER:DEST_USER这...
分类:
数据库 时间:
2015-08-12 19:26:07
阅读次数:
203
Oracle不能直接设定某字段自增,需要通过建序列和触发器,实现主键的自增功能一、序列 1,建序列序列的语法格式为:CREATE SEQUENCE name //name为序列的名称[INCREMENT BY n] ...
分类:
数据库 时间:
2015-08-12 18:23:50
阅读次数:
146
点击此处即可传送到hdu 1711 **Number Sequence**
Problem Description
Given two sequences of numbers : a[1], a[2], ...... , a[N], and b[1], b[2], ...... , b[M] (1 <= M <= 10000, 1 <= N <= 10000...
分类:
其他好文 时间:
2015-08-12 16:51:40
阅读次数:
99
1051. Pop Sequence (25)Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, ..., N and pop randomly. You are suppos...
分类:
其他好文 时间:
2015-08-12 16:14:18
阅读次数:
124