字符串--3.基因相关性
摘要:解题思路: 得用scanf("%s",str)输入字符串,用gets(str)会结果错误,原因可能是复制输入字符的时候有空格;区别:scanf("%s",str)---遇到空格就停止; ……
Python数据有误
摘要:# 关于Python使用长度第一个字符串无法AC的不解
## 使用第一个字符串长度(即s1)
```python
yu = float(input())
s1 = input()
s2 = ……
2848: 基因相关性
摘要:#include<stdio.h>
#include<math.h>
#include<string.h>
# define N 100001
int main()
{
c……
基因相关性(两个数组的相似比例)
摘要:```c
#include
#include //要用到strlen函数
int main()
{
char a[501], b[501];
float sim;
……
2848: 基因相关性
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
#include <string.h>
int main()
{
char str1[505] = {0}, str……