https://uva.onlinejudge.org/external/15/1584.pdfSome DNA sequences exist in circular forms as in the following figure, which shows a circular sequence
CGAGTCAGCT", that is, the last symbol“T” in CGAGT...
分类:
其他好文 时间:
2015-08-16 18:27:35
阅读次数:
137
A. DZY Loves Hash 水题!!AC代码例如以下:#include#include#include#include#include#define inf 100000000#define M 100005#define ll long long#define F(a,b) for(i=a...
分类:
其他好文 时间:
2015-08-15 21:26:09
阅读次数:
138
Description
Jzzhu has invented a kind of sequences, they meet the following property:
You are given x and y, please calculate fn modulo 1000000007(109?+?7).
Input
The first line cont...
分类:
其他好文 时间:
2015-08-15 16:33:49
阅读次数:
132
>>> from ctypes import *
>>> c_int()
c_long(0)
>>> c_char_p(b'hello')
c_char_p(b'hello')>>> c_ushort(-5)
c_ushort(65531)
>>> seitz = c_char_p(b'loves the python')
>>> print(seitz)
c_char_p(b'loves...
分类:
编程语言 时间:
2015-08-14 11:51:20
阅读次数:
223
Problem DescriptionThere arenblack balls andmwhite balls in the big box.Now, DZY starts to randomly pick out the balls one by one. It forms a sequence...
分类:
其他好文 时间:
2015-08-13 21:55:56
阅读次数:
144
http://acm.hunnu.edu.cn/online/?action=problem&type=show&id=11560&courseid=0题意:总共有n天,每天yangyang都需要一个快乐值,有m个队友,每个队友都会给阳阳一个快乐值(为2的幂),并且只能给一次,如果某一天队友给的快乐...
分类:
其他好文 时间:
2015-08-13 21:47:22
阅读次数:
176
点击此处即可传送到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
我们首先来看字母 ”A" "C" “G" "T" 的ASCII码,分别是65, 67, 71, 84,二进制表示为 1000001, 1000011, 1000111, 1010100。可以看到它们的后三位是不同,所以用后三位就可以区分这四个字母。一个字母用3bit来区分,那么10个字母用30bit就够了。用int的第29~0位分表表示这0~9个字符,然后把30bit转化为int作为这个子串的key,放入到HashTable中,以判断该子串是否出现过。...
分类:
其他好文 时间:
2015-08-12 11:44:46
阅读次数:
109
B - Inna and Nine
Time Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d
& %I64u
Submit Status
Description
Inna loves digit 9 very much. That's why she asked Dima to wri...
分类:
其他好文 时间:
2015-08-09 18:55:11
阅读次数:
233
题目:Click here题意:给定数列满足求f(n)mod(1e9+7)。分析:规律题,找规律,特别注意负数取mod。 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 con...
分类:
其他好文 时间:
2015-08-09 16:47:03
阅读次数:
233