a[0]=1; a[1]=2;
之后每个数可以由前面的任意两个数相加得到(可以是同一个数),问得到数字N的最短序列
N最大为100,迭代加深搜索打表
#include "stdio.h"
#include "string.h"
int w;
int pri[110][15]; // 记录答案
int len[110]; // 数字N所需长度
int seq[110]; // DFS的每一...
分类:
其他好文 时间:
2015-04-28 11:45:13
阅读次数:
103
http://blog.chinaunix.net/uid-24432676-id-2607766.html另http://www.cnblogs.com/qq78292959/archive/2012/06/13/2547335.htmlSeq_file文件系统实例剖析的两篇文章 2011-05-...
分类:
其他好文 时间:
2015-04-27 19:56:58
阅读次数:
157
#keywork模块:判断是否是字符串import keyworda='if'print keyword.iskeyword(a)"""了解某序列是否包含特定的值 x in seq seq.__contains__(x)"""print keyword.kwlist#得到python的关键字列...
分类:
编程语言 时间:
2015-04-26 19:44:18
阅读次数:
178
#lang racket(define (accumulate op initial seq) (if (null? seq) initial (op (car seq) (accumulate op initial (cdr seq)))) );accumulat...
分类:
其他好文 时间:
2015-04-26 12:23:30
阅读次数:
205
chars=`seq-s""100`;
echo$chars
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
echo${#chars}
291
echo$chars|wc-m..
分类:
系统相关 时间:
2015-04-24 16:45:50
阅读次数:
232
delete from TableName; //清空数据update sqlite_sequence SET seq = 0 where name ='TableName';//自增长ID为0
分类:
数据库 时间:
2015-04-23 21:22:11
阅读次数:
171
#+BEGIN_SRCplantuml:filep_w_picpaths/tcp_connect.png
titleTCP连接建立
autonumber
participantclient
participantserver
noteoverclient,server
client与server初始状态都处于CLOSED
endnote
client->server:SYN(SEQ=x)
activateclient
noteleft:3次握手的第1步,\n此后..
分类:
其他好文 时间:
2015-04-22 18:43:08
阅读次数:
172
seq 9 | sed 'H;g' | awk -v RS='' '{for(i=1;i
预备知识:
seq:产生一个序列
sed:模式空间和存储空间
H:将pattern space中的内容append到hold
space\n后
g:将存储空间的数据覆盖模式空间
输出的时候使用的模式空间,存储空间只是一个暂存器
1、seq产生1,然后加到sed模式空间,H将模式空...
分类:
其他好文 时间:
2015-04-22 11:51:01
阅读次数:
172
5.4 控制流? 语句(statement)是一条单独的R语句或一组复合语句(包含在花括号{ } 中的一组R语句,使用分号分隔);? 条件(cond)是一条最终被解析为真(TRUE)或假(FALSE)的表达式;? 表达式(expr)是一条数值或字符串的求值语句;q 序列(seq)是一个数值或字符串序...
分类:
其他好文 时间:
2015-04-15 19:11:56
阅读次数:
148
PH525.4x第二周内容围绕GRange类的操作和使用Annotation进行数据关联两个主题展开,并展示了几个比较“炫”的功能。由于内容繁多,信息量大,故笔记之以便日后参考。该课程的演示数据为ChIP-seq的实验数据,背景为人类肝细胞(cell line:HepG2和GM12878)中被ESR...
分类:
其他好文 时间:
2015-04-11 01:17:13
阅读次数:
227