Skip to content

Commit c4a97ba

Browse files
committed
20190606
1 parent ba6efe9 commit c4a97ba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ZJU1027.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ const int score[5][5] = {{5, -1, -2, -1, -3},
1212
{-1, -2, -2, 5, -1},
1313
{-3, -4, -2, -1, 0}};
1414

15+
// 记忆数组,gene[i][j]表示基因子串str1[0...i-1]和str2[0...j-1]的分值
16+
int gene[MaxN][MaxN];
17+
1518
// 求三个数最大值
1619
int get_max(int num1, int num2, int num3)
1720
{
@@ -23,7 +26,7 @@ int get_max(int num1, int num2, int num3)
2326
return result;
2427
}
2528

26-
// 将AGCT-转化为整数进行处理
29+
// 将‘A’、‘G’、‘C’、‘T’、‘-’转化为正整数进行处理
2730
int convert(char c)
2831
{
2932
switch (c)
@@ -50,9 +53,6 @@ int main()
5053
char str1[MaxN], str2[MaxN];
5154
// 第一个序列的长度,第二个序列的长度
5255
int len_a, len_b;
53-
// 记录动态规划过程中产生的中间结果
54-
// gene[i][j]表示基因子串str1[0...i-1]和str2[0...j-1]的分值
55-
int gene[MaxN][MaxN];
5656

5757
cin >> n;
5858
for (int k = 0; k < n; k++)

0 commit comments

Comments
 (0)