学到了新姿势,对结构体用map,set,sort等,可以在结构体中重载小于号(也有别的方式,没有仔细研究。)。注意const偷懒不加的话会通不过编译。 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace s...
分类:
其他好文 时间:
2015-07-17 07:04:25
阅读次数:
116
A Ducci sequence is a sequence ofn-tuples of integers. Given ann-tuple of integers(a1,a2,...,an), the nextn-tuple in the sequence is formed by taking ...
分类:
其他好文 时间:
2015-07-16 23:54:10
阅读次数:
270
Description A numeric sequence of ai is ordered if a1 #include #include using namespace std;int main(){ int n,i,j,a[1005],d[1005]; while(scanf("...
分类:
其他好文 时间:
2015-07-16 19:05:49
阅读次数:
104
磨了一天的线段树,不能说完全搞清楚,只能说有一个大概的了解,靠着模板才把这道题A了,只能说太弱~~!题意:初始时有一字符串,全为0.三种操作:1 k d - add 把d加到第k个数上去2 l r - query sum 计算l到r所有数的和3 l r - change to nearest Fib...
分类:
其他好文 时间:
2015-07-16 18:58:20
阅读次数:
83
题目链接:点击打开链接
题目大意:给出n个字符串,要求组合后的串最短
#include
#include
#include
using namespace std ;
char str[12][22] ;
char s[300] , s1[300] ;
int vis[12] , min1 , n , l[12];
void dfs(int cnt,int k) {
//prin...
分类:
其他好文 时间:
2015-07-16 16:43:28
阅读次数:
89
在Oracle中,可以为每张表的主键创建一个单独的序列,然后从这个序列中获取自动增加的标识符,把它赋值给主键。例如一下语句创建了一个名为customer_id_seq的序列,这个序列的起始值为1,增量为2。create sequence customer_id_seq increment by 2 ...
分类:
数据库 时间:
2015-07-16 16:15:04
阅读次数:
163
The set [1,2,3,…,n] contains a total of n!
unique permutations.
By listing and labeling all of the permutations in order,
We get the following sequence (ie, for n = 3):
"123""132""213""231""3...
分类:
其他好文 时间:
2015-07-15 15:06:59
阅读次数:
199
create table sequence ( seq_name VARCHAR(50) NOT NULL COMMENT '序列名称', min_val INT UNSIGNED NOT NULL COMMENT '最小值', max_val INT UNSIGNED NOT NULL C...
分类:
数据库 时间:
2015-07-15 13:07:17
阅读次数:
173
DescriptionA subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = another sequence....
分类:
其他好文 时间:
2015-07-15 13:00:13
阅读次数:
101
原题贴上A Ducci sequence is a sequence ofn-tuples of integers. Given ann-tuple of integers(a1,a2,...,an), the nextn-tuple in the sequence is formed by tak...
分类:
其他好文 时间:
2015-07-15 11:01:21
阅读次数:
157