好诡异的一个题啊紫书上关于从左边找还是从两边往中间找的讨论没有看懂,怎么一下就找到唯一的元素了(⊙_⊙?)方法就是用的书上讲的方法,类似于uva 11572,不过这个题需要预处理存下两边的最近的相同数的位置for (int i=1;i=r) return 1; int p; for (p...
分类:
其他好文 时间:
2014-11-03 22:14:51
阅读次数:
379
Give you three sequences of numbers A, B, C, then we give you a number X. Now you need to calculate if you can find the three numbers Ai, Bj, Ck, whic...
分类:
其他好文 时间:
2014-10-30 20:42:05
阅读次数:
139
Clustal, Multiple alignment of nucleic acid and protein sequences.official website:http://www.clustal.org/使用biopython, 有相应的接口可以直接调用clustalw.from Bio.A...
分类:
其他好文 时间:
2014-10-29 23:56:41
阅读次数:
449
Aeroplane chess
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1628 Accepted Submission(s): 1103
Problem Description
Hzz loves aero...
分类:
其他好文 时间:
2014-10-28 15:30:30
阅读次数:
199
IntroductionGo's slice type provides a convenient and efficient means of working with sequences of typed data. Slices are analogous to arrays in other...
分类:
其他好文 时间:
2014-10-27 06:50:33
阅读次数:
264
竞赛图:图中的任意两点间有且仅有一条有向弧连接求竞赛图中的哈密顿路的算法:首先,由数学归纳法可证竞赛图在n>=2时必存在哈密顿路;(1)n=2时显然;(2)假设n=k时,结论成立,哈密顿路为V1,V2,...,Vi,...,Vk; 现添加第k+1个结点,若存在弧和弧,则可得哈密顿回路V1,V2,.....
分类:
其他好文 时间:
2014-10-25 14:28:52
阅读次数:
161
题意:给定n个点m条边的无向图每次必须沿着LOVE走,到终点时必须是完整的LOVE,且至少走出一个LOVE,问这样情况下最短路是多少,在一样短情况下最多的LOVE个数是多少。有自环。#include #include #include #include #include #include using...
分类:
其他好文 时间:
2014-10-25 14:23:46
阅读次数:
158
This technique should apply to both normal video (consequtive sequences of pictures of real world) and animations (sequences of images drawn by human ...
分类:
其他好文 时间:
2014-10-25 13:10:23
阅读次数:
220
python中r的用法,r'str'表示raw string,既忽略转义字符。因为和windows不一样,python中认为\就是转义字符escape sequences的标志。在python2.x中,unicode字符串需要在字符串前加u来表示,比如 str=u'汉字'而在python3.x中,u...
分类:
编程语言 时间:
2014-10-22 23:27:18
阅读次数:
270
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 <= 1000000). Your task is to find a number K which make a[K] = b...
分类:
其他好文 时间:
2014-10-21 21:38:27
阅读次数:
258